@clickview/curator 1.0.25 → 1.0.26-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Yup","ReactBootstrap","Backbone","ReactRedux","Marionette","FontAwesome","DOMPurify","SortableHOC","ReactDOM","ReactTransitionGroup","Polyglot","Cropper","Handlebars"],t):"object"==typeof exports?exports["@clickview/curator"]=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):e["@clickview/curator"]=t(e.React,e._,e.Yup,e.ReactBootstrap,e.Backbone,e.ReactRedux,e.Marionette,e.FontAwesome,e.DOMPurify,e.SortableHOC,e.ReactDOM,e.ReactTransitionGroup,e.Polyglot,e.Cropper,e.Handlebars)}(window,(function(e,t,n,r,a,i,o,s,c,l,u,p,f,d,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=299)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(5),a=n(8),i=n(34),o=n(12);class s extends Error{constructor(e){super(e)}}class c extends s{get name(){return"SilentError"}}class l extends Error{get name(){return"CoreError"}}const u={throw(e){if(r.Radio.channel(a.a.SHELL).trigger(o.a.ERROR,e),!(e instanceof c||i.a.isDevelopment))throw e}}},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1);const a={isEmpty:e=>r.isEmpty(e),values:e=>r.values(e),keys:e=>r.keys(e),deepClone:e=>(r.isArray(e)?r.map:r.mapObject)(e,e=>r.isObject(e)||r.isArray(e)?a.deepClone(e):e),getEnumKeys:e=>Object.keys(e).filter(e=>!(parseInt(e)>=0)),isObject:e=>r.isObject(e),isEqual:(e,t)=>r.isEqual(e,t),omit:(e,t)=>r.omit(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),a=n(9);const i={first:e=>r.first(e),firstFew:(e,t)=>r.first(e,t),last:e=>r.last(e),lastFew:(e,t)=>r.last(e,t),max:(e,t)=>r.max(e,t),cloneAndReplaceAtIdx(e,t,n,r=null){let a=e&&e.length?e.slice():[];return t+1>a.length&&(a=[...a,...Array(t+1-a.length).fill(r)]),a.splice(t,1,n),a},moveItem(e,t,n){const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:e=>e&&!e.length,findIndex:(e,t)=>r.findIndex(e,t),findWhere:(e,t)=>r.findWhere(e,t),where:(e,t)=>r.where(e,t),groupBy:(e,t)=>r.groupBy(e,t),flatten:(e,t)=>r.flatten(e,t),intersection:(...e)=>r.intersection(...e),addOrRemove(e,t){const n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){const n=e.indexOf(t),r=a.a.deepClone(e);return-1===n?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy:(e,t)=>r.sortBy(e,t),chunk:(e,t)=>r.chunk(e,t),uniq:(e,t)=>r.uniq(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4);class a extends r.a{get name(){return"DevError"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},function(e,t,n){"use strict";var r=n(174);n.d(t,"EntityType",(function(){return r.a})),n.d(t,"EventVersion",(function(){return r.b})),n.d(t,"InteractionType",(function(){return r.c})),n.d(t,"InteractionTypeDescriptor",(function(){return r.d})),n.d(t,"LocationContext",(function(){return r.e})),n.d(t,"SearchQueryType",(function(){return r.f})),n.d(t,"UserAction",(function(){return r.g}));n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(5);function a(e,t,n,a){let i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),a.call(this,i,t,n)}},function(e,t,n){"use strict";var r=n(47),a="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||a||Function("return this")();t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return m}));var r=n(1),a=n(5),i=n(24),o=n(8),s=n(12);const c=/((\(\?)?:\w+)|(\*\w+)/,l=/[\(\)]/g,u=/\(\/\)/g,p=/\/$/,f={routingStarted(){a.Radio.channel(o.a.SHELL).trigger(s.a.ROUTING_START)},routingEnded(){if(!f.hasActiveRoute())return;a.Radio.channel(o.a.SHELL).trigger(s.a.ROUTING_END)},hasActiveRoute:()=>a.Radio.channel(o.a.SHELL).request(s.a.HAS_ACTIVE_ROUTE)},d=(e,t={})=>{t.usedHelper=!0;const{application:n,action:r}=e;a.Radio.channel(n).trigger(r,e,t)},m={getHref(e){if(!e)return"";const{application:t,action:n,args:r,params:i}=e;return"/"+a.Radio.channel(o.a.SHELL).request(s.a.ROUTE_LOOKUP,`${t}:${n}`,r,i)},buildRoute(e,t){if(!t)return e;const n=t.args,a=t.params;if(r.each(n,t=>{e=e.replace(c,t||"")}),e=(e=(e=e.replace(u,"")).replace(l,"")).replace(p,""),!a)return e;const o=i.a.SerializeQueryParams(a);return o.length?`${e}?${o}`:e},trigger(e,t){if(!e)return;if(!f.hasActiveRoute())return void d(e,t);a.Radio.channel(o.a.SHELL).once("routing:end",()=>{d(e,t)})},getCurrentAppLink:()=>a.Radio.channel(o.a.SHELL).request(s.a.CURRENT_ROUTE)}},function(e,t){e.exports=o},function(e,t,n){"use strict";const r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(191);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}));var a=n(199);n.d(t,"DomainOptionKind",(function(){return a.a})),n.d(t,"DomainOptionType",(function(){return a.b}))},function(e,t,n){e.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(17),a=n(14),i=n(4);class o extends r.Object{constructor(e){super(e),this.name||i.c.throw(new i.b("Your service must be named."))}listenTo(...e){return a.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){e.exports={tree:"_1abau",text:"f13wK",chevron:"_25eVA",disabled:"_1qyCo",parentOfSelected:"_1fgN6",selected:"cVZit",actions:"_2BGWp",node:"rJVbQ",collapsed:"vc2by"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),a=n(5),i=n(16),o=n(12),s=n(8);const c={GetQuery:()=>c.DeserializeQueryParams(window.location.search.substring(1)),UpdateQuery(e){if(!e)return;const t=c.GetQuery();let n=c.SerializeQueryParams(r.extend(t,e));n&&(n="?"+n),c.UpdateUrl(`${c.GetCurrentPath()}${n}`,null,{replace:!0,trigger:!1})},UpdateUrl(e,t,n){const r=i.a.buildRoute(e,t);a.history.navigate(r,n),a.Radio.channel(s.a.SHELL).trigger(o.a.URL_CHANGE,t,n)},SerializeQueryParams:e=>e?"string"==typeof e?e:$.param(e,!0):"",DeserializeQueryParams:e=>e?r.reduce(e.split("&"),(e,t)=>{const n=t.split("="),r=n[0],a=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(a),e):(e[r]=[e[r],a],e):(e[r]=a,e)},{}):{},StartHistory(){a.History.started&&a.history.stop(),a.history.start({pushState:!0})},PageLoad(e,t=!1){t?window.open(e,"_blank"):window.location.href=e},Redirect(e,t=!0){const n=()=>t?window.location.replace(e):window.location.href=e;i.b.hasActiveRoute()?a.Radio.channel(s.a.SHELL).once("routing:end",n):n()},Reload(e=!0){window.location.reload(e)},GetCurrentPath:()=>window.location.pathname,GetCurrentQueryString:()=>window.location.search,GetCurrentUrl:()=>window.location.href,GetCurrentReferrer:()=>document.referrer,SetPageTitle(e){document.title=e}}},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){"use strict";var r=n(11),a=n(29);const i="id";function o(e,t={}){const{idAttribute:n=i,namespace:o=""}=t;return e[n]||a.ErrorHelper.throw(new r.a("There was an issue during normalization. Object did not have an id attribute.")),`${o}__${e[n]}`}function s(e,t,n={}){const{idAttribute:r=i}=n,a=[];return e.forEach(e=>{e[r]&&a.push(o(e,n)),c(e,t,n)}),a}function c(e,t,n={}){if(e)return Array.isArray(e)?s(e,t,n):"object"==typeof e?function e(t,n,r={}){const{idAttribute:a=i}=r,c=Object.assign({},t);if(Object.keys(t).forEach(i=>{const l=t[i];if(l)if(Array.isArray(l)){const e=s(l,n,r);e.length&&(c[i]=e)}else if("object"==typeof l){const t=e(l,n,r);l[a]?c[i]=o(l,r):c[i]=t}}),t[a]){const e=o(t,r);return n[e]=c,e}return c}(e,t,n):e}function l(e,t){const n={};return{result:c(e,n,t),entities:n}}var u=n(9);function p(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};const r=p(t[e],t,n);return Object.assign(n[e],r),u.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map(e=>p(e,t,n));if("object"==typeof e){const r={};return Object.keys(e).forEach(a=>{r[a]=p(e[a],t,n)||e[a]}),r}return e}}function f(e,t){return p(e,t,{})}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}))},function(e,t,n){"use strict";(function(e){var r=n(47),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.a.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=s}).call(this,n(56)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(5),i=n(14);class o extends a.Model{mixin(e){const t=this;for(const n in e){if(t.hasOwnProperty(n)){const a=t[n];return void(t[n]=r.extend({},a,e[n]))}t[n]=e[n]}}addValidation(e){this.mixin({validation:e})}validate(e,t){super.validate.call(this,e,t)}listenTo(...e){return i.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.r(t);var r=n(16);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b}));var a=n(43);n.d(t,"Application",(function(){return a.a}));var i=n(63);n.d(t,"AppRouter",(function(){return i.a}));var o=n(64);n.d(t,"Behavior",(function(){return o.a}));var s=n(33);n.d(t,"Collection",(function(){return s.a}));var c=n(55);n.d(t,"CollectionView",(function(){return c.a})),n.d(t,"ComponentCollection",(function(){return c.a}));var l=n(4);n.d(t,"Error",(function(){return l.a})),n.d(t,"ErrorHelper",(function(){return l.c})),n.d(t,"SilentError",(function(){return l.d}));var u=n(45);n.d(t,"LayoutView",(function(){return u.a}));var p=n(65);n.d(t,"NestedModel",(function(){return p.a}));var f=n(22);n.d(t,"Service",(function(){return f.a}));var d=n(28);n.d(t,"Model",(function(){return d.a}));var m=n(39);n.d(t,"View",(function(){return m.b})),n.d(t,"Component",(function(){return m.a}));var h=n(12);n.d(t,"EventNames",(function(){return h.a}));var g=n(66);n.d(t,"LayoutService",(function(){return g.a}));var y=n(44);n.d(t,"Middleware",(function(){return y.a}));var v=n(24);n.d(t,"LocationUtils",(function(){return v.a}));var b=n(67);n.d(t,"Shell",(function(){return b.a}));var S=n(68);for(var E in S)["AppLinkHelper","AppLinkUtility","Application","AppRouter","Behavior","Collection","CollectionView","ComponentCollection","Error","ErrorHelper","SilentError","LayoutView","NestedModel","Service","Model","View","Component","EventNames","LayoutService","Middleware","LocationUtils","Shell","default"].indexOf(E)<0&&function(e){n.d(t,e,(function(){return S[e]}))}(E)},function(e,t,n){e.exports={draggableVideoItem:"_1JMCe",draggedVideoItem:"_3jjle"}},function(e,t,n){"use strict";var r=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,c,l,u=r(t),p=r(n);if(u&&p){if((c=t.length)!=n.length)return!1;for(s=c;0!=s--;)if(!e(t[s],n[s]))return!1;return!0}if(u!=p)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var m=t instanceof RegExp,h=n instanceof RegExp;if(m!=h)return!1;if(m&&h)return t.toString()==n.toString();var g=a(t);if((c=g.length)!==a(n).length)return!1;for(s=c;0!=s--;)if(!i.call(n,g[s]))return!1;if(o&&t instanceof Element&&n instanceof Element)return t===n;for(s=c;0!=s--;)if(!("_owner"===(l=g[s])&&t.$$typeof||e(t[l],n[l])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=e=>o[e];const c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(c,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const u=/(^|[^\[])\^/g;const p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},m=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=v(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(h,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const r=e.length;if(0===r)return"";let a=0;for(;a<r;){const i=e.charAt(r-a-1);if(i!==t||n){if(i===t||!n)break;a++}else a++}return e.substr(0,r-a)}e.exports={escape:function(e,t){if(t){if(n.test(e))return e.replace(r,s)}else if(a.test(e))return e.replace(i,s);return e},unescape:l,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(u,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(p,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!f.test(n)&&(n=y(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:y,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,a=t;for(;--a>=0&&"\\"===n[a];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:v,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,a=0;for(;a<n;a++)if("\\"===e[a])a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5),a=n(14);class i extends r.Collection{listenTo(...e){return a.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=class{constructor(){this.variables={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"EnvironmentVariables"}get isDevelopment(){return this.variables.isDevelopment}get(e){return this.variables[e]}setUpVariables(e){this.variables=e}}.Instance},function(e,t){e.exports=s},function(e,t,n){"use strict";const r={getMatchingKeyMap(e,t,n){const r=Array.isArray(t)?t:[t];let a=[];return r.forEach(t=>{const n=new RegExp(t,"i"),r=Object.keys(e.resources).filter(e=>n.test(e));a.push(...r)}),n&&(a=a.filter(e=>e!==n)),a.reduce((e,t)=>(e[t]=!0,e),{})}};var a=n(46);const i={isSimulated(e){const t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},simulateFetchData(e,t){const{success:n,error:r,always:i}=e,o=t;window.setTimeout(()=>{o.noResponse||(o.successResponse?n(o.successResponse(),{status:a.a.Ok,getResponseHeader:()=>""}):o.errorResponse&&r(o.errorResponse()),i())},function(e){const t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))}};n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){e.exports=n(276)()},function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:n,changeDefaults:function(t){e.exports.defaults=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=n(1),a=n(5),i=n(17),o=n(14),s=n(11),c=n(8),l=n(34),u=n(4),p=n(16);class f extends i.View{constructor(e){super(e);const t=[...this.defaultProps,...this.props||[]];this.mergeOptions(e,t),r.result(this,"name")||u.c.throw(new u.b(`Error: View with cid:${this.cid} requires a name.`))}get defaultProps(){return["shell","layoutService"]}_setOptions(e){this.options=r.extend({},r.result(this,"defaults"),e)}_setAttributes(e){l.a.isDevelopment&&r.extend(e,{"cv-classname":this.name}),this.$el.attr(e)}get ui(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage}set ui(e){this.uiStorage=e}get elements(){return null}static AddViewDataExtension(e){f.ViewDataExtensions.push(e)}serializeModel(){return this.model?this.model.toJSON():{}}serializeCollection(){return this.collection?this.collection.toJSON():[]}resetClassName(){this.$el.attr("class",r.result(this,"className"))}serializeData(){const e=super.serializeData(),t=r.result(this,"viewOptions"),n=r.extend({},e,{options:t});return f.ViewDataExtensions.length?r.extend(n,...r.map(f.ViewDataExtensions,e=>e instanceof Function?e(this):e)):n}viewOptions(){return this.options}undelegateAppLinks(){this.$el&&this.$el.off(".appLinks"+this.cid)}renderAppLinks(){let e=this.appLinks;e&&(e=this.normalizeUIKeys(e),this.undelegateAppLinks(),r.each(r.keys(e),t=>{let n=t;const r=e[t],a=p.a.getHref(r);"[this]"===n&&(n=null);const i=n?this.$el.find(t):this.$el;(i.is("a")||i.is("button"))&&(a&&"/"!==a&&i.attr("href",a),this.delegate("click.appLinks"+this.cid,n,(function(e){e.preventDefault(),p.a.trigger(r)})))}))}hasPartialLoadingRegions(){const e=this;return void 0!==e._hasPartialLoadingRegions||(e._hasPartialLoadingRegions=r.some(e.regions,e=>r.has(e,"partialLoading"))),e._hasPartialLoadingRegions}renderPartialLoading(e){a.Radio.channel(c.a.SHELL).trigger("render:partial:loading",this,e)}listenTo(...e){return o.a.call(this,e[0],e[1],e[2],super.listenTo)}render(){const e=this;if(e._isDestroyed)return this;let t=this.processRequriedResources(!0);return t&&(t=e.triggerMethod("before:render",this)),!1!==t&&(t=!0),t=t&&this.processRequriedResources(!1),!1===t?(e._partialLoadingRendered||!e.hasPartialLoadingRegions()||(e._partialLoadingRendered=!0,e._reInitRegions(),e._renderTemplate(),e.renderPartialLoading()),this):((e._isRendered||e._partialLoadingRendered)&&e._reInitRegions(),this.setTitle(),e._renderTemplate(),e.bindUIElements(),this.renderAppLinks(),e._partialLoadingRendered=!1,e._isRendered=!0,e.triggerMethod("render",this),this)}processRequriedResources(e){return!0}setTitle(){}}f.ViewDataExtensions=[];class d extends f{constructor(e){super(e),this.boundListeners={},this.resourceInstances={}}processRequriedResources(e){const t=r.keys(this.requiredResources);if(!t.length)return!0;const n=this;let a=!0;return r.each(t,t=>{const r=this.requiredResources[t];if(r.beforeOnBeforeRender!==e)return;const i=r.dataServiceName;this.resourceInstances[i]||(this.resourceInstances[i]=r.getInstance(this)),this.boundListeners[`${i}:${r.eventName}`]||(this.listenTo(this.resourceInstances[i].channelName,r.eventName,this.render),this.boundListeners[`${i}:${r.eventName}`]=!0),n[t]=r.getData(this.resourceInstances[i]),a=a&&!!n[t]}),a}setTitle(){r.isString(this.title)||!1===this.title||u.c.throw(new s.a(`Must define a title for ${this.name}.`));a.Radio.channel(c.a.SHELL).trigger("set:page:title",this.title)}}class m extends f{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));function r(e){const t=+e;return isNaN(t)||!t?0:t}const a={currentTimestamp:()=>(new Date).valueOf(),isExpired(e,t){if(!t)return!1;const n=1e3*t;return e<a.currentTimestamp()-n},currentTimeOfDay(e){e||(e=new Date);const t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"},convertDurationToSeconds(e){const[t,n,a]=e.split(":");let i,o,s;return a||(s=n,o=t,i="0"),60*r(i)*60+60*r(o)+r(s)}}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var a in n)r[a]=n[a];return r.constructor=t,t.prototype=r,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),a=n(5),i=n(17),o=n(12),s=n(14),c=n(4);class l extends i.Application{constructor(e){super(e),this.mergeOptions(e,[...this.defaultProps,...this.props||[]]),r.result(this,"name")||c.c.throw(new c.b("BaseApplication must define a name")),r.result(this,"channelName")||c.c.throw(new c.b("BaseApplication must define a channelName")),this.listenTo(this.getGlobalRadioChannel("popup"),o.a.SHOW_POPUP,this.onShowPopup),this.listenTo(this.getGlobalRadioChannel("alert"),"show:alert",this.onShowAlert)}get defaultProps(){return["shell","layoutService"]}getGlobalRadioChannel(e){const t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||c.c.throw(new c.b(`Global channel ${t} does not exist`)),a.Radio.channel(t)}onLoadLayout(){if(!this.layoutOptions||!this.layoutOptions.name)return;const e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||c.c.throw(new c.b(`Layout: ${this.layoutOptions.name} does not exist or was not registered`)),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}onShowPopup(e){this.layout.getRegion("popup")||c.c.throw(new c.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}onShowAlert(e){const{ctor:t,collection:n}=e,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):c.c.throw(new c.b("Your application layout must define an alert region"))}setDefaultQueryParams(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}getAndClearDefaultQueryParams(){const e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}listenTo(...e){return s.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{use(e){var t;this.go=(t=this.go,(n,r)=>t(n,()=>e(n,r)))}go(e,t){t(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(39),a=n(11),i=n(4);class o extends r.b{constructor(e){super(e)}static getCacheKey(e){i.c.throw(new a.a(`Must define getCacheKey for ${this.name}.`))}unmountRegion(e){this.trigger("unmount:"+e)}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(274))},function(e,t,n){"use strict";(function(e){var r=n(15),a=n(201),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||a.a;t.a=c}).call(this,n(56)(e))},function(e,t){e.exports=c},function(e,t,n){e.exports={buttonList:"_2v9CT",dropdownToggle:"AYBvQ"}},function(e,t){e.exports=l},function(e,t,n){const r=n(294),a=n(295),i=n(59),o=n(196),s=n(195),c=n(194),{merge:l,checkSanitizeDeprecation:u,escape:p}=n(32),{getDefaults:f,changeDefaults:d,defaults:m}=n(38);function h(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=l({},h.defaults,t||{}),u(t);const i=t.highlight;let o,s,c=0;try{o=r.lex(e,t)}catch(e){return n(e)}s=o.length;const p=function(e){if(e)return t.highlight=i,n(e);let r;try{r=a.parse(o,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,r)};if(!i||i.length<3)return p();if(delete t.highlight,!s)return p();for(;c<o.length;c++)!function(e){"code"!==e.type?--s||p():i(e.text,e.lang,(function(t,n){return t?p(t):null==n||n===e.text?--s||p():(e.text=n,e.escaped=!0,void(--s||p()))}))}(o[c])}else try{return t=l({},h.defaults,t||{}),u(t),a.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||h.defaults).silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}h.options=h.setOptions=function(e){return l(h.defaults,e),d(h.defaults),h},h.getDefaults=f,h.defaults=m,h.Parser=a,h.parser=a.parse,h.Renderer=i,h.TextRenderer=o,h.Lexer=r,h.lexer=r.lex,h.InlineLexer=s,h.inlineLexer=s.output,h.Slugger=c,h.parse=h,e.exports=h},function(e,t){e.exports=u},function(e,t,n){e.exports={curatorLayout:"XayF7",topNavRegion:"_3ewaZ",leftNavRegion:"_2c2o6"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),a=n(17),i=n(14),o=n(4);class s extends a.CollectionView{constructor(e){super(e),r.result(this,"name")||o.c.throw(new o.b(`Error: View with cid:${this.cid} requires a name.`))}serializeModel(){return this.model?this.model.toJSON():{}}serializeCollection(){return this.collection?this.collection.toJSON():[]}listenTo(...e){return i.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";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=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!0;var o={},s=void 0,c=void 0;for(s=0,c=n.length;s<c;s++)o[n[s]]=!0;for(s=0,c=a.length;s<c;s++){var l=a[s],u=e[l],p=t[l];if(u!==p){if(!o[l]||null===u||null===p||"object"!==(void 0===u?"undefined":r(u))||"object"!==(void 0===p?"undefined":r(p)))return!0;var f=Object.keys(u),d=Object.keys(p);if(f.length!==d.length)return!0;for(var m=0,h=f.length;m<h;m++){var g=f[m];if(u[g]!==p[g])return!0}}}return!1}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(190),a=n(42),i=(0,r.createTokenClass)();function o(e){var t=e?{v:e}:{};return(0,a.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var s=o(),c=o("@"),l=o(":"),u=o("."),p=o(),f=o(),d=o("\n"),m=o(),h=o("+"),g=o("#"),y=o(),v=o("mailto:"),b=o("?"),S=o("/"),E=o("_"),C=o(),O=o(),A=o(),I=o("{"),T=o("["),j=o("<"),L=o("("),w=o("}"),k=o("]"),x=o(">"),_=o(")"),N=o("&");t.Base=i,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=p,t.LOCALHOST=f,t.NL=d,t.NUM=m,t.PLUS=h,t.POUND=g,t.QUERY=b,t.PROTOCOL=y,t.MAILTO=v,t.SLASH=S,t.UNDERSCORE=E,t.SYM=C,t.TLD=O,t.WS=A,t.OPENBRACE=I,t.OPENBRACKET=T,t.OPENANGLEBRACKET=j,t.OPENPAREN=L,t.CLOSEBRACE=w,t.CLOSEBRACKET=k,t.CLOSEANGLEBRACKET=x,t.CLOSEPAREN=_,t.AMPERSAND=N},function(e,t,n){const{defaults:r}=n(38),{cleanUrl:a,escape:i}=n(32);e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+i(r,!0)+'">'+(n?e:i(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:i(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+i(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=a(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},function(e,t,n){"use strict";e.exports=n(271)},function(e,t,n){"use strict";var r=n(272),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=d(n);a&&a!==m&&e(t,a,r)}var o=u(n);p&&(o=o.concat(p(n)));for(var s=c(t),h=c(n),g=0;g<o.length;++g){var y=o[g];if(!(i[y]||r&&r[y]||h&&h[y]||s&&s[y])){var v=f(n,y);try{l(t,y,v)}catch(e){}}}}return t}},function(e,t){e.exports=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),a=n(5),i=n(17),o=n(16),s=n(14),c=n(44),l=n(12),u=n(4),p=n(24),f=n(8);const d=/([A-Z])/g,m=/(^|:)(\w)/gi;class h extends i.AppRouter{constructor(e){super(e),this.bindDisposal(),this.processInternalRoutes(),this.processExternalRoutes(),this.processAppLinks()}bindDisposal(){this.listenTo(f.a.SHELL,l.a.ROUTE,e=>{e.application!==this.channelName&&this.destroyApp()})}addRouteLookup(e,t){this.options.shell.addRouteLookup(`${this.channelName}:${e}`,(n,r)=>o.a.buildRoute(t,{application:this.channelName,action:e,args:n,params:r}))}processInternalRoutes(){r.each(r.keys(this.appRoutes),e=>{const t=this.appRoutes[e],n=this.toEventName(t);this.addRouteLookup(n,e),this.listenTo(this.channelName,n,(t,n)=>{n&&n.usedHelper||u.c.throw(new u.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(t,{isAppRoute:!0},()=>{const a=r.extend({},this.controller.getAndClearDefaultQueryParams(),t.params);t.params=a,p.a.UpdateUrl(e,t,n)})})})}processExternalRoutes(){this.externalRoutes&&r.each(r.keys(this.externalRoutes),e=>{const t=this.externalRoutes[e],n=this.toEventName(t);this.addRouteLookup(n,e),this.listenTo(this.channelName,n,(e,t)=>{t&&t.usedHelper||u.c.throw(new u.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),p.a.PageLoad(o.a.getHref(e))})})}processAppLinks(){this.appLinks&&r.each(this.appLinks,e=>{const t=this.toEventName(e);this.listenTo(this.channelName,t,(e,t)=>{t&&t.usedHelper||u.c.throw(new u.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(e,{isAppRoute:!1})})})}executeRoute(e,t,n){this.validateAppLink(e);const i=this.toMethodName(e.action);o.b.routingStarted();const s=a.Radio.channel(f.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(l.a.NAV_IS_LOCKED,e),void o.b.routingEnded();const p=new c.a;r.each(this.filters,e=>p.use(e)),p.go({appLink:e,shell:this.options.shell},()=>{s.trigger(l.a.ROUTE,e,t),this.createApp();const a=this.controller;if(r.isFunction(a[i])||(o.b.routingEnded(),u.c.throw(new u.b(`${i} does not exist on the ${r.result(a,"name")}.`))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void o.b.routingEnded();a.triggerMethod("load:layout"),a[i].apply(a,[...e.args||[],e.params||{}]),r.isFunction(n)&&n(),o.b.routingEnded()})}createApp(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}destroyApp(){if(!this.controller)return;this.controller.destroy(),delete this.controller}_addAppRoute(e,t,n){this.route(t,n,(...e)=>{const t={application:this.channelName,action:this.toEventName(n),args:e.slice(0,e.length-1),params:p.a.DeserializeQueryParams(e[e.length-1])};this.executeRoute(t,{isAppRoute:!0},()=>{p.a.UpdateQuery(r.extend(this.controller.getAndClearDefaultQueryParams(),t.params))})})}toEventName(e){return e.replace(d,":$1").toLowerCase()}toMethodName(e){const t=e.replace(m,(e,t,n)=>n.toUpperCase());return t[0].toLowerCase()+t.slice(1,t.length)}validateAppLink(e){e.application&&e.action||(o.b.routingEnded(),u.c.throw(new u.b("Invalid AppLink")))}listenTo(...e){return s.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(17),a=n(14);class i extends r.Behavior{listenTo(...e){return a.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(28),i=n(33);class o extends a.a{set(e,t,n){let a,i;if(null===e)return this;for(a in"object"==typeof e?(i=e,n=t):(i={},i[e]=t),n||(n={}),i)r.has(this.associations,a)&&(i[a]=this.setAssociation(a,i[a],n));return super.set.call(this,i,n)}get(e){const t=e.indexOf(".");if(-1===t)return super.get.call(this,e);const n=e.substr(0,t),a=this.attributes[n];if(!a||!r.isFunction(a.get))return super.get.call(this,e);const i=e.substr(t+1);return a.get(i)}setAssociation(e,t,n){const o=this.associations[e],s=this.attributes[e];if(!r.isFunction(o))return t;if(n.unset)return s&&delete s.parent,delete this[e],s;if(s)return s instanceof a.a&&s.set(t,n),s instanceof i.a&&s.set(t,n),n.silent||this.trigger("change:"+e,this,t,n),s;const c=t instanceof a.a?t:new o(t,{parse:!0});return c.parent=this,this[e]=c,c}toJSON(...e){const t=super.toJSON.apply(this,e);return r.each(this.associations,(e,n)=>{r.has(t,n)&&r.isFunction(t[n].toJSON)?t[n]=t[n].toJSON():t[n]=(new e).toJSON()}),t}toFlatJSON(...e){return r.omit(super.toJSON.apply(this,e),r.keys(this.associations))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),a=n(17),i=n(14),o=n(4);class s extends a.Object{constructor(e){super(e),this.layouts={},this.requiredRegions=e.requiredRegions}clearLayout(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}registerLayout(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}getLayout(e){const{name:t,options:n={}}=e;this.layouts[t]||o.c.throw(new o.b(t+" was not registered as a template."));const r=this.layouts[t].getCacheKey(n);return this.currentLayoutCacheKey===r&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",n),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=r,this.currentLayout=new this.layouts[t](n),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}checkRequiredRegions(e){r.each(this.requiredRegions,t=>{r.has(r.result(e.prototype,"regions"),t)||o.c.throw(new o.b(`Layout: ${e.prototype.name} must define an ${t} region.`))})}listenTo(...e){return i.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),a=n(5),i=n(17),o=n(16),s=n(14),c=n(8),l=n(4),u=n(12),p=n(24);class f{constructor(e,t){this.application=e,this.options=t||{}}get Application(){return this.application}get Options(){return this.options}}class d extends i.Application{initialize(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}bindListeners(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}bindNavLockListeners(){this.listenTo(c.a.SHELL,u.a.LOCK_NAV,()=>this.shellState.navLock=!0),this.listenTo(c.a.SHELL,u.a.UNLOCK_NAV,()=>this.shellState.navLock=!1)}bindAppLinkListeners(){this.listenTo(c.a.SHELL,u.a.ROUTING_START,()=>this.shellState.activeRoute=!0),this.listenTo(c.a.SHELL,u.a.ROUTING_END,()=>this.shellState.activeRoute=!1),this.listenTo(c.a.SHELL,u.a.ROUTE,e=>this.shellState.currentAppLink=e);const e=a.Radio.channel(c.a.SHELL);e.reply(u.a.HAS_ACTIVE_ROUTE,r.bind(this.hasActiveRoute,this)),e.reply(u.a.CURRENT_ROUTE,()=>this.shellState.currentAppLink)}bindErrorHandlers(){window.addEventListener("error",()=>{o.b.routingEnded()})}bindErrorListener(){const e=a.Radio.channel(c.a.SHELL);this.listenTo(e,u.a.ERROR,this.handleError)}bindRouteLookup(){a.Radio.channel(c.a.SHELL).reply(u.a.ROUTE_LOOKUP,(e,t,n)=>this.routeLookup[e]?this.routeLookup[e](t,n):"",this)}addRouteLookup(e,t){this.routeLookup[e]=t}registerApplication(e,t){return this.applications.push(new f(e,t)),this}getGlobalRadioChannels(){return c.a}isNavLocked(){return this.shellState.navLock}start(e){e||(e={}),this.runInitializationSteps(this,()=>{this.runStartUpSteps(this,e,()=>{super.start(e)})})}hasActiveRoute(){return this.shellState.activeRoute}onStart(){r.each(this.applications,e=>{const t={appConstructor:e.Application,shell:this,appOptions:Object.assign({region:"",shell:this,layoutService:this.layoutService},e.Options)};new e.Application.router(t)}),this.bindListeners(),p.a.StartHistory()}addInitializationStep(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,(n,r)=>t(n,()=>e(n,r))),this}runInitializationSteps(e,t){t(e)}addStartUpStep(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,(n,r,a)=>t(n,r,()=>e(n,r,a))),this}runStartUpSteps(e,t,n){n(e,t)}registerLayout(e,t){return this.layoutService.registerLayout(e,t),this}registerErrorHandler(e,t){return e||l.c.throw(new l.b("An error must have a name in order to register a handler for it.")),r.any(this.errorHandlers,t=>t.errorType===e)&&l.c.throw(new l.b(`An error handler for ${e.prototype.name} has already been defined.`)),this.errorHandlers.push({errorType:e,handler:t}),this}handleError(e){const t=r.find(this.errorHandlers,t=>e instanceof t.errorType);t&&t.handler&&t.handler(e)}registerStore(e){this.store=e}listenTo(...e){return s.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(18);n.d(t,"Actions",(function(){return r.a}));var a=n(19);n.d(t,"RequestStatus",(function(){return a.a}));var i=n(70);for(var o in i)["Actions","RequestStatus","default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var s=n(197);n.d(t,"ajaxRequest",(function(){return s.a}));var c=n(26);n.d(t,"normalize",(function(){return c.b})),n.d(t,"denormalize",(function(){return c.a}));var l=n(198);n.d(t,"emptyResponse",(function(){return l.a})),n.d(t,"getResponse",(function(){return l.d})),n.d(t,"getFetch",(function(){return l.c})),n.d(t,"fetch",(function(){return l.b})),n.d(t,"hooklessFetch",(function(){return l.e})),n.d(t,"useGetFetch",(function(){return l.g})),n.d(t,"useGetResponse",(function(){return l.h})),n.d(t,"useBasicFetch",(function(){return l.f}));var u=n(80);n.d(t,"createMiddleware",(function(){return u.a}));var p=n(81);n.d(t,"FlightReducer",(function(){return p.a}));var f=n(82);n.d(t,"Simulator",(function(){return f.a}))},function(e,t,n){"use strict";n.r(t);var r=n(71);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var i=n(72);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o=n(73);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var s=n(74);for(var a in s)"default"!==a&&function(e){n.d(t,e,(function(){return s[e]}))}(a);var c=n(75);for(var a in c)"default"!==a&&function(e){n.d(t,e,(function(){return c[e]}))}(a);var l=n(76);for(var a in l)"default"!==a&&function(e){n.d(t,e,(function(){return l[e]}))}(a);var u=n(77);for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);var p=n(78);for(var a in p)"default"!==a&&function(e){n.d(t,e,(function(){return p[e]}))}(a);var f=n(79);for(var a in f)"default"!==a&&function(e){n.d(t,e,(function(){return f[e]}))}(a)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(40),a=n(7),i=n(19),o=n(18),s=n(26),c=n(36),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function u(e){const{fetchData:t,bootstrappedData:n,defaultExpiryTime:u}=e,p=Object.freeze({key:null,url:null,type:a.a.GET,normalize:!0,formatData:e=>e,expiryTime:u});return function(e){return a=>u=>{if(u.type!==o.a.API_REQUEST)return void a(u);const f=e.getState(),d=Object.assign({},p,u.request),{success:m,error:h,always:g,formatData:y}=d,v=l(d,["success","error","always","formatData"]),b=f.flightData.resources[v.key];if(a(u),b&&b.status===i.a.Fetching)return;if(v.bootstrapName&&n[u.request.bootstrapName])return E(n[u.request.bootstrapName]),C(),void delete n[u.request.bootstrapName];const S={resource:v.url,type:v.type,data:v.data,success:E,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:u.request,timestamp:r.a.currentTimestamp(),xhr:t}),v.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:v.invalidationKeys,request:v});h&&h(t)},always:C};return void(c.a.isSimulated(v)?c.a.simulateFetchData(S,v):t(S));function E(t,n){const a=y(t);let i={result:a,entities:{}};if(v.normalize&&(i=Object(s.b)(a,v.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:i.result,entities:i.entities,request:v,timestamp:r.a.currentTimestamp(),xhr:n}),v.updateState){(Array.isArray(v.updateState)?v.updateState:[v.updateState]).forEach(t=>{!function(t){const n=c.b.getMatchingKeyMap(f.flightData,t.keys),r=Object.assign({},Object.keys(f.flightData.resources).filter(e=>n[e]).reduce((e,t)=>{const n=f.flightData.resources[t];let r=n.response;return n.request.normalize&&(r=Object(s.a)(n.response,f.flightData.entities)),e[t]=r,e},{})),a=t.updateData(r);Object.keys(a).forEach(t=>{const n=f.flightData.resources[t],r=a[t];let i={result:r,entities:{}};n.request.normalize&&(i=Object(s.b)(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})})}(t)})}if(v.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:v.invalidationKeys,request:v}),!m)return;let l=i.result;v.normalize&&(l=Object(s.a)(i.result,Object.assign(Object.assign({},f.flightData.entities),i.entities))),m(l)}function C(){g&&g()}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(18),a=n(19),i=n(36);function o(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]}),n}const s={resources:{},entities:{}};function c(e=s,t){switch(t.type){case r.a.API_REQUEST:return function(e,t){const n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:{request:t.request,status:a.a.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}})}}(e,t);case r.a.API_REPONSE:return function(e,t){var n;const r=t.entities?Object.keys(t.entities):[];return{entities:o(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:{request:t.request,status:a.a.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}})}}(e,t);case r.a.API_ERROR:return function(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:{request:t.request,status:a.a.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}})}}(e,t);case r.a.INVALIDATE:return function(e,t){var n;const r=i.b.getMatchingKeyMap(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter(e=>r[e]).reduce((t,n)=>{const r=e.resources[n];return t[n]=Object.assign({},r,{status:a.a.None}),t},{}))}}(e,t);case r.a.UPDATE:return function(e=s,t){const n=t.entities?Object.keys(t.entities):[];return{entities:o(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})})}}(e,t)}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(10);const a="id";function i(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function o(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}const s={getAll(e,t){const n=o(e);return n&&n.length?n:!n&&t?(t.forEach(t=>s.create(e,t)),o(e)):[]},get(e,t){const n=s.getAll(e);return n.length?n.find(e=>e[a]===t):null},create(e,t){const n=s.getAll(e),r=Object.assign(Object.assign({},t),{[a]:t[a]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()});return n.push(r),i(e,n),r},update(e,t){const n=s.getAll(e);if(!n.length)return t;const r=n.findIndex(e=>e[a]===t[a]);return n[r]=t,i(e,n),t},delete(e,t){const n=s.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach(e=>{const t=n.findIndex(t=>t[a]===e);n.splice(t,1)}),i(e,n))},assoc(e,t,n,a,o){const c=Array.isArray(o);let l=c?o:[o];"string"==typeof r.a.first(l)&&(l=s.getAll(a).filter(e=>l.includes(e.id)));const u=l.map(e=>e.id?e:s.create(a,e));let p=s.getAll(e);if(!p.length)return;const f=p.find(e=>e.id===t);return f?(u.forEach(e=>{if(f[n])if(Array.isArray(f[n])){if(f[n].find(t=>t.id===e.id))return;f[n].push(e)}else f[n]=e;else f[n]=c?[e]:e}),p=p.map(e=>e.id!==f.id?e:f),i(e,p),c?u:r.a.first(u)):void 0},dissoc(e,t,n,r){let a=s.getAll(e);if(!a.length)return;const o=a.find(e=>e.id===t);if(!o)return;let c=o[n];return c?(Array.isArray(r)||(r=[r]),Array.isArray(c)||(c=[c]),r.forEach(e=>{const t=c.findIndex(t=>t.id===e);c.splice(t,1)}),o[n]=c,a=a.map(e=>e.id!==o.id?e:o),i(e,a),a):void 0}}},function(e,t){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share2",icon:["24","24",[],"","M19.4216766,5.00521391 C19.613919,4.98125611 19.7682745,5.03986249 19.8847432,5.18103303 C20.0012119,5.32220356 20.0294106,5.48346256 19.9693393,5.66481001 L19.9693393,5.66481001 L14.1956074,19.738196 C14.0955154,19.912732 13.9481454,20 13.7534974,20 C13.5588494,20 13.4140159,19.912732 13.3189969,19.738196 L13.3189969,19.738196 L9.93477602,13.4796112 L4.20437042,9.12353139 C4.02183531,8.9778479 3.96157474,8.8005141 4.02358872,8.59152998 C4.0856027,8.38254586 4.23262042,8.26120315 4.46464188,8.22750185 L4.46464188,8.22750185 Z M18.2074971,7.35312765 L10.9727276,13.3209485 L13.6956405,18.351754 L18.2074971,7.35312765 Z M17.8703206,6.3505542 L5.65837825,8.98552539 L10.3489793,12.5526101 L17.8703206,6.3505542 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"download",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,1.5 C6.20101013,1.5 1.5,6.20101013 1.5,12 C1.5,17.7989899 6.20101013,22.5 12,22.5 C17.7989899,22.5 22.5,17.7989899 22.5,12 C22.5,6.20101013 17.7989899,1.5 12,1.5 Z M11.891348,6.57740196 C12.3228205,6.57740196 12.672598,6.90219539 12.672598,7.30284839 L12.672598,15.8734074 L15.9688771,12.9198893 C16.2895816,12.632533 16.7935459,12.632533 17.1142504,12.9198893 C17.428584,13.2015371 17.4403865,13.6568031 17.1492025,13.9444514 C17.1406308,13.952919 17.131841,13.9611887 17.1228407,13.969253 L12.4640347,18.1436167 C12.1433302,18.4309731 11.6393659,18.4309731 11.3186614,18.1436167 L6.65985537,13.969253 C6.35411213,13.6953023 6.34230957,13.2400363 6.6334936,12.952388 C6.64206526,12.9439204 6.65085513,12.9356507 6.65985537,12.9275864 C6.9891502,12.632533 7.49311447,12.632533 7.813819,12.9198893 L11.110098,15.8734074 L11.110098,7.30284839 C11.110098,6.90219539 11.4598756,6.57740196 11.891348,6.57740196 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"print",icon:["24","24",[],"","M16.3125,0 C18.2510156,0 19.828125,1.57710938 19.828125,3.515625 L19.828125,3.515625 L19.828125,6.046875 L20.484375,6.046875 C22.4228906,6.046875 24,7.62398438 24,9.5625 L24,9.5625 L24,15.1875 C24,17.1260156 22.4228906,18.703125 20.484375,18.703125 L20.484375,18.703125 L19.828125,18.703125 L19.828125,21.890625 C19.828125,23.0537344 18.8818594,24 17.71875,24 L17.71875,24 L6.28125,24 C5.11814062,24 4.171875,23.0537344 4.171875,21.890625 L4.171875,21.890625 L4.171875,18.703125 L3.515625,18.703125 C1.57710938,18.703125 0,17.1260156 0,15.1875 L0,15.1875 L0,9.5625 C0,7.62398438 1.57710938,6.046875 3.515625,6.046875 L3.515625,6.046875 L4.171875,6.046875 L4.171875,3.515625 C4.171875,1.57710938 5.74898438,0 7.6875,0 L7.6875,0 Z M18.421875,14.953125 L5.578125,14.953125 L5.578125,21.890625 C5.578125,22.2783281 5.89354688,22.59375 6.28125,22.59375 L6.28125,22.59375 L17.71875,22.59375 C18.1064531,22.59375 18.421875,22.2783281 18.421875,21.890625 L18.421875,21.890625 L18.421875,14.953125 Z M15.3181818,20 C15.6947273,20 16,20.2238667 16,20.5 C16,20.7761333 15.6947273,21 15.3181818,21 L15.3181818,21 L11.6818182,21 C11.3052727,21 11,20.7761333 11,20.5 C11,20.2238667 11.3052727,20 11.6818182,20 L11.6818182,20 Z M15.3181818,17 C15.6947273,17 16,17.2238667 16,17.5 C16,17.7761333 15.6947273,18 15.3181818,18 L15.3181818,18 L11.6818182,18 C11.3052727,18 11,17.7761333 11,17.5 C11,17.2238667 11.3052727,17 11.6818182,17 L11.6818182,17 Z M20.484375,7.453125 L3.515625,7.453125 C2.35251563,7.453125 1.40625,8.39939063 1.40625,9.5625 L1.40625,9.5625 L1.40625,15.1875 C1.40625,16.3506094 2.35251563,17.296875 3.515625,17.296875 L3.515625,17.296875 L4.171875,17.296875 L4.171875,14.953125 L3.75,14.953125 C3.3616875,14.953125 3.046875,14.6383125 3.046875,14.25 C3.046875,13.8616875 3.3616875,13.546875 3.75,13.546875 L3.75,13.546875 L20.25,13.546875 C20.6383125,13.546875 20.953125,13.8616875 20.953125,14.25 C20.953125,14.6383125 20.6383125,14.953125 20.25,14.953125 L20.25,14.953125 L19.828125,14.953125 L19.828125,17.296875 L20.484375,17.296875 C21.6474844,17.296875 22.59375,16.3506094 22.59375,15.1875 L22.59375,15.1875 L22.59375,9.5625 C22.59375,8.39939063 21.6474844,7.453125 20.484375,7.453125 L20.484375,7.453125 Z M5.23076923,9 C5.65558974,9 6,9.22386667 6,9.5 C6,9.77613333 5.65558974,10 5.23076923,10 L5.23076923,10 L2.76923077,10 C2.34441026,10 2,9.77613333 2,9.5 C2,9.22386667 2.34441026,9 2.76923077,9 L2.76923077,9 Z M16.3125,1.40625 L7.6875,1.40625 C6.52439063,1.40625 5.578125,2.35251562 5.578125,3.515625 L5.578125,3.515625 L5.578125,6.046875 L18.421875,6.046875 L18.421875,3.515625 C18.421875,2.35251562 17.4756094,1.40625 16.3125,1.40625 L16.3125,1.40625 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","M4,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","M11.64 16.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){"use strict";var r,a,i,o,s,c,l,u,p,f,d,m,h,g,y,v,b,S,E,C,O;n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return C})),n.d(t,"b",(function(){return O})),function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url"}(a||(a={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.Dashboard="dashboard"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(o||(o={})),function(e){e.PageLoad="page_load"}(s||(s={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(c||(c={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(l||(l={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(u||(u={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(p||(p={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(f||(f={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide"}(d||(d={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip"}(m||(m={})),function(e){e.LibraryReview="library_review"}(h||(h={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(g||(g={})),function(e){e.Edit="edit"}(y||(y={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist",e.Link="link"}(v||(v={})),function(e){e.On="on",e.Off="off"}(b||(b={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(S||(S={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(E||(E={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects"}(C||(C={})),function(e){e[e.V1=1]="V1"}(O||(O={}))},function(e,t,n){"use strict";var r;!function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(42);var a=function(e){this.j=[],this.T=e||null};a.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],a=n[1];if(this.test(e,r))return a}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,r.inherits)(a,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),o=(0,r.inherits)(a,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=o,t.stateify=function(e,t,n,r){for(var a=0,o=e.length,s=t,c=[],l=void 0;a<o&&(l=s.next(e[a]));)s=l,a++;if(a>=o)return[];for(;a<o-1;)l=new i(r),c.push(l),s.on(e[a],l),s=l,a++;return l=new i(n),c.push(l),s.on(e[o-1],l),c}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";var r=n(192);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}))},function(e,t){},function(e,t,n){const{noopTest:r,edit:a,merge:i}=n(32),o={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};o.def=a(o.def).replace("label",o._label).replace("title",o._title).getRegex(),o.bullet=/(?:[*+-]|\d{1,9}\.)/,o.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,o.item=a(o.item,"gm").replace(/bull/g,o.bullet).getRegex(),o.list=a(o.list).replace(/bull/g,o.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+o.def.source+")").getRegex(),o._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",o._comment=/<!--(?!-?>)[\s\S]*?-->/,o.html=a(o.html,"i").replace("comment",o._comment).replace("tag",o._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),o.paragraph=a(o._paragraph).replace("hr",o.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",o._tag).getRegex(),o.blockquote=a(o.blockquote).replace("paragraph",o.paragraph).getRegex(),o.normal=i({},o),o.gfm=i({},o.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),o.pedantic=i({},o.normal,{html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",o._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:a(o.normal._paragraph).replace("hr",o.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",o.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};s.em=a(s.em).replace(/punctuation/g,s._punctuation).getRegex(),s._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,s.autolink=a(s.autolink).replace("scheme",s._scheme).replace("email",s._email).getRegex(),s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,s.tag=a(s.tag).replace("comment",o._comment).replace("attribute",s._attribute).getRegex(),s._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,s._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,s.link=a(s.link).replace("label",s._label).replace("href",s._href).replace("title",s._title).getRegex(),s.reflink=a(s.reflink).replace("label",s._label).getRegex(),s.normal=i({},s),s.pedantic=i({},s.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",s._label).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",s._label).getRegex()}),s.gfm=i({},s.normal,{escape:a(s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),s.gfm.url=a(s.gfm.url,"i").replace("email",s.gfm._extended_email).getRegex(),s.breaks=i({},s.gfm,{br:a(s.br).replace("{2,}","*").getRegex(),text:a(s.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:o,inline:s}},function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},function(e,t,n){const r=n(59),{defaults:a}=n(38),{inline:i}=n(193),{findClosingBracket:o,escape:s}=n(32);e.exports=class e{constructor(e,t){if(this.options=t||a,this.links=e,this.rules=i.normal,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.options.breaks?this.rules=i.breaks:this.rules=i.gfm)}static get rules(){return i}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,a,i,c,l,u="";for(;t;)if(c=this.rules.escape.exec(t))t=t.substring(c[0].length),u+=s(c[1]);else if(c=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(c[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(c[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.inRawBlock=!1),t=t.substring(c[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):s(c[0]):c[0];else if(c=this.rules.link.exec(t)){const r=o(c[2],"()");if(r>-1){const e=(0===c[0].indexOf("!")?5:4)+c[1].length+r;c[2]=c[2].substring(0,r),c[0]=c[0].substring(0,e).trim(),c[3]=""}t=t.substring(c[0].length),this.inLink=!0,a=c[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a),n?(a=n[1],i=n[3]):i=""):i=c[3]?c[3].slice(1,-1):"",a=a.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(c,{href:e.escapes(a),title:e.escapes(i)}),this.inLink=!1}else if((c=this.rules.reflink.exec(t))||(c=this.rules.nolink.exec(t))){if(t=t.substring(c[0].length),n=(c[2]||c[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){u+=c[0].charAt(0),t=c[0].substring(1)+t;continue}this.inLink=!0,u+=this.outputLink(c,n),this.inLink=!1}else if(c=this.rules.strong.exec(t))t=t.substring(c[0].length),u+=this.renderer.strong(this.output(c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.em.exec(t))t=t.substring(c[0].length),u+=this.renderer.em(this.output(c[6]||c[5]||c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.code.exec(t))t=t.substring(c[0].length),u+=this.renderer.codespan(s(c[2].trim(),!0));else if(c=this.rules.br.exec(t))t=t.substring(c[0].length),u+=this.renderer.br();else if(c=this.rules.del.exec(t))t=t.substring(c[0].length),u+=this.renderer.del(this.output(c[1]));else if(c=this.rules.autolink.exec(t))t=t.substring(c[0].length),"@"===c[2]?(r=s(this.mangle(c[1])),a="mailto:"+r):(r=s(c[1]),a=r),u+=this.renderer.link(a,null,r);else if(this.inLink||!(c=this.rules.url.exec(t))){if(c=this.rules.text.exec(t))t=t.substring(c[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):s(c[0]):c[0]):u+=this.renderer.text(s(this.smartypants(c[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===c[2])r=s(c[0]),a="mailto:"+r;else{do{l=c[0],c[0]=this.rules._backpedal.exec(c[0])[0]}while(l!==c[0]);r=s(c[0]),a="www."===c[1]?"http://"+r:r}t=t.substring(c[0].length),u+=this.renderer.link(a,null,r)}return u}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?s(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,s(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",a=0;for(;a<t;a++)n=e.charCodeAt(a),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}}},function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},function(e,t,n){"use strict";var r=n(7);function a(e){const{getResponseHeader:t,responseJSON:n,status:r}=e;return{getResponseHeader:t,responseJSON:n,status:r}}const i=[r.a.POST,r.a.PUT];function o(e){const{resource:t,type:n,headers:r,success:o,error:s,always:c}=e,l={url:t,method:n};i.includes(n)&&e.data&&(l.data=JSON.stringify(e.data)),r&&(l.headers=r),$.ajax(l).done((e,t,n)=>{o&&o(e,a(n))}).fail(e=>{s&&s(a(e))}).always(()=>{c&&c()})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(6);function a(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a<r;a++)if(!e(t[a],n[a]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=null,r=null;return function(){return i(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,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 c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];var i=0,o=r.pop(),c=s(r),l=e.apply(void 0,[function(){return i++,o.apply(null,arguments)}].concat(n)),u=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return l.apply(null,e)}));return u.resultFunc=o,u.dependencies=c,u.recomputations=function(){return i},u.resetRecomputations=function(){return i=0},u}}var l=c(o);var u=n(40),p=n(9),f=n(18),d=n(26),m=n(19),h=n(0);n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"e",(function(){return C})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return A})),n.d(t,"f",(function(){return I}));class g{constructor(e){this.status=e.status,this.requestTime=e.requestTime,this.cacheDuration=e.cacheDuration,this.data=e.data,this.statusCode=e.statusCode}get shouldFetch(){return this.status===m.a.None||this.isExpired}get isExpired(){return u.a.isExpired(this.requestTime,this.cacheDuration)}get isFetching(){return this.status===m.a.Fetching}get hasError(){return this.status===m.a.Error}get isComplete(){return this.status===m.a.Success||this.status===m.a.Error}}function y(e,t,n){if(!e||!t)return v();let r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new g({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function v(){return new g({status:m.a.None})}function b(e,t){return y(t,e.flightData.resources[t],e.flightData.entities)}function S(e,t){return()=>{E(e,t)}}function E(e,t){e({type:f.a.API_REQUEST,request:t})}function C(e,t,n){var r,a,i,o;const s=b(t,null==n?void 0:n.key);n&&s.shouldFetch?E(e,n):s.hasError?(null===(r=n.error)||void 0===r||r.call(n,null),null===(a=n.always)||void 0===a||a.call(n)):(null===(i=n.success)||void 0===i||i.call(n,s.data),null===(o=n.always)||void 0===o||o.call(n))}function O(e){const t=Object(r.useDispatch)();if(e)return S(t,e)}function A(e,t){const n=Object(h.useMemo)(()=>(null==t?void 0:t.optimize)?function(e){return c(o,(e,t)=>{const n=["response","request"];return p.a.isEqual(p.a.omit(e,n),p.a.omit(t,n))})(t=>t.flightData.resources[e],t=>{const n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((e,n)=>(e[n]=t.flightData.entities[n],e),{}):{}},(t,n)=>y(e,t,n))}(e):function(e){return l(t=>t.flightData.resources[e],e=>e.flightData.entities,(t,n)=>y(e,t,n))}(e),[e]);return Object(r.useSelector)(e=>n(e))}function I(e,t){const n=Object(r.useDispatch)(),a=A(e&&e.key,t),i=S(n,e);return e&&a.shouldFetch&&i(),a}},function(e,t,n){"use strict";var r,a;!function(e){e.Boolean="System.Boolean",e.String="System.String",e.StaffRequest="ClickView.DomainApi.Models.Options.Enums.StaffRequestOption, ClickView.DomainApi.Models, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null",e.Long="System.Int64"}(r||(r={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(a||(a={})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},function(e,t,n){var r=n(270);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,a){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(15),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(56)(e))},function(e,t){e.exports=f},function(e,t,n){"use strict";e.exports=n(275).default},function(e,t,n){e.exports=n(288).default},function(e,t){e.exports=d},function(e,t,n){e.exports={navContainer:"_3SbvR"}},function(e,t,n){e.exports={navContainer:"_11O8h"}},function(e,t,n){e.exports={navContainer:"_3by-P"}},function(e,t,n){e.exports={navContainer:"_3vLoN"}},function(e,t,n){"use strict";var r=n(296).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){e.exports={copyBtn:"_3uXV3"}},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t){e.exports=m},function(e,t,n){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):"function"==typeof define&&define.amd?define(["React","_","Yup","ReactBootstrap","Backbone","ReactRedux","Marionette","FontAwesome","DOMPurify","SortableHOC","ReactDOM","ReactTransitionGroup","Polyglot","Cropper","Handlebars"],t):"object"==typeof exports?exports["@clickview/curator"]=t(require("React"),require("_"),require("Yup"),require("ReactBootstrap"),require("Backbone"),require("ReactRedux"),require("Marionette"),require("FontAwesome"),require("DOMPurify"),require("SortableHOC"),require("ReactDOM"),require("ReactTransitionGroup"),require("Polyglot"),require("Cropper"),require("Handlebars")):e["@clickview/curator"]=t(e.React,e._,e.Yup,e.ReactBootstrap,e.Backbone,e.ReactRedux,e.Marionette,e.FontAwesome,e.DOMPurify,e.SortableHOC,e.ReactDOM,e.ReactTransitionGroup,e.Polyglot,e.Cropper,e.Handlebars)}(window,(function(e,t,n,r,i,o,a,c,s,u,l,f,p,d,m){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=299)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return O}));var r=n(5),i=n(8),o=n(34),a=n(12);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}function p(e){var t=y();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)})(e)}function h(e,t,n){return(h=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&v(i,n.prototype),i}).apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(m(Error)),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return u(n,[{key:"name",get:function(){return"SilentError"}}]),n}(g),E=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return u(n,[{key:"name",get:function(){return"CoreError"}}]),n}(m(Error)),O={throw:function(e){if(r.Radio.channel(i.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof S||o.a.isDevelopment))throw e}}},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),i={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?i.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(9);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={first:function(e){return r.first(e)},firstFew:function(e,t){return r.first(e,t)},last:function(e){return r.last(e)},lastFew:function(e,t){return r.last(e,t)},max:function(e,t){return r.max(e,t)},cloneAndReplaceAtIdx:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[].concat(o(i),o(Array(t+1-i.length).fill(r)))),i.splice(t,1,n),i},moveItem:function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:function(e){return e&&!e.length},findIndex:function(e,t){return r.findIndex(e,t)},findWhere:function(e,t){return r.findWhere(e,t)},where:function(e,t){return r.where(e,t)},groupBy:function(e,t){return r.groupBy(e,t)},flatten:function(e,t){return r.flatten(e,t)},intersection:function(){return r.intersection.apply(r,arguments)},addOrRemove:function(e,t){var n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable:function(e,t){var n=e.indexOf(t),r=i.a.deepClone(e);return-1===n?[].concat(o(r),[t]):[].concat(o(r.slice(0,n)),o(r.slice(n+1)))},sortBy:function(e,t){return r.sortBy(e,t)},chunk:function(e,t){return r.chunk(e,t)},uniq:function(e,t){return r.uniq(e,t)}}},function(e,t,n){"use strict";function r(e){return(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})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(u,e);var t,n,r,s=c(u);function u(){return i(this,u),s.apply(this,arguments)}return t=u,(n=[{key:"name",get:function(){return"DevError"}}])&&o(t.prototype,n),r&&o(t,r),u}(n(4).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},function(e,t,n){"use strict";var r=n(174);n.d(t,"EntityType",(function(){return r.a})),n.d(t,"EventVersion",(function(){return r.b})),n.d(t,"InteractionType",(function(){return r.c})),n.d(t,"InteractionTypeDescriptor",(function(){return r.d})),n.d(t,"LocationContext",(function(){return r.e})),n.d(t,"SearchQueryType",(function(){return r.f})),n.d(t,"UserAction",(function(){return r.g}));n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);function i(e,t,n,i){var o=e;return"string"==typeof e&&(o=r.Radio.channel(e)),i.call(this,o,t,n)}},function(e,t,n){"use strict";var r=n(47),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var r=n(1),i=n(5),o=n(24),a=n(8),c=n(12),s=/((\(\?)?:\w+)|(\*\w+)/,u=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){i.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&i.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return i.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;i.Radio.channel(n).trigger(r,e,t)},m={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,o=e.params,s=i.Radio.channel(a.a.SHELL);return"/".concat(s.request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,o))},buildRoute:function(e,t){if(!t)return e;var n=t.args,i=t.params;if(r.each(n,(function(t){e=e.replace(s,t||"")})),e=(e=(e=e.replace(l,"")).replace(u,"")).replace(f,""),!i)return e;var a=o.a.SerializeQueryParams(i);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?i.Radio.channel(a.a.SHELL).once("routing:end",(function(){d(e,t)})):d(e,t))},getCurrentAppLink:function(){return i.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t){e.exports=a},function(e,t,n){"use strict";var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"};n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(191);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}));var i=n(199);n.d(t,"DomainOptionKind",(function(){return i.a})),n.d(t,"DomainOptionType",(function(){return i.b}))},function(e,t,n){e.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n(14),o=n(4);function a(e){return(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})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,a=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=a.call(this,e)).name||o.c.throw(new o.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){e.exports={tree:"_1abau",text:"f13wK",chevron:"_25eVA",disabled:"_1qyCo",parentOfSelected:"_1fgN6",selected:"cVZit",actions:"_2BGWp",node:"rJVbQ",collapsed:"vc2by"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(5),o=n(16),a=n(12),c=n(8),s={GetQuery:function(){return s.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=s.GetQuery(),n=s.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),s.UpdateUrl("".concat(s.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=o.a.buildRoute(e,t);i.history.navigate(r,n),i.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],i=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(i),e):(e[r]=[e[r],i],e):(e[r]=i,e)}),{}):{}},StartHistory:function(){i.History.started&&i.history.stop(),i.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};o.b.hasActiveRoute()?i.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},SetPageTitle:function(e){document.title=e}}},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){"use strict";var r=n(11),i=n(29);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,o=void 0===n?"id":n,a=t.namespace,c=void 0===a?"":a;return e[o]||i.ErrorHelper.throw(new r.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(c,"__").concat(e[o])}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,i=void 0===r?"id":r,o=[];return e.forEach((function(e){e[i]&&o.push(a(e,n)),u(e,t,n)})),o}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,i=void 0===r?"id":r,u=Object.assign({},e);if(Object.keys(e).forEach((function(r){var l=e[r];if(l)if(Array.isArray(l)){var f=c(l,t,n);f.length&&(u[r]=f)}else if("object"===o(l)){var p=s(l,t,n);l[i]?u[r]=a(l,n):u[r]=p}})),e[i]){var l=a(e,n);return t[l]=u,l}return u}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?c(e,t,n):"object"===o(e)?s(e,t,n):e}function l(e,t){var n={};return{result:u(e,n,t),entities:n}}var f=n(9);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=d(t[e],t,n);return Object.assign(n[e],r),f.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return d(e,t,n)}));if("object"===p(e)){var r={};return Object.keys(e).forEach((function(i){r[i]=d(e[i],t,n)||e[i]})),r}return e}}function m(e,t){return d(e,t,{})}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";(function(e){var r=n(47),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=c}).call(this,n(56)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(5),o=n(14);function a(e){return(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})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,i,a=f(p);function p(){return c(this,p),a.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){u(d(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(d(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.Model)},function(e,t,n){"use strict";n.r(t);var r=n(16);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b}));var i=n(43);n.d(t,"Application",(function(){return i.a}));var o=n(63);n.d(t,"AppRouter",(function(){return o.a}));var a=n(64);n.d(t,"Behavior",(function(){return a.a}));var c=n(33);n.d(t,"Collection",(function(){return c.a}));var s=n(55);n.d(t,"CollectionView",(function(){return s.a})),n.d(t,"ComponentCollection",(function(){return s.a}));var u=n(4);n.d(t,"Error",(function(){return u.a})),n.d(t,"ErrorHelper",(function(){return u.c})),n.d(t,"SilentError",(function(){return u.d}));var l=n(45);n.d(t,"LayoutView",(function(){return l.a}));var f=n(65);n.d(t,"NestedModel",(function(){return f.a}));var p=n(22);n.d(t,"Service",(function(){return p.a}));var d=n(28);n.d(t,"Model",(function(){return d.a}));var m=n(39);n.d(t,"View",(function(){return m.b})),n.d(t,"Component",(function(){return m.a}));var h=n(12);n.d(t,"EventNames",(function(){return h.a}));var y=n(66);n.d(t,"LayoutService",(function(){return y.a}));var v=n(44);n.d(t,"Middleware",(function(){return v.a}));var b=n(24);n.d(t,"LocationUtils",(function(){return b.a}));var g=n(67);n.d(t,"Shell",(function(){return g.a}));var S=n(68);for(var E in S)["AppLinkHelper","AppLinkUtility","Application","AppRouter","Behavior","Collection","CollectionView","ComponentCollection","Error","ErrorHelper","SilentError","LayoutView","NestedModel","Service","Model","View","Component","EventNames","LayoutService","Middleware","LocationUtils","Shell","default"].indexOf(E)<0&&function(e){n.d(t,e,(function(){return S[e]}))}(E)},function(e,t,n){e.exports={draggableVideoItem:"_1JMCe",draggedVideoItem:"_3jjle"}},function(e,t,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var c,s,u,l=r(t),f=r(n);if(l&&f){if((s=t.length)!=n.length)return!1;for(c=s;0!=c--;)if(!e(t[c],n[c]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=n instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==n.getTime();var m=t instanceof RegExp,h=n instanceof RegExp;if(m!=h)return!1;if(m&&h)return t.toString()==n.toString();var y=i(t);if((s=y.length)!==i(n).length)return!1;for(c=s;0!=c--;)if(!o.call(n,y[c]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(c=s;0!=c--;)if(!("_owner"===(u=y[c])&&t.$$typeof||e(t[u],n[u])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=e=>a[e];const s=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(s,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const l=/(^|[^\[])\^/g;const f=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const d={},m=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=b(e,"/",!0));const n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(h,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}function b(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}e.exports={escape:function(e,t){if(t){if(n.test(e))return e.replace(r,c)}else if(i.test(e))return e.replace(o,c);return e},unescape:u,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(l,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(u(n)).replace(f,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:v,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:b,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(5),i=n(14);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,o=l(f);function f(){return a(this,f),o.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,i;return t=e,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(t.prototype,n),i&&r(t,i),e}().Instance},function(e,t){e.exports=c},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o={getMatchingKeyMap:function(e,t,n){var i=Array.isArray(t)?t:[t],o=[];return i.forEach((function(t){var n,i=new RegExp(t,"i"),a=Object.keys(e.resources).filter((function(e){return i.test(e)}));(n=o).push.apply(n,r(a))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})}},a=n(46);var c={isSimulated:function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},simulateFetchData:function(e,t){var n=e.success,r=e.error,i=e.always,o=t;window.setTimeout((function(){o.noResponse||(o.successResponse?n(o.successResponse(),{status:a.a.Ok,getResponseHeader:function(){return""}}):o.errorResponse&&r(o.errorResponse()),i())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))}};n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}))},function(e,t,n){e.exports=n(276)()},function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:n,changeDefaults:function(t){e.exports.defaults=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return I}));var r=n(1),i=n(5),o=n(17),a=n(14),c=n(11),s=n(8),u=n(34),l=n(4),f=n(16);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?C(e):t}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){g(n,e);var t=E(n);function n(e){var i;h(this,n),i=t.call(this,e);var o=[].concat(d(i.defaultProps),d(i.props||[]));return i.mergeOptions(e,o),r.result(C(i),"name")||l.c.throw(new l.b("Error: View with cid:".concat(i.cid," requires a name."))),i}return v(n,[{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,i;u.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",i=this.name,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t)),this.$el.attr(e)}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=b(A(n.prototype),"serializeData",this).call(this),i=r.result(this,"viewOptions"),o=r.extend({},t,{options:i});return n.ViewDataExtensions.length?r.extend.apply(r,[o].concat(d(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):o}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,i=t[n],o=f.a.getHref(i);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(o&&"/"!==o&&a.attr("href",o),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(i)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){i.Radio.channel(s.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],b(A(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}},{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(o.View);j.ViewDataExtensions=[];var w=function(e){g(n,e);var t=E(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return v(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var i=this,o=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),i[n]=r.getData(t.resourceInstances[a]),o=o&&!!i[n]}})),o}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),i.Radio.channel(s.a.SHELL).trigger("set:page:title",this.title)}}]),n}(j),I=function(e){g(n,e);var t=E(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(j)},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return a}));function o(e){var t=+e;return isNaN(t)||!t?0:t}var a={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<a.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"},convertDurationToSeconds:function(e){var t,n,i,a=r(e.split(":"),3),c=a[0],s=a[1];return a[2]||(i=s,n=c,t="0"),60*o(t)*60+60*o(n)+o(i)}}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r.constructor=t,t.prototype=r,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),i=n(5),o=n(17),a=n(12),c=n(14),s=n(4);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(f,e);var t,n,o,u=h(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(v(t),"name")||s.c.throw(new s.b("BaseApplication must define a name")),r.result(v(t),"channelName")||s.c.throw(new s.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||s.c.throw(new s.b("Global channel ".concat(t," does not exist"))),i.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||s.c.throw(new s.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||s.c.throw(new s.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):s.c.throw(new s.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(b(f.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&p(t.prototype,n),o&&p(t,o),f}(o.Application)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(39),i=n(11),o=n(4);function a(e){return(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})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(l,e);var t,n,r,a=u(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){o.c.throw(new i.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(274))},function(e,t,n){"use strict";(function(e){var r=n(15),i=n(201),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===o?r.a.Buffer:void 0,s=(c?c.isBuffer:void 0)||i.a;t.a=s}).call(this,n(56)(e))},function(e,t){e.exports=s},function(e,t,n){e.exports={buttonList:"_2v9CT",dropdownToggle:"AYBvQ"}},function(e,t){e.exports=u},function(e,t,n){const r=n(294),i=n(295),o=n(59),a=n(196),c=n(195),s=n(194),{merge:u,checkSanitizeDeprecation:l,escape:f}=n(32),{getDefaults:p,changeDefaults:d,defaults:m}=n(38);function h(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=u({},h.defaults,t||{}),l(t);const o=t.highlight;let a,c,s=0;try{a=r.lex(e,t)}catch(e){return n(e)}c=a.length;const f=function(e){if(e)return t.highlight=o,n(e);let r;try{r=i.parse(a,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,r)};if(!o||o.length<3)return f();if(delete t.highlight,!c)return f();for(;s<a.length;s++)!function(e){"code"!==e.type?--c||f():o(e.text,e.lang,(function(t,n){return t?f(t):null==n||n===e.text?--c||f():(e.text=n,e.escaped=!0,void(--c||f()))}))}(a[s])}else try{return t=u({},h.defaults,t||{}),l(t),i.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||h.defaults).silent)return"<p>An error occurred:</p><pre>"+f(e.message+"",!0)+"</pre>";throw e}}h.options=h.setOptions=function(e){return u(h.defaults,e),d(h.defaults),h},h.getDefaults=p,h.defaults=m,h.Parser=i,h.parser=i.parse,h.Renderer=o,h.TextRenderer=a,h.Lexer=r,h.lexer=r.lex,h.InlineLexer=c,h.inlineLexer=c.output,h.Slugger=s,h.parse=h,e.exports=h},function(e,t){e.exports=l},function(e,t,n){e.exports={curatorLayout:"XayF7",topNavRegion:"_3ewaZ",leftNavRegion:"_2c2o6"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(17),o=n(14),a=n(4);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,i,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t=c.call(this,e),r.result(d(t),"name")||a.c.throw(new a.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=p,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(m(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.CollectionView)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";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=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!0;var a={},c=void 0,s=void 0;for(c=0,s=n.length;c<s;c++)a[n[c]]=!0;for(c=0,s=i.length;c<s;c++){var u=i[c],l=e[u],f=t[u];if(l!==f){if(!a[u]||null===l||null===f||"object"!==(void 0===l?"undefined":r(l))||"object"!==(void 0===f?"undefined":r(f)))return!0;var p=Object.keys(l),d=Object.keys(f);if(p.length!==d.length)return!0;for(var m=0,h=p.length;m<h;m++){var y=p[m];if(l[y]!==f[y])return!0}}}return!1}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(190),i=n(42),o=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,i.inherits)(o,(0,r.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var c=a(),s=a("@"),u=a(":"),l=a("."),f=a(),p=a(),d=a("\n"),m=a(),h=a("+"),y=a("#"),v=a(),b=a("mailto:"),g=a("?"),S=a("/"),E=a("_"),O=a(),C=a(),A=a(),j=a("{"),w=a("["),I=a("<"),T=a("("),k=a("}"),L=a("]"),_=a(">"),x=a(")"),P=a("&");t.Base=o,t.DOMAIN=c,t.AT=s,t.COLON=u,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=d,t.NUM=m,t.PLUS=h,t.POUND=y,t.QUERY=g,t.PROTOCOL=v,t.MAILTO=b,t.SLASH=S,t.UNDERSCORE=E,t.SYM=O,t.TLD=C,t.WS=A,t.OPENBRACE=j,t.OPENBRACKET=w,t.OPENANGLEBRACKET=I,t.OPENPAREN=T,t.CLOSEBRACE=k,t.CLOSEBRACKET=L,t.CLOSEANGLEBRACKET=_,t.CLOSEPAREN=x,t.AMPERSAND=P},function(e,t,n){const{defaults:r}=n(38),{cleanUrl:i,escape:o}=n(32);e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+o(r,!0)+'">'+(n?e:o(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:o(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+o(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},function(e,t,n){"use strict";e.exports=n(271)},function(e,t,n){"use strict";var r=n(272),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||i}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var i=d(n);i&&i!==m&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=s(t),h=s(n),y=0;y<a.length;++y){var v=a[y];if(!(o[v]||r&&r[v]||h&&h[v]||c&&c[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(1),i=n(5),o=n(17),a=n(16),c=n(14),s=n(44),u=n(12),l=n(4),f=n(24),p=n(8);function d(e){return(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})(e)}function m(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=/([A-Z])/g,C=/(^|:)(\w)/gi,A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(h,e);var t,n,o,d=g(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=d.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=h,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(p.a.SHELL,u.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(r,i){return a.a.buildRoute(t,{application:n.channelName,action:e,args:r,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;r.each(r.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],i=e.toEventName(n);e.addRouteLookup(i,t),e.listenTo(e.channelName,i,(function(n,i){i&&i.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=r.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,f.a.UpdateUrl(t,n,i)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&r.each(r.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(e,t){t&&t.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),f.a.PageLoad(a.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&r.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||l.c.throw(new l.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var o=this;this.validateAppLink(e);var c=this.toMethodName(e.action);a.b.routingStarted();var f=i.Radio.channel(p.a.SHELL);if(this.options.shell.isNavLocked())return f.trigger(u.a.NAV_IS_LOCKED,e),void a.b.routingEnded();var d=new s.a;r.each(this.filters,(function(e){return d.use(e)})),d.go({appLink:e,shell:this.options.shell},(function(){f.trigger(u.a.ROUTE,e,t),o.createApp();var i=o.controller;if(r.isFunction(i[c])||(a.b.routingEnded(),l.c.throw(new l.b("".concat(c," does not exist on the ").concat(r.result(i,"name"),".")))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void a.b.routingEnded();i.triggerMethod("load:layout"),i[c].apply(i,[].concat(m(e.args||[]),[e.params||{}])),r.isFunction(n)&&n(),a.b.routingEnded()}))}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var i=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a={application:i.channelName,action:i.toEventName(n),args:t.slice(0,t.length-1),params:f.a.DeserializeQueryParams(t[t.length-1])};i.executeRoute(a,{isAppRoute:!0},(function(){f.a.UpdateQuery(r.extend(i.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(O,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(C,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(a.b.routingEnded(),l.c.throw(new l.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],v(E(h.prototype),"listenTo",this))}}])&&y(t.prototype,n),o&&y(t,o),h}(o.AppRouter)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n(14);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,o=l(f);function f(){return a(this,f),o.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Behavior)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(28),o=n(33);function a(e){return(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})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(h,e);var t,n,p,m=f(h);function h(){return c(this,h),m.apply(this,arguments)}return t=h,(n=[{key:"set",value:function(e,t,n){var i,o;if(null===e)return this;for(i in"object"===a(e)?(o=e,n=t):(o={})[e]=t,n||(n={}),o)r.has(this.associations,i)&&(o[i]=this.setAssociation(i,o[i],n));return u(d(h.prototype),"set",this).call(this,o,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return u(d(h.prototype),"get",this).call(this,e);var n=e.substr(0,t),i=this.attributes[n];if(!i||!r.isFunction(i.get))return u(d(h.prototype),"get",this).call(this,e);var o=e.substr(t+1);return i.get(o)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof i.a&&c.set(t,n),c instanceof o.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var s=t instanceof i.a?t:new a(t,{parse:!0});return s.parent=this,this[e]=s,s}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=u(d(h.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(i,t)&&r.isFunction(i[t].toJSON)?i[t]=i[t].toJSON():i[t]=(new e).toJSON()})),i}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(u(d(h.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&s(t.prototype,n),p&&s(t,p),h}(i.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),i=n(17),o=n(14),a=n(4);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,i,c=f(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=p,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||a.c.throw(new a.b("".concat(t," was not registered as a template.")));var i=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===i&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=i,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){r.each(this.requiredRegions,(function(t){r.has(r.result(e.prototype,"regions"),t)||a.c.throw(new a.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(d(p.prototype),"listenTo",this))}}])&&s(t.prototype,n),i&&s(t,i),p}(i.Object)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(1),i=n(5),o=n(17),a=n(16),c=n(14),s=n(8),u=n(4),l=n(12),f=n(24);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var E=function(){function e(t,n){b(this,e),this.application=t,this.options=n||{}}return S(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(n,e);var t=h(n);function n(){return b(this,n),t.apply(this,arguments)}return S(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(s.a.SHELL,l.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(s.a.SHELL,l.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(s.a.SHELL,l.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(s.a.SHELL,l.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(s.a.SHELL,l.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=i.Radio.channel(s.a.SHELL);t.reply(l.a.HAS_ACTIVE_ROUTE,r.bind(this.hasActiveRoute,this)),t.reply(l.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){a.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=i.Radio.channel(s.a.SHELL);this.listenTo(e,l.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;i.Radio.channel(s.a.SHELL).reply(l.a.ROUTE_LOOKUP,(function(t,n,r){return e.routeLookup[t]?e.routeLookup[t](n,r):""}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new E(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return s.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(){t.runStartUpSteps(t,e,(function(){d(v(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;r.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),f.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,i){return t(n,r,(function(){return e(n,r,i)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||u.c.throw(new u.b("An error must have a name in order to register a handler for it.")),r.any(this.errorHandlers,(function(t){return t.errorType===e}))&&u.c.throw(new u.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=r.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],d(v(n.prototype),"listenTo",this))}}]),n}(o.Application)},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(18);n.d(t,"Actions",(function(){return r.a}));var i=n(19);n.d(t,"RequestStatus",(function(){return i.a}));var o=n(70);for(var a in o)["Actions","RequestStatus","default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var c=n(197);n.d(t,"ajaxRequest",(function(){return c.a}));var s=n(26);n.d(t,"normalize",(function(){return s.b})),n.d(t,"denormalize",(function(){return s.a}));var u=n(198);n.d(t,"emptyResponse",(function(){return u.a})),n.d(t,"getResponse",(function(){return u.d})),n.d(t,"getFetch",(function(){return u.c})),n.d(t,"fetch",(function(){return u.b})),n.d(t,"hooklessFetch",(function(){return u.e})),n.d(t,"useGetFetch",(function(){return u.g})),n.d(t,"useGetResponse",(function(){return u.h})),n.d(t,"useBasicFetch",(function(){return u.f}));var l=n(80);n.d(t,"createMiddleware",(function(){return l.a}));var f=n(81);n.d(t,"FlightReducer",(function(){return f.a}));var p=n(82);n.d(t,"Simulator",(function(){return p.a}))},function(e,t,n){"use strict";n.r(t);var r=n(71);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(72);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(73);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);var c=n(74);for(var i in c)"default"!==i&&function(e){n.d(t,e,(function(){return c[e]}))}(i);var s=n(75);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);var u=n(76);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);var l=n(77);for(var i in l)"default"!==i&&function(e){n.d(t,e,(function(){return l[e]}))}(i);var f=n(78);for(var i in f)"default"!==i&&function(e){n.d(t,e,(function(){return f[e]}))}(i);var p=n(79);for(var i in p)"default"!==i&&function(e){n.d(t,e,(function(){return p[e]}))}(i)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(40),i=n(7),o=n(19),a=n(18),c=n(26),s=n(36),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function l(e){var t=e.fetchData,n=e.bootstrappedData,l=e.defaultExpiryTime,f=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:l});return function(e){return function(i){return function(l){if(l.type===a.a.API_REQUEST){var p=e.getState(),d=Object.assign({},f,l.request),m=d.success,h=d.error,y=d.always,v=d.formatData,b=u(d,["success","error","always","formatData"]),g=p.flightData.resources[b.key];if(i(l),!g||g.status!==o.a.Fetching){if(b.bootstrapName&&n[l.request.bootstrapName])return E(n[l.request.bootstrapName]),O(),void delete n[l.request.bootstrapName];var S={resource:b.url,type:b.type,data:b.data,success:E,error:function(t){e.dispatch({type:a.a.API_ERROR,errorResponse:t.responseJSON,request:l.request,timestamp:r.a.currentTimestamp(),xhr:t}),b.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:b.invalidationKeys,request:b});h&&h(t)},always:O};return void(s.a.isSimulated(b)?s.a.simulateFetchData(S,b):t(S))}}else i(l);function E(t,n){var i=v(t),o={result:i,entities:{}};(b.normalize&&(o=Object(c.b)(i,b.normalizeOptions)),e.dispatch({type:a.a.API_REPONSE,result:o.result,entities:o.entities,request:b,timestamp:r.a.currentTimestamp(),xhr:n}),b.updateState)&&(Array.isArray(b.updateState)?b.updateState:[b.updateState]).forEach((function(t){var n,r,i,o;n=t,r=s.b.getMatchingKeyMap(p.flightData,n.keys),i=Object.assign({},Object.keys(p.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=p.flightData.resources[t],r=n.response;return n.request.normalize&&(r=Object(c.a)(n.response,p.flightData.entities)),e[t]=r,e}),{})),o=n.updateData(i),Object.keys(o).forEach((function(t){var n=p.flightData.resources[t],r=o[t],i={result:r,entities:{}};n.request.normalize&&(i=Object(c.b)(r,n.request.normalizeOptions)),e.dispatch({type:a.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(b.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:b.invalidationKeys,request:b}),m){var u=o.result;b.normalize&&(u=Object(c.a)(o.result,Object.assign(Object.assign({},p.flightData.entities),o.entities))),m(u)}}function O(){y&&y()}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(18),i=n(19),o=n(36);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 c(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function s(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),a({},t.request.key,{request:t.request,status:i.a.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function u(e,t){var n,r=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),a({},t.request.key,{request:t.request,status:i.a.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:r}))}}function l(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),a({},t.request.key,{request:t.request,status:i.a.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function f(e,t){var n,r=o.b.getMatchingKeyMap(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return r[e]})).reduce((function(t,n){var r=e.resources[n];return t[n]=Object.assign({},r,{status:i.a.None}),t}),{}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:c(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),a({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var d={resources:{},entities:{}};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a.API_REQUEST:return s(e,t);case r.a.API_REPONSE:return u(e,t);case r.a.API_ERROR:return l(e,t);case r.a.INVALIDATE:return f(e,t);case r.a.UPDATE:return p(e,t)}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(10);var i="id";function o(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function a(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var c={getAll:function(e,t){var n=a(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return c.create(e,t)})),a(e)):[]},get:function(e,t){var n=c.getAll(e);return n.length?n.find((function(e){return e[i]===t})):null},create:function(e,t){var n,r,a,s=c.getAll(e),u=Object.assign(Object.assign({},t),(n={},r=i,a=t[i]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString(),r in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n));return s.push(u),o(e,s),u},update:function(e,t){var n=c.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[i]===t[i]}));return n[r]=t,o(e,n),t},delete:function(e,t){var n=c.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[i]===e}));n.splice(t,1)})),o(e,n))},assoc:function(e,t,n,i,a){var s=Array.isArray(a),u=s?a:[a];"string"==typeof r.a.first(u)&&(u=c.getAll(i).filter((function(e){return u.includes(e.id)})));var l=u.map((function(e){return e.id?e:c.create(i,e)})),f=c.getAll(e);if(f.length){var p=f.find((function(e){return e.id===t}));if(p)return l.forEach((function(e){if(p[n])if(Array.isArray(p[n])){if(p[n].find((function(t){return t.id===e.id})))return;p[n].push(e)}else p[n]=e;else p[n]=s?[e]:e})),o(e,f=f.map((function(e){return e.id!==p.id?e:p}))),s?l:r.a.first(l)}},dissoc:function(e,t,n,r){var i=c.getAll(e);if(i.length){var a=i.find((function(e){return e.id===t}));if(a){var s=a[n];if(s)return Array.isArray(r)||(r=[r]),Array.isArray(s)||(s=[s]),r.forEach((function(e){var t=s.findIndex((function(t){return t.id===e}));s.splice(t,1)})),a[n]=s,o(e,i=i.map((function(e){return e.id!==a.id?e:a}))),i}}}}},function(e,t){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share2",icon:["24","24",[],"","M19.4216766,5.00521391 C19.613919,4.98125611 19.7682745,5.03986249 19.8847432,5.18103303 C20.0012119,5.32220356 20.0294106,5.48346256 19.9693393,5.66481001 L19.9693393,5.66481001 L14.1956074,19.738196 C14.0955154,19.912732 13.9481454,20 13.7534974,20 C13.5588494,20 13.4140159,19.912732 13.3189969,19.738196 L13.3189969,19.738196 L9.93477602,13.4796112 L4.20437042,9.12353139 C4.02183531,8.9778479 3.96157474,8.8005141 4.02358872,8.59152998 C4.0856027,8.38254586 4.23262042,8.26120315 4.46464188,8.22750185 L4.46464188,8.22750185 Z M18.2074971,7.35312765 L10.9727276,13.3209485 L13.6956405,18.351754 L18.2074971,7.35312765 Z M17.8703206,6.3505542 L5.65837825,8.98552539 L10.3489793,12.5526101 L17.8703206,6.3505542 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"download",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,1.5 C6.20101013,1.5 1.5,6.20101013 1.5,12 C1.5,17.7989899 6.20101013,22.5 12,22.5 C17.7989899,22.5 22.5,17.7989899 22.5,12 C22.5,6.20101013 17.7989899,1.5 12,1.5 Z M11.891348,6.57740196 C12.3228205,6.57740196 12.672598,6.90219539 12.672598,7.30284839 L12.672598,15.8734074 L15.9688771,12.9198893 C16.2895816,12.632533 16.7935459,12.632533 17.1142504,12.9198893 C17.428584,13.2015371 17.4403865,13.6568031 17.1492025,13.9444514 C17.1406308,13.952919 17.131841,13.9611887 17.1228407,13.969253 L12.4640347,18.1436167 C12.1433302,18.4309731 11.6393659,18.4309731 11.3186614,18.1436167 L6.65985537,13.969253 C6.35411213,13.6953023 6.34230957,13.2400363 6.6334936,12.952388 C6.64206526,12.9439204 6.65085513,12.9356507 6.65985537,12.9275864 C6.9891502,12.632533 7.49311447,12.632533 7.813819,12.9198893 L11.110098,15.8734074 L11.110098,7.30284839 C11.110098,6.90219539 11.4598756,6.57740196 11.891348,6.57740196 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"print",icon:["24","24",[],"","M16.3125,0 C18.2510156,0 19.828125,1.57710938 19.828125,3.515625 L19.828125,3.515625 L19.828125,6.046875 L20.484375,6.046875 C22.4228906,6.046875 24,7.62398438 24,9.5625 L24,9.5625 L24,15.1875 C24,17.1260156 22.4228906,18.703125 20.484375,18.703125 L20.484375,18.703125 L19.828125,18.703125 L19.828125,21.890625 C19.828125,23.0537344 18.8818594,24 17.71875,24 L17.71875,24 L6.28125,24 C5.11814062,24 4.171875,23.0537344 4.171875,21.890625 L4.171875,21.890625 L4.171875,18.703125 L3.515625,18.703125 C1.57710938,18.703125 0,17.1260156 0,15.1875 L0,15.1875 L0,9.5625 C0,7.62398438 1.57710938,6.046875 3.515625,6.046875 L3.515625,6.046875 L4.171875,6.046875 L4.171875,3.515625 C4.171875,1.57710938 5.74898438,0 7.6875,0 L7.6875,0 Z M18.421875,14.953125 L5.578125,14.953125 L5.578125,21.890625 C5.578125,22.2783281 5.89354688,22.59375 6.28125,22.59375 L6.28125,22.59375 L17.71875,22.59375 C18.1064531,22.59375 18.421875,22.2783281 18.421875,21.890625 L18.421875,21.890625 L18.421875,14.953125 Z M15.3181818,20 C15.6947273,20 16,20.2238667 16,20.5 C16,20.7761333 15.6947273,21 15.3181818,21 L15.3181818,21 L11.6818182,21 C11.3052727,21 11,20.7761333 11,20.5 C11,20.2238667 11.3052727,20 11.6818182,20 L11.6818182,20 Z M15.3181818,17 C15.6947273,17 16,17.2238667 16,17.5 C16,17.7761333 15.6947273,18 15.3181818,18 L15.3181818,18 L11.6818182,18 C11.3052727,18 11,17.7761333 11,17.5 C11,17.2238667 11.3052727,17 11.6818182,17 L11.6818182,17 Z M20.484375,7.453125 L3.515625,7.453125 C2.35251563,7.453125 1.40625,8.39939063 1.40625,9.5625 L1.40625,9.5625 L1.40625,15.1875 C1.40625,16.3506094 2.35251563,17.296875 3.515625,17.296875 L3.515625,17.296875 L4.171875,17.296875 L4.171875,14.953125 L3.75,14.953125 C3.3616875,14.953125 3.046875,14.6383125 3.046875,14.25 C3.046875,13.8616875 3.3616875,13.546875 3.75,13.546875 L3.75,13.546875 L20.25,13.546875 C20.6383125,13.546875 20.953125,13.8616875 20.953125,14.25 C20.953125,14.6383125 20.6383125,14.953125 20.25,14.953125 L20.25,14.953125 L19.828125,14.953125 L19.828125,17.296875 L20.484375,17.296875 C21.6474844,17.296875 22.59375,16.3506094 22.59375,15.1875 L22.59375,15.1875 L22.59375,9.5625 C22.59375,8.39939063 21.6474844,7.453125 20.484375,7.453125 L20.484375,7.453125 Z M5.23076923,9 C5.65558974,9 6,9.22386667 6,9.5 C6,9.77613333 5.65558974,10 5.23076923,10 L5.23076923,10 L2.76923077,10 C2.34441026,10 2,9.77613333 2,9.5 C2,9.22386667 2.34441026,9 2.76923077,9 L2.76923077,9 Z M16.3125,1.40625 L7.6875,1.40625 C6.52439063,1.40625 5.578125,2.35251562 5.578125,3.515625 L5.578125,3.515625 L5.578125,6.046875 L18.421875,6.046875 L18.421875,3.515625 C18.421875,2.35251562 17.4756094,1.40625 16.3125,1.40625 L16.3125,1.40625 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","M4,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","M11.64 16.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"email",icon:["24","24",[],"","M5.09090909,16.5044548 C5.09090909,16.7087643 5.2517754,16.875 5.44811273,16.875 L18.5518873,16.875 C18.7495118,16.875 18.9090909,16.7100912 18.9090909,16.5044548 L18.9090909,7.49554521 C18.9090909,7.29123572 18.7482246,7.125 18.5518873,7.125 L5.44811273,7.125 C5.25048819,7.125 5.09090909,7.28990884 5.09090909,7.49554521 L5.09090909,16.5044548 Z M18.5518873,6 C19.3516578,6 20,6.67088532 20,7.49554521 L20,16.5044548 C20,17.3304216 19.3529644,18 18.5518873,18 L5.44811273,18 C4.64834215,18 4,17.3291147 4,16.5044548 L4,7.49554521 C4,6.6695784 4.6470356,6 5.44811273,6 L18.5518873,6 Z M5.28875242,8.40614655 C5.12000436,8.66349123 5.18550432,9.01318255 5.43505067,9.18720399 L11.4273828,13.3659638 L11.7273691,13.5751595 L12.0307568,13.3712472 L18.2317117,9.20347374 C18.4840876,9.03384736 18.5553362,8.68535347 18.3908501,8.42509084 C18.2446401,8.19374628 17.9613854,8.10998685 17.7229933,8.21336378 L17.6360272,8.26099773 L17.6360272,8.26099773 L17.634306,8.26215307 L17.6301531,8.26494056 L17.622066,8.27036883 C17.597586,8.28680036 17.530266,8.33198706 17.3451362,8.4562505 L17.2583634,8.51449439 C17.2426263,8.52505752 17.2262335,8.53606078 17.2091576,8.5475225 L17.0982873,8.62194118 C16.4410163,9.06311671 14.980414,10.0435068 11.7346312,12.2221514 C11.170907,11.8290376 10.4395891,11.3190523 9.69015295,10.7964321 L9.28047118,10.5107401 C7.64174412,9.36797184 6.04614146,8.25527648 6.04614146,8.25527648 C5.7965951,8.08125504 5.45750048,8.14880187 5.28875242,8.40614655 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"year-level",icon:["24","24",[],"","M14.5628141,2 C15.3668342,2 15.7688442,2.10471204 16.0703518,2.31413613 C16.3718593,2.52356021 16.6733668,2.73298429 16.8743719,3.15183246 C16.9748744,3.46596859 17.0753769,3.88481675 17.0753769,4.72251309 L17.0753769,9.85340314 C17.0753769,10.6212914 16.9909269,11.0372309 16.8220268,11.3431864 L16.7738693,11.4240838 L16.7738693,11.4240838 L19.3869347,11.4240838 C20.1909548,11.4240838 20.5929648,11.5287958 20.8944724,11.7382199 C21.1959799,11.947644 21.4974874,12.1570681 21.6984925,12.5759162 C21.8994975,12.9947644 22,13.4136126 22,14.1465969 L22,19.2774869 C22,20.1151832 21.8994975,20.5340314 21.6984925,20.8481675 C21.4974874,21.1623037 21.2964824,21.4764398 20.8944724,21.6858639 C20.4924623,21.895288 20.0904523,22 19.3869347,22 L14.4623116,22 C13.6582915,22 13.2562814,21.895288 12.9547739,21.6858639 C12.6532663,21.4764398 12.3517588,21.2670157 12.1507538,20.8481675 C12.1034481,20.774237 12.0617091,20.6945067 12.0255366,20.6076117 C12.002845,20.6555797 11.9772366,20.7004967 11.9497487,20.7434555 C11.7487437,21.0575916 11.5477387,21.3717277 11.1457286,21.5811518 C10.7437186,21.7905759 10.3417085,21.895288 9.63819095,21.895288 L4.61306533,21.895288 C3.80904523,21.895288 3.40703518,21.7905759 3.10552764,21.5811518 C2.8040201,21.3717277 2.50251256,21.1623037 2.30150754,20.7434555 C2.10050251,20.4293194 2,20.0104712 2,19.1727749 L2,14.0418848 C2,13.2041885 2.10050251,12.7853403 2.30150754,12.4712042 C2.50251256,12.1570681 2.70351759,11.8429319 3.10552764,11.6335079 C3.40703518,11.5287958 3.80904523,11.4240838 4.61306533,11.4240838 L7.32663317,11.4240838 L7.32663317,11.4240838 C7.12562814,11.0052356 7.02512563,10.5863874 7.02512563,9.7486911 L7.02512563,4.72251309 C7.02512563,3.88481675 7.12562814,3.46596859 7.32663317,3.04712042 C7.42713568,2.73298429 7.72864322,2.41884817 8.03015075,2.31413613 C8.4321608,2.10471204 8.83417085,2 9.63819095,2 L14.5628141,2 Z M12.0749659,12.71176 L12.0874744,12.6846501 L12.0874744,12.6846501 L12.1507538,12.5759162 L12.1507538,12.5759162 L14.361809,12.5759162 C13.758794,12.5759162 13.5577889,12.6806283 13.4572864,12.6806283 C13.3567839,12.6806283 13.2562814,12.8900524 13.1557789,12.9947644 C13.0696339,13.1742708 13.0573275,13.2768458 13.0555694,13.8300185 L13.0552764,19.2774869 C13.0552764,20.0104712 13.1557789,20.2198953 13.1557789,20.4293194 C13.2562814,20.5340314 13.3567839,20.7434555 13.5577889,20.7434555 C13.7444365,20.8406881 13.8444262,20.8476333 14.5015017,20.8481294 L19.5879397,20.8481675 C20.2914573,20.8481675 20.4924623,20.7434555 20.6934673,20.7434555 C20.7939698,20.6387435 20.9949749,20.5340314 20.9949749,20.3246073 C21.0811199,20.145101 21.0934263,20.0425259 21.0951844,19.4893533 L21.0954774,14.0418848 C21.0954774,13.3089005 20.9949749,13.0994764 20.9949749,12.8900524 C20.8944724,12.7853403 20.7939698,12.5759162 20.5929648,12.5759162 C20.4206748,12.4861631 20.3222234,12.4733412 19.7912888,12.4715095 L11.9497487,12.4712042 L11.9497487,12.4712042 C11.9970544,12.5451347 12.0387934,12.624865 12.0749659,12.71176 Z M8.03015075,12.1570681 C8.4321608,12.3664921 8.73366834,12.4712042 9.43718593,12.4712042 L4.61306533,12.4712042 C3.90954774,12.4712042 3.70854271,12.5759162 3.50753769,12.5759162 C3.40703518,12.6806283 3.20603015,12.7853403 3.20603015,12.8900524 C3.10552764,13.2041885 3.00502513,13.3089005 3.00502513,14.1465969 L3.00502513,19.2774869 C3.00502513,20.0104712 3.10552764,20.2198953 3.20603015,20.4293194 C3.30653266,20.5340314 3.40703518,20.7434555 3.50753769,20.7434555 C3.70854271,20.7434555 3.80904523,20.8481675 4.61306533,20.8481675 L9.53768844,20.8481675 C10.241206,20.8481675 10.4422111,20.7434555 10.6432161,20.7434555 C10.7437186,20.6387435 10.9447236,20.5340314 10.9447236,20.3246073 C11.0380474,20.1301421 11.0447134,20.0259643 11.0451895,19.3413674 L11.0452261,14.0418848 C11.0452261,13.3089005 10.9447236,13.0994764 10.9447236,12.8900524 C10.8442211,12.7853403 10.7437186,12.5759162 10.6432161,12.5759162 C10.4787574,12.4902427 10.3815773,12.4746657 10.0213993,12.4718336 L9.53768844,12.4712042 L9.53768844,12.4712042 C8.83417085,12.4712042 8.4321608,12.3664921 8.13065327,12.1570681 C7.82914573,11.947644 7.52763819,11.7382199 7.42713568,11.4240838 L7.32663317,11.4240838 C7.52763819,11.7382199 7.72864322,12.052356 8.03015075,12.1570681 Z M17.5778894,16.4502618 C17.9798995,16.4502618 18.281407,16.6596859 18.4824121,16.8691099 L18.427,16.923 L18.4619013,16.9649688 C18.6095785,17.1682872 18.6834171,17.4375467 18.6834171,17.7068063 L18.6834171,18.1256545 C18.6834171,18.8586387 18.080402,19.382199 17.4773869,19.382199 L15.7688442,19.382199 C15.5678392,19.486911 15.3668342,19.2774869 15.3668342,18.9633508 C15.3668342,18.7539267 15.5678392,18.5445026 15.7688442,18.5445026 L17.4773869,18.5445026 C17.678392,18.5445026 17.879397,18.3350785 17.879397,18.1256545 L17.879397,17.7068063 C17.879397,17.4973822 17.678392,17.2879581 17.4773869,17.2879581 L15.8693467,17.2879581 C15.6683417,17.2879581 15.4673367,17.078534 15.4673367,16.8691099 C15.4673367,16.6596859 15.6683417,16.4502618 15.8693467,16.4502618 L17.5778894,16.4502618 Z M7.52763819,14.2513089 C8.23115578,14.2513089 8.73366834,14.8795812 8.73366834,15.5078534 L8.73366834,15.9267016 C8.73366834,16.6596859 8.13065327,17.1832461 7.52763819,17.1832461 L6.62311558,17.1832461 C6.42211055,17.1832461 6.22110553,17.3926702 6.22110553,17.6020942 L6.22110553,18.4397906 L8.33165829,18.4397906 C8.53266332,18.4397906 8.73366834,18.6492147 8.73366834,18.8586387 C8.73366834,19.0680628 8.53266332,19.2774869 8.33165829,19.2774869 L5.81909548,19.2774869 C5.61809045,19.2774869 5.41708543,19.0680628 5.41708543,18.8586387 L5.41708543,17.7068063 C5.41708543,16.973822 6.0201005,16.4502618 6.62311558,16.4502618 L7.42713568,16.4502618 C7.72864322,16.4502618 7.82914573,16.2408377 7.82914573,15.9267016 L7.82914573,15.5078534 C7.82914573,15.2984293 7.6281407,15.0890052 7.42713568,15.0890052 L5.81909548,15.0890052 C5.61809045,15.0890052 5.41708543,14.8795812 5.41708543,14.6701571 C5.41708543,14.460733 5.61809045,14.2513089 5.81909548,14.2513089 L7.52763819,14.2513089 Z M17.4773869,14.2513089 C18.1809045,14.2513089 18.6834171,14.8795812 18.6834171,15.5078534 L18.6834171,15.9267016 C18.6834171,16.2408377 18.5829146,16.5549738 18.3819095,16.7643979 C18.1809045,16.4502618 17.879397,16.3455497 17.4773869,16.3455497 C17.678392,16.3455497 17.879397,16.1361257 17.879397,15.9267016 L17.879397,15.5078534 C17.879397,15.2984293 17.678392,15.0890052 17.4773869,15.0890052 L15.7688442,15.0890052 C15.5678392,15.0890052 15.3668342,14.8795812 15.3668342,14.6701571 C15.3668342,14.460733 15.5678392,14.2513089 15.7688442,14.2513089 L17.4773869,14.2513089 Z M14.4623116,3.04712042 L9.63819095,3.04712042 C8.83417085,3.04712042 8.73366834,3.15183246 8.53266332,3.2565445 C8.4321608,3.2565445 8.23115578,3.36125654 8.13065327,3.57068063 C8.13065327,3.78010471 8.03015075,3.88481675 8.03015075,4.72251309 L8.03015075,9.85340314 C8.03015075,10.5863874 8.13065327,10.7958115 8.13065327,11.0052356 C8.23115578,11.1099476 8.33165829,11.3193717 8.4321608,11.3193717 C8.63316583,11.3193717 8.83417085,11.4240838 9.43718593,11.4240838 L14.5628141,11.4240838 C15.1658291,11.4240838 15.3668342,11.3193717 15.4673367,11.3193717 C15.5678392,11.2146597 15.7688442,11.1099476 15.7688442,11.0052356 C15.8549892,10.8257292 15.8672957,10.7231542 15.8690537,10.1699815 L15.8693467,4.72251309 C15.8693467,3.9895288 15.7688442,3.78010471 15.7688442,3.57068063 C15.6683417,3.46596859 15.5678392,3.2565445 15.3668342,3.2565445 C15.3668342,3.15183246 15.2663317,3.04712042 14.4623116,3.04712042 Z M12.0502513,4.61780105 C12.2512563,4.61780105 12.4522613,4.82722513 12.4522613,5.03664921 L12.4522613,9.43455497 C12.4522613,9.64397906 12.2512563,9.85340314 12.0502513,9.85340314 C11.8492462,9.85340314 11.6482412,9.64397906 11.6482412,9.43455497 L11.6482412,5.03664921 C11.6482412,4.82722513 11.8492462,4.61780105 12.0502513,4.61780105 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subjects",icon:["24","24",[],"","M11.9999608,6.48873431 C12.828049,6.08104273 13.7442836,5.92395943 14.6596155,6.03432052 L14.6596155,6.03432052 L18.7411881,6.52627319 C18.8894198,6.54415652 19.0011921,6.67308566 19.0011921,6.8263023 L19.0011921,6.8263023 L19.0011921,7.51037994 L19.7056558,7.51037994 C19.8682123,7.51037994 20,7.64563269 20,7.81246321 L20,7.81246321 L20,17.6979167 C20,17.8647473 19.8682515,18 19.7056558,18 L19.7056558,18 L4.29434418,18 C4.13174845,18 4,17.8647473 4,17.6979167 L4,17.6979167 L4,7.81246321 C4,7.64563269 4.13174845,7.51037994 4.29434418,7.51037994 L4.29434418,7.51037994 L4.99872941,7.51037994 L4.99872941,6.8263023 C4.99872941,6.67308566 5.11050171,6.54415652 5.25873344,6.52627319 L5.25873344,6.52627319 L9.34030602,6.03432052 C10.2557557,5.92391915 11.1718332,6.08104273 11.9999608,6.48873431 Z M4.99876866,8.11454648 L4.58868835,8.11454648 L4.58868835,17.3958335 L19.4113116,17.3958335 L19.4113116,8.11454648 L19.0011136,8.11454648 L19.0011136,16.4188559 C19.0011136,16.5051309 18.9652036,16.5872572 18.9023709,16.6445725 C18.8482116,16.6940336 18.7784717,16.7209392 18.7067694,16.7209392 C18.6953489,16.7209392 18.6838891,16.7202544 18.6724293,16.718885 L18.6724293,16.718885 L14.5908959,16.2269323 C13.7425175,16.1246671 12.8935504,16.2838045 12.1353983,16.6870655 C12.0504702,16.7322572 11.9494513,16.7322572 11.8645232,16.6870655 C11.1063318,16.2838045 10.2570508,16.1246671 9.40902557,16.2269323 L9.40902557,16.2269323 L5.32745299,16.718885 C5.24401623,16.7289544 5.16030474,16.7018878 5.09751132,16.6445725 C5.03467865,16.5872572 4.99876866,16.5051309 4.99876866,16.4188559 L4.99876866,16.4188559 L4.99876866,8.11454648 Z M14.5909352,6.63437873 C13.8015826,6.53924264 13.0113666,6.67074955 12.2943049,7.01452032 L12.2943049,7.01452032 L12.2943049,15.9488546 C13.0426063,15.6408908 13.8514249,15.5294825 14.6596155,15.6269144 L14.6596155,15.6269144 L18.4124645,16.0792337 L18.4124645,7.0949953 Z M11.7056558,7.01452032 C10.9886334,6.67074955 10.1983389,6.53920236 9.40902557,6.63437873 L9.40902557,6.63437873 L5.58745701,7.0949953 L5.58745701,16.0791935 L9.34034527,15.6268741 C9.53041311,15.6039963 9.72055945,15.5925977 9.90984238,15.5925977 C10.5256104,15.5925977 11.1332938,15.7133907 11.7056558,15.9489351 L11.7056558,15.9489351 Z M12.8179628,13.2954357 C13.418268,13.1280413 14.0360375,13.080876 14.6541996,13.1553093 L14.6541996,13.1553093 L17.7187541,13.5245759 C17.8801725,13.5440301 17.9956731,13.6941453 17.9767566,13.8598481 C17.9591745,14.0135883 17.8320178,14.1267286 17.6848064,14.1267286 C17.6733466,14.1267286 17.6617691,14.1260439 17.6500738,14.1246341 L17.6500738,14.1246341 L14.5855585,13.7553675 C14.0427486,13.690037 13.4998209,13.7314023 12.9722777,13.8784564 C12.8155688,13.9222383 12.6537188,13.8271828 12.6110978,13.6661523 C12.5684767,13.505162 12.6610578,13.3391773 12.8179628,13.2954357 Z M9.3348116,13.1553496 C9.95195322,13.0815205 10.5768655,13.1297732 11.1712838,13.295919 C11.3281496,13.3397412 11.4206914,13.5057662 11.3779526,13.6667564 C11.3352531,13.827787 11.1734031,13.9226814 11.0166157,13.8788592 C10.4945669,13.7329328 9.9450067,13.6906412 9.40325643,13.7554078 L9.40325643,13.7554078 L6.33901581,14.1246341 C6.32735978,14.1260439 6.315743,14.1267286 6.3042832,14.1267286 C6.15707186,14.1267286 6.02991518,14.0135883 6.01229378,13.8598481 C5.99333801,13.6941453 6.10887791,13.5440704 6.27029626,13.5246162 L6.27029626,13.5246162 Z M12.8179236,11.9098804 C13.4183465,11.7424457 14.036116,11.695361 14.6541603,11.7697541 L14.6541603,11.7697541 L17.7187149,12.1390207 C17.8801332,12.1584748 17.9956339,12.3085498 17.9767174,12.4742525 C17.9591352,12.6279928 17.8319785,12.741133 17.6847672,12.741133 L17.6847672,12.741133 L17.6500346,12.7390386 L14.5855192,12.369772 C14.0425524,12.3043609 13.4997032,12.3457664 12.9722384,12.4928609 C12.8155296,12.5366428 12.6536795,12.4415873 12.6110585,12.280597 C12.5684375,12.1196068 12.6610185,11.9536221 12.8179236,11.9098804 Z M9.3348116,11.7697541 C9.95183548,11.6959249 10.5769048,11.7441777 11.1712838,11.9103235 C11.3281496,11.9541457 11.4206914,12.1201707 11.3779526,12.2811609 C11.3352531,12.4421914 11.1734031,12.5370456 11.0166157,12.4932636 C10.4944884,12.347297 9.94484971,12.3050053 9.40325643,12.3698123 L9.40325643,12.3698123 L6.33901581,12.7390386 C6.32735978,12.7404483 6.315743,12.741133 6.3042832,12.741133 C6.15707186,12.741133 6.02991518,12.6279928 6.01229378,12.4742525 C5.99333801,12.3085498 6.10887791,12.1584748 6.27029626,12.1390207 L6.27029626,12.1390207 Z M12.8179236,10.5243251 C13.4183072,10.3569307 14.036116,10.3097655 14.6541603,10.3841988 L14.6541603,10.3841988 L17.7187149,10.7534654 C17.8801332,10.7729195 17.9956339,10.9229945 17.9767174,11.0886973 C17.9591352,11.2424375 17.8319785,11.3555778 17.6847672,11.3555778 C17.6733074,11.3555778 17.6617299,11.354893 17.6500346,11.3534833 L17.6500346,11.3534833 L14.5855192,10.9842167 C14.0426308,10.9188459 13.4997817,10.9602112 12.9722384,11.1073056 C12.8155296,11.1510472 12.6536795,11.056032 12.6110585,10.8950417 C12.5684375,10.7340515 12.6610185,10.5680668 12.8179236,10.5243251 Z M9.3348116,10.3841585 C9.95199246,10.3103696 10.5769048,10.3586224 11.1712838,10.5247682 C11.3281496,10.5685904 11.4206914,10.7346154 11.3779526,10.8956056 C11.3352531,11.0566362 11.1734031,11.1515306 11.0166157,11.1077084 C10.4945669,10.961782 9.94496745,10.9194903 9.40325643,10.984257 L9.40325643,10.984257 L6.33901581,11.3534833 C6.32735978,11.354893 6.315743,11.3555778 6.3042832,11.3555778 C6.15707186,11.3555778 6.02991518,11.2424375 6.01229378,11.088657 C5.99333801,10.9229542 6.10887791,10.7728793 6.27029626,10.7534251 L6.27029626,10.7534251 Z M12.8179236,9.13876988 C13.4183072,8.97133519 14.036116,8.9242102 14.6541603,8.99864352 L14.6541603,8.99864352 L17.7187149,9.36791011 C17.8801332,9.38736427 17.9956339,9.53743924 17.9767174,9.70314198 C17.9591352,9.85688223 17.8319785,9.97002249 17.6847672,9.97002249 C17.6733074,9.97002249 17.6617299,9.96933776 17.6500346,9.96792804 L17.6500346,9.96792804 L14.5855192,9.59866145 C14.0426308,9.53329063 13.4997817,9.5746559 12.9722384,9.72175031 C12.8155296,9.76549197 12.6536795,9.67043644 12.6110585,9.50948647 C12.5684375,9.34849622 12.6610185,9.18251154 12.8179236,9.13876988 Z M9.3348116,8.99860324 C9.95195322,8.92477409 10.5768655,8.97302686 11.1712838,9.13917266 C11.3281496,9.18299487 11.4206914,9.34901984 11.3779526,9.51001008 C11.3352531,9.6710406 11.1734031,9.76589475 11.0166157,9.72211281 C10.4945669,9.57618646 9.9450067,9.5338948 9.40325643,9.59866145 L9.40325643,9.59866145 L6.33901581,9.96788776 C6.32735978,9.96929749 6.315743,9.96998221 6.3042832,9.96998221 C6.15707186,9.96998221 6.02991518,9.85684195 6.01229378,9.70310171 C5.99333801,9.53739896 6.10887791,9.38732399 6.27029626,9.36786983 L6.27029626,9.36786983 Z M12.8179236,7.75317433 C13.418268,7.58573964 14.0360375,7.53857437 14.6541603,7.61304797 L14.6541603,7.61304797 L17.7187149,7.98231456 C17.8801332,8.00176872 17.9956339,8.15184369 17.9767174,8.31754644 C17.9591352,8.47128668 17.8319785,8.58442694 17.6847672,8.58442694 L17.6847672,8.58442694 L17.6500346,8.58233249 L14.5855192,8.2130659 C14.0427093,8.14769508 13.4997817,8.18906035 12.9722384,8.33615477 C12.8155296,8.37985615 12.6536795,8.28488117 12.6110585,8.12389092 C12.5684375,7.96290068 12.6610185,7.79691599 12.8179236,7.75317433 Z M9.3348116,7.61304797 C9.95222794,7.53921882 10.576944,7.58747159 11.1712838,7.75361739 C11.3281496,7.7974396 11.4206914,7.96346456 11.3779526,8.12445481 C11.3352531,8.28548533 11.1734031,8.38033948 11.0166157,8.33655754 C10.4946061,8.19063118 9.94535991,8.14829925 9.40325643,8.21310618 L9.40325643,8.21310618 L6.33901581,8.58233249 C6.32735978,8.58374222 6.315743,8.58442694 6.3042832,8.58442694 C6.15707186,8.58442694 6.02991518,8.47128668 6.01229378,8.31754644 C5.99333801,8.15184369 6.10887791,8.00176872 6.27029626,7.98231456 L6.27029626,7.98231456 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){"use strict";var r,i,o,a,c,s,u,l,f,p,d,m,h,y,v,b,g,S,E,O,C;n.d(t,"g",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return O})),n.d(t,"b",(function(){return C})),function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url"}(i||(i={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.Dashboard="dashboard"}(o||(o={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(s||(s={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(u||(u={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(p||(p={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide"}(d||(d={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip"}(m||(m={})),function(e){e.LibraryReview="library_review"}(h||(h={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(y||(y={})),function(e){e.Edit="edit"}(v||(v={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist",e.Link="link"}(b||(b={})),function(e){e.On="on",e.Off="off"}(g||(g={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(S||(S={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(E||(E={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags",e.Subjects="subjects"}(O||(O={})),function(e){e[e.V1=1]="V1"}(C||(C={}))},function(e,t,n){"use strict";var r;!function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(42);var i=function(e){this.j=[],this.T=e||null};i.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],i=n[1];if(this.test(e,r))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var o=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=o,t.TokenState=a,t.stateify=function(e,t,n,r){for(var i=0,a=e.length,c=t,s=[],u=void 0;i<a&&(u=c.next(e[i]));)c=u,i++;if(i>=a)return[];for(;i<a-1;)u=new o(r),s.push(u),c.on(e[i],u),c=u,i++;return u=new o(n),s.push(u),c.on(e[a-1],u),s}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";var r=n(192);n.o(r,"DomainOptionKind")&&n.d(t,"DomainOptionKind",(function(){return r.DomainOptionKind})),n.o(r,"DomainOptionType")&&n.d(t,"DomainOptionType",(function(){return r.DomainOptionType}))},function(e,t){},function(e,t,n){const{noopTest:r,edit:i,merge:o}=n(32),a={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};a.def=i(a.def).replace("label",a._label).replace("title",a._title).getRegex(),a.bullet=/(?:[*+-]|\d{1,9}\.)/,a.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,a.item=i(a.item,"gm").replace(/bull/g,a.bullet).getRegex(),a.list=i(a.list).replace(/bull/g,a.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+a.def.source+")").getRegex(),a._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a._comment=/<!--(?!-?>)[\s\S]*?-->/,a.html=i(a.html,"i").replace("comment",a._comment).replace("tag",a._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a.paragraph=i(a._paragraph).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.blockquote=i(a.blockquote).replace("paragraph",a.paragraph).getRegex(),a.normal=o({},a),a.gfm=o({},a.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),a.pedantic=o({},a.normal,{html:i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",a._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:i(a.normal._paragraph).replace("hr",a.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",a.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const c={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};c.em=i(c.em).replace(/punctuation/g,c._punctuation).getRegex(),c._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,c._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,c._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,c.autolink=i(c.autolink).replace("scheme",c._scheme).replace("email",c._email).getRegex(),c._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,c.tag=i(c.tag).replace("comment",a._comment).replace("attribute",c._attribute).getRegex(),c._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,c._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,c._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,c.link=i(c.link).replace("label",c._label).replace("href",c._href).replace("title",c._title).getRegex(),c.reflink=i(c.reflink).replace("label",c._label).getRegex(),c.normal=o({},c),c.pedantic=o({},c.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:i(/^!?\[(label)\]\((.*?)\)/).replace("label",c._label).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c._label).getRegex()}),c.gfm=o({},c.normal,{escape:i(c.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),c.gfm.url=i(c.gfm.url,"i").replace("email",c.gfm._extended_email).getRegex(),c.breaks=o({},c.gfm,{br:i(c.br).replace("{2,}","*").getRegex(),text:i(c.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:a,inline:c}},function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},function(e,t,n){const r=n(59),{defaults:i}=n(38),{inline:o}=n(193),{findClosingBracket:a,escape:c}=n(32);e.exports=class e{constructor(e,t){if(this.options=t||i,this.links=e,this.rules=o.normal,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.options.breaks?this.rules=o.breaks:this.rules=o.gfm)}static get rules(){return o}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,i,o,s,u,l="";for(;t;)if(s=this.rules.escape.exec(t))t=t.substring(s[0].length),l+=c(s[1]);else if(s=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),t=t.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(t)){const r=a(s[2],"()");if(r>-1){const e=(0===s[0].indexOf("!")?5:4)+s[1].length+r;s[2]=s[2].substring(0,r),s[0]=s[0].substring(0,e).trim(),s[3]=""}t=t.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),n?(i=n[1],o=n[3]):o=""):o=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(s,{href:e.escapes(i),title:e.escapes(o)}),this.inLink=!1}else if((s=this.rules.reflink.exec(t))||(s=this.rules.nolink.exec(t))){if(t=t.substring(s[0].length),n=(s[2]||s[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){l+=s[0].charAt(0),t=s[0].substring(1)+t;continue}this.inLink=!0,l+=this.outputLink(s,n),this.inLink=!1}else if(s=this.rules.strong.exec(t))t=t.substring(s[0].length),l+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(t))t=t.substring(s[0].length),l+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(t))t=t.substring(s[0].length),l+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(t))t=t.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(t))t=t.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(t))t=t.substring(s[0].length),"@"===s[2]?(r=c(this.mangle(s[1])),i="mailto:"+r):(r=c(s[1]),i=r),l+=this.renderer.link(i,null,r);else if(this.inLink||!(s=this.rules.url.exec(t))){if(s=this.rules.text.exec(t))t=t.substring(s[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0]):l+=this.renderer.text(c(this.smartypants(s[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===s[2])r=c(s[0]),i="mailto:"+r;else{do{u=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(u!==s[0]);r=c(s[0]),i="www."===s[1]?"http://"+r:r}t=t.substring(s[0].length),l+=this.renderer.link(i,null,r)}return l}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,c(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",i=0;for(;i<t;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}}},function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},function(e,t,n){"use strict";var r=n(7);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var o=[r.a.POST,r.a.PUT];function a(e){var t=e.resource,n=e.type,r=e.headers,a=e.success,c=e.error,s=e.always,u={url:t,method:n};o.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){a&&a(e,i(n))})).fail((function(e){c&&c(i(e))})).always((function(){s&&s()}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(6);function i(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=null,r=null;return function(){return o(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function c(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 s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),s=c(r),u=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=a,l.dependencies=s,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var u=s(a);var l=n(40),f=n(9),p=n(18),d=n(26),m=n(19),h=n(0);function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return O})),n.d(t,"e",(function(){return C})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return j})),n.d(t,"f",(function(){return w}));var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===m.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===m.a.Fetching}},{key:"hasError",get:function(){return this.status===m.a.Error}},{key:"isComplete",get:function(){return this.status===m.a.Success||this.status===m.a.Error}}])&&y(t.prototype,n),r&&y(t,r),e}();function b(e,t,n){if(!e||!t)return g();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new v({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function g(){return new v({status:m.a.None})}function S(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function E(e,t){return function(){O(e,t)}}function O(e,t){e({type:p.a.API_REQUEST,request:t})}function C(e,t,n){var r,i,o,a,c=S(t,null==n?void 0:n.key);n&&c.shouldFetch?O(e,n):c.hasError?(null===(r=n.error)||void 0===r||r.call(n,null),null===(i=n.always)||void 0===i||i.call(n)):(null===(o=n.success)||void 0===o||o.call(n,c.data),null===(a=n.always)||void 0===a||a.call(n))}function A(e){var t=Object(r.useDispatch)();if(e)return E(t,e)}function j(e,t){var n=Object(h.useMemo)((function(){return(null==t?void 0:t.optimize)?function(e){return s(a,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function w(e,t){var n=Object(r.useDispatch)(),i=j(e&&e.key,t),o=E(n,e);return e&&i.shouldFetch&&o(),i}},function(e,t,n){"use strict";var r,i;!function(e){e.Boolean="System.Boolean",e.String="System.String",e.StaffRequest="ClickView.DomainApi.Models.Options.Enums.StaffRequestOption, ClickView.DomainApi.Models, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null",e.Long="System.Int64"}(r||(r={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(i||(i={})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(270);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(15),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(56)(e))},function(e,t){e.exports=p},function(e,t,n){"use strict";e.exports=n(275).default},function(e,t,n){e.exports=n(288).default},function(e,t){e.exports=d},function(e,t,n){e.exports={navContainer:"_3SbvR"}},function(e,t,n){e.exports={navContainer:"_11O8h"}},function(e,t,n){e.exports={navContainer:"_3by-P"}},function(e,t,n){e.exports={navContainer:"_3vLoN"}},function(e,t,n){"use strict";var r=n(296).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){e.exports={copyBtn:"_3uXV3"}},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t){e.exports=m},function(e,t,n){"use strict";
2
2
  /** @license React v0.17.0
3
3
  * scheduler.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var r,a,i,o,s;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(u,0))},a=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,m=window.setTimeout,h=window.clearTimeout,g=window.requestAnimationFrame,y=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var v=d.now();t.unstable_now=function(){return d.now()-v}}var b=!1,S=null,E=-1,C=5,O=0;o=function(){return t.unstable_now()>=O},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):C=0<e?Math.floor(1e3/e):33.33};var A=new MessageChannel,I=A.port2;A.port1.onmessage=function(){if(null!==S){var e=t.unstable_now();O=e+C;try{S(!0,e)?I.postMessage(null):(b=!1,S=null)}catch(e){throw I.postMessage(null),e}}else b=!1},r=function(e){S=e,b||(b=!0,I.postMessage(null))},a=function(e,n){E=m((function(){e(t.unstable_now())}),n)},i=function(){h(E),E=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),a=e[r];if(!(void 0!==a&&0<w(a,t)))break e;e[r]=t,e[n]=a,n=r}}function j(e){return void 0===(e=e[0])?null:e}function L(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],s=i+1,c=e[s];if(void 0!==o&&0>w(o,n))void 0!==c&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==c&&0>w(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],x=[],_=1,N=null,P=3,D=!1,R=!1,M=!1;function U(e){for(var t=j(x);null!==t;){if(null===t.callback)L(x);else{if(!(t.startTime<=e))break;L(x),t.sortIndex=t.expirationTime,T(k,t)}t=j(x)}}function F(e){if(M=!1,U(e),!R)if(null!==j(k))R=!0,r(V);else{var t=j(x);null!==t&&a(F,t.startTime-e)}}function V(e,n){R=!1,M&&(M=!1,i()),D=!0;var r=P;try{for(U(n),N=j(k);null!==N&&(!(N.expirationTime>n)||e&&!o());){var s=N.callback;if(null!==s){N.callback=null,P=N.priorityLevel;var c=s(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?N.callback=c:N===j(k)&&L(k),U(n)}else L(k);N=j(k)}if(null!==N)var l=!0;else{var u=j(x);null!==u&&a(F,u.startTime-n),l=!1}return l}finally{N=null,P=r,D=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();if("object"==typeof o&&null!==o){var c=o.delay;c="number"==typeof c&&0<c?s+c:s,o="number"==typeof o.timeout?o.timeout:B(e)}else o=B(e),c=s;return e={id:_++,callback:n,priorityLevel:e,startTime:c,expirationTime:o=c+o,sortIndex:-1},c>s?(e.sortIndex=c,T(x,e),null===j(k)&&e===j(x)&&(M?i():M=!0,a(F,c-s))):(e.sortIndex=o,T(k,e),R||D||(R=!0,r(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=j(k);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||o()},t.unstable_requestPaint=z,t.unstable_continueExecution=function(){R||D||(R=!0,r(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return j(k)},t.unstable_Profiling=null},function(e,t,n){"use strict";e.exports=n(273)},function(e,t,n){"use strict";
9
+ */var r,i,o,a,c;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,l=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(l,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(l,0))},i=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,m=window.setTimeout,h=window.clearTimeout,y=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var g=!1,S=null,E=-1,O=5,C=0;a=function(){return t.unstable_now()>=C},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):O=0<e?Math.floor(1e3/e):33.33};var A=new MessageChannel,j=A.port2;A.port1.onmessage=function(){if(null!==S){var e=t.unstable_now();C=e+O;try{S(!0,e)?j.postMessage(null):(g=!1,S=null)}catch(e){throw j.postMessage(null),e}}else g=!1},r=function(e){S=e,g||(g=!0,j.postMessage(null))},i=function(e,n){E=m((function(){e(t.unstable_now())}),n)},o=function(){h(E),E=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function I(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],c=o+1,s=e[c];if(void 0!==a&&0>k(a,n))void 0!==s&&0>k(s,a)?(e[r]=s,e[c]=n,r=c):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>k(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var L=[],_=[],x=1,P=null,N=3,R=!1,D=!1,M=!1;function U(e){for(var t=I(_);null!==t;){if(null===t.callback)T(_);else{if(!(t.startTime<=e))break;T(_),t.sortIndex=t.expirationTime,w(L,t)}t=I(_)}}function F(e){if(M=!1,U(e),!D)if(null!==I(L))D=!0,r(V);else{var t=I(_);null!==t&&i(F,t.startTime-e)}}function V(e,n){D=!1,M&&(M=!1,o()),R=!0;var r=N;try{for(U(n),P=I(L);null!==P&&(!(P.expirationTime>n)||e&&!a());){var c=P.callback;if(null!==c){P.callback=null,N=P.priorityLevel;var s=c(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?P.callback=s:P===I(L)&&T(L),U(n)}else T(L);P=I(L)}if(null!==P)var u=!0;else{var l=I(_);null!==l&&i(F,l.startTime-n),u=!1}return u}finally{P=null,N=r,R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=c;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?c+s:c,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),s=c;return e={id:x++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>c?(e.sortIndex=s,w(_,e),null===I(L)&&e===I(_)&&(M?o():M=!0,i(F,s-c))):(e.sortIndex=a,w(L,e),D||R||(D=!0,r(V))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=I(L);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_requestPaint=z,t.unstable_continueExecution=function(){D||R||(D=!0,r(V))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return I(L)},t.unstable_Profiling=null},function(e,t,n){"use strict";e.exports=n(273)},function(e,t,n){"use strict";
10
10
  /** @license React v16.13.1
11
11
  * react-is.production.min.js
12
12
  *
@@ -14,4 +14,4 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case p:case f:case o:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case d:case y:case g:case l:return e;default:return t}}case i:return t}}}function O(e){return C(e)===f}t.AsyncMode=p,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=a,t.ForwardRef=d,t.Fragment=o,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||C(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return C(e)===d},t.isFragment=function(e){return C(e)===o},t.isLazy=function(e){return C(e)===y},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===c},t.isStrictMode=function(e){return C(e)===s},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===c||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===S||e.$$typeof===E||e.$$typeof===v)},t.typeOf=C},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=p(i),s=p(n(37)),c=p(n(278)),l=p(n(279)),u=n(287);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return m.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,r}return function(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,e),a(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,c.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,a=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,c.default)(r,e.suggestions)&&r.length>0&&i)this.highlightFirstSuggestion();else if(a){var o=this.getHighlightedSuggestion();o!=t.highlightedSuggestion&&a({suggestion:o})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(a){var i=a.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,a=n.multiSection,i=n.getSectionSuggestions;return a?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;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 r=this.props.inputProps,a=r.value,i=r.onChange;t!==a&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,a=n.value;return t.length>0&&r(a)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,a=t.renderInputComponent,i=t.onSuggestionsFetchRequested,s=t.renderSuggestion,c=t.inputProps,p=t.multiSection,d=t.renderSectionTitle,m=t.id,h=t.getSectionSuggestions,g=t.theme,y=t.getSuggestionValue,v=t.alwaysRenderSuggestions,b=t.highlightFirstSuggestion,S=this.state,E=S.isFocused,C=S.isCollapsed,O=S.highlightedSectionIndex,A=S.highlightedSuggestionIndex,I=S.valueBeforeUpDown,T=v?f:this.props.shouldRenderSuggestions,j=c.value,L=c.onFocus,w=c.onKeyDown,k=this.willRenderSuggestions(this.props),x=v||E&&!C&&k,_=x?n:[],N=r({},c,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=T(j);e.setState({isFocused:!0,isCollapsed:!n}),L&&L(t),n&&i({value:j,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,a=T(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},b?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!a})),a?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var a=t.keyCode;switch(a){case 40:case 38:if(C)T(j)&&(i({value:j,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var o=r.newHighlightedSectionIndex,s=r.newHighlightedItemIndex,c=void 0;c=null===s?null===I?j:I:e.getSuggestionValueByIndex(o,s),e.updateHighlightedSuggestion(o,s,j),e.maybeCallOnChange(t,c,40===a?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var l=e.getHighlightedSuggestion();if(x&&!v&&e.closeSuggestions(),null!=l){var u=y(l);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:l,suggestionValue:u,suggestionIndex:A,sectionIndex:O,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:x&&t.preventDefault();var p=x&&!v;if(null===I){if(!p){e.maybeCallOnChange(t,"","escape"),T("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,I,"escape");p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}w&&w(t)}}),P={query:this.getQuery()};return o.default.createElement(l.default,{multiSection:p,items:_,renderInputComponent:a,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:P,renderSectionTitle:d,getSectionItems:h,highlightedSectionIndex:O,highlightedItemIndex:A,inputProps:N,itemProps:this.itemProps,theme:(0,u.mapToAutowhateverTheme)(g),id:m,ref:this.storeAutowhateverRef})}}]),t}(i.Component);d.propTypes={suggestions:s.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:s.default.func,onSuggestionHighlighted:s.default.func,renderInputComponent:s.default.func,renderSuggestionsContainer:s.default.func,getSuggestionValue:s.default.func.isRequired,renderSuggestion:s.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:s.default.func,alwaysRenderSuggestions:s.default.bool,multiSection:s.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:s.default.bool,highlightFirstSuggestion:s.default.bool,theme:s.default.object,id:s.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:u.defaultTheme,id:"1"};var m=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.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,a=n.itemIndex;e.updateHighlightedSuggestion(r,a),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,a=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,o=r.onSuggestionsFetchRequested;i&&i(t,n),a?o({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,a=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),o=i.sectionIndex,s=i.suggestionIndex,c=e.getSuggestion(o,s),l=e.props.getSuggestionValue(c);e.maybeCallOnChange(t,l,"click"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:l,suggestionIndex:s,sectionIndex:o,method:"click"}),r||e.closeSuggestions(),!0===a?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,a=n.value,i=n.onBlur,o=e.getHighlightedSuggestion(),s=r(a);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),i&&i(e.blurEvent,{highlightedSuggestion:o})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";var r=n(277);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("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");throw s.name="Invariant Violation",s}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return 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){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(280).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),s=d(o),c=d(n(37)),l=d(n(281)),u=d(n(282)),p=d(n(284)),f=d(n(285));function d(e){return e&&e.__esModule?e:{default:e}}var m={},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,i=t.highlightedSectionIndex,o=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var s="ArrowDown"===e.key?"next":"prev",c=n.sectionIterator[s]([i,o]),l=a(c,2),u=l[0],p=l[1];r.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:p});break;default:r.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:o})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(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,e),i(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_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.ensureHighlightedItemIsVisible()}},{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,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,u.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,a=n.items,i=n.renderItem,o=n.renderItemData,c=n.renderSectionTitle,l=n.highlightedSectionIndex,u=n.highlightedItemIndex,d=n.itemProps;return a.map((function(n,a){var m="react-autowhatever-"+r+"-",h=m+"section-"+a+"-",g=0===a;return s.default.createElement("div",t(h+"container","sectionContainer",g&&"sectionContainerFirst"),s.default.createElement(p.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:h}),s.default.createElement(f.default,{items:e.sectionsItems[a],itemProps:d,renderItem:i,renderItemData:o,sectionIndex:a,highlightedItemIndex:l===a?u:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:m,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,r=n.id,a=n.renderItem,i=n.renderItemData,o=n.highlightedSectionIndex,c=n.highlightedItemIndex,l=n.itemProps;return s.default.createElement(f.default,{items:e,itemProps:l,renderItem:a,renderItemData:i,highlightedItemIndex:null===o?c:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,a=t.multiSection,i=t.renderInputComponent,o=t.renderItemsContainer,c=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,p=a?this.renderSections():this.renderItems(),f=null!==p,d=this.getItemId(c,l),m="react-autowhatever-"+n,h=r({role:"combobox","aria-haspopup":"listbox","aria-owns":m,"aria-expanded":f},e("react-autowhatever-"+n+"-container","container",f&&"containerOpen"),this.props.containerProps),g=i(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":m,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",f&&"inputOpen",u&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=o({containerProps:r({id:m,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",f&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:p});return s.default.createElement("div",h,g,y)}}]),t}(o.Component);h.propTypes={id:c.default.string,multiSection:c.default.bool,renderInputComponent:c.default.func,renderItemsContainer:c.default.func,items:c.default.array.isRequired,renderItem:c.default.func,renderItemData:c.default.object,renderSectionTitle:c.default.func,getSectionItems:c.default.func,containerProps:c.default.object,inputProps:c.default.object,itemProps:c.default.oneOfType([c.default.object,c.default.func]),highlightedSectionIndex:c.default.number,highlightedItemIndex:c.default.number,theme:c.default.oneOfType([c.default.object,c.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return s.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return s.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:m,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:m,inputProps:m,itemProps:m,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},function(e,t,n){"use strict";var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function a(e){var a=r(e,2),i=a[0],o=a[1];return n?null===o||o===t[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(i))?[null,null]:[i,0]:[i,o+1]:0===t||o===t-1?[null,null]:null===o?[null,0]:[null,o+1]}return{next:a,prev:function(e){var a=r(e,2),i=a[0],o=a[1];return n?null===o||0===o?null===(i=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,t[i]-1]:[i,o-1]:0===t||0===o?[null,null]:null===o?[null,t-1]:[null,o-1]},isLast:function(e){return null===a(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function a(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)}var i,o=n(283),s=(i=o)&&i.__esModule?i:{default:i},c=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),i=n[0],o=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=n.map((function(e){return i[e]})).filter(c);return"string"==typeof l[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,a(l)):l.join(" ")}:{key:e,style:s.default.apply(void 0,[{}].concat(a(l)))}}},e.exports=t.default},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,o=a(e),s=1;s<arguments.length;s++){n=arguments[s],r=i(Object(n));for(var c=0;c<r.length;c++)o[r[c]]=n[r[c]]}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),i=c(a),o=c(n(37)),s=c(n(57));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}var p=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,a=e.sectionKeyPrefix,o=n(t);return o?i.default.createElement("div",r(a+"title","sectionTitle"),o):null}}]),t}(a.Component);p.propTypes={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=u(i),s=u(n(37)),c=u(n(286)),l=u(n(57));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}var d=function(e){function t(){var e,n,r;p(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},f(r,n)}return function(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,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,a=t.itemProps,i=t.renderItem,s=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,p=t.getItemId,f=t.theme,d=t.keyPrefix,m=null===l?d:d+"section-"+l+"-",h="function"==typeof a;return o.default.createElement("ul",r({role:"listbox"},f(m+"items-list","itemsList")),n.map((function(t,n){var d=0===n,g=n===u,y=m+"item-"+n,v=h?a({sectionIndex:l,itemIndex:n}):a,b=r({id:p(l,n),"aria-selected":g},f(y,"item",d&&"itemFirst",g&&"itemHighlighted"),v);return g&&(b.ref=e.storeHighlightedItemReference),o.default.createElement(c.default,r({},b,{sectionIndex:l,isHighlighted:g,itemIndex:n,item:t,renderItem:i,renderItemData:s}))})))}}]),t}(i.Component);d.propTypes={items:s.default.array.isRequired,itemProps:s.default.oneOfType([s.default.object,s.default.func]),renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,sectionIndex:s.default.number,highlightedItemIndex:s.default.number,onHighlightedItemChange:s.default.func.isRequired,getItemId:s.default.func.isRequired,theme:s.default.func.isRequired,keyPrefix:s.default.string.isRequired},d.defaultProps={sectionIndex:null},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=l(i),s=l(n(37)),c=l(n(57));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}var f=function(e){function t(){var e,n,r;u(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:a})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:a})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:a})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,a=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex:a})},p(r,n)}return function(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,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,a=e.renderItem,i=e.renderItemData,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"==typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"==typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"==typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"==typeof s.onClick&&(s.onClick=this.onClick),o.default.createElement("li",r({role:"option"},s,{ref:this.storeItemReference}),a(n,r({isHighlighted:t},i)))}}]),t}(i.Component);f.propTypes={sectionIndex:s.default.number,isHighlighted:s.default.bool.isRequired,itemIndex:s.default.number.isRequired,item:s.default.any.isRequired,renderItem:s.default.func.isRequired,renderItemData:s.default.object.isRequired,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onMouseDown:s.default.func,onClick:s.default.func},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=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}(n(289));var a=r.tokenize,i=r.options.Options;function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=a(e),r=[],l=0;l<n.length;l++){var u=n[l];if("nl"===u.type&&t.nl2br)r.push("<br>\n");else if(u.isLink&&t.check(u)){var p=t.resolve(u),f=p.formatted,d=p.formattedHref,m=p.tagName,h=p.className,g=p.target,y=p.attributes,v="<"+m+' href="'+s(d)+'"';h&&(v+=' class="'+s(h)+'"'),g&&(v+=' target="'+s(g)+'"'),y&&(v+=" "+c(y)),v+=">"+o(f)+"</"+m+">",r.push(v)}else r.push(o(u.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return l(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return l(this,e)})}t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(42),a=s(n(290)),i=s(n(291)),o=s(n(292));function s(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}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return o.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),r=[],a=0;a<n.length;a++){var i=n[a];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=a,t.parser=o,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},function(e,t,n){"use strict";t.__esModule=!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},a={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:a.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:a.events,this.format=e.hasOwnProperty("format")?e.format:a.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:a.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:a.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:a.tagName,this.target=e.hasOwnProperty("target")?e.target:a.target,this.validate=e.hasOwnProperty("validate")?e.validate:a.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||a.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||a.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:a.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function o(e){return e}t.defaults=a,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,o=this[e];if(!o)return o;switch(void 0===o?"undefined":r(o)){case"function":return o(t,n.type);case"object":return"function"==typeof(i=o.hasOwnProperty(n.type)?o[n.type]:a[e])?i(t,n.type):i}return o},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),a=n(58),i=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}(a);var o="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],p=function(e){return new r.CharacterState(e)},f=p(),d=p(a.NUM),m=p(a.DOMAIN),h=p(),g=p(a.WS);f.on("@",p(a.AT)).on(".",p(a.DOT)).on("+",p(a.PLUS)).on("#",p(a.POUND)).on("?",p(a.QUERY)).on("/",p(a.SLASH)).on("_",p(a.UNDERSCORE)).on(":",p(a.COLON)).on("{",p(a.OPENBRACE)).on("[",p(a.OPENBRACKET)).on("<",p(a.OPENANGLEBRACKET)).on("(",p(a.OPENPAREN)).on("}",p(a.CLOSEBRACE)).on("]",p(a.CLOSEBRACKET)).on(">",p(a.CLOSEANGLEBRACKET)).on(")",p(a.CLOSEPAREN)).on("&",p(a.AMPERSAND)).on([",",";","!",'"',"'"],p(a.PUNCTUATION)),f.on("\n",p(a.NL)).on(l,g),g.on(l,g);for(var y=0;y<o.length;y++){var v=(0,r.stateify)(o[y],f,a.TLD,a.DOMAIN);u.push.apply(u,v)}var b=(0,r.stateify)("file",f,a.DOMAIN,a.DOMAIN),S=(0,r.stateify)("ftp",f,a.DOMAIN,a.DOMAIN),E=(0,r.stateify)("http",f,a.DOMAIN,a.DOMAIN),C=(0,r.stateify)("mailto",f,a.DOMAIN,a.DOMAIN);u.push.apply(u,b),u.push.apply(u,S),u.push.apply(u,E),u.push.apply(u,C);var O=b.pop(),A=S.pop(),I=E.pop(),T=C.pop(),j=p(a.DOMAIN),L=p(a.PROTOCOL),w=p(a.MAILTO);A.on("s",j).on(":",L),I.on("s",j).on(":",L),u.push(j),O.on(":",L),j.on(":",L),T.on(":",w);var k=(0,r.stateify)("localhost",f,a.LOCALHOST,a.DOMAIN);u.push.apply(u,k),f.on(s,d),d.on("-",h).on(s,d).on(c,m),m.on("-",h).on(c,m);for(var x=0;x<u.length;x++)u[x].on("-",h).on(c,m);h.on("-",h).on(s,m).on(c,m),f.defaultTransition=p(a.SYM);var _=f;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],a=0;a<n;){for(var i=f,o=null,s=0,c=null,l=-1;a<n&&(o=i.next(t[a]));)(i=o).accepts()?(l=0,c=i):l>=0&&l++,s++,a++;if(!(l<0)){a-=l,s-=l;var u=c.emit();r.push(new u(e.substr(a-s,s)))}}return r},t.start=_},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),a=n(293),i=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}(a),o=n(58);var s=function(e){return new r.TokenState(e)},c=s(),l=s(),u=s(),p=s(),f=s(),d=s(),m=s(),h=s(a.URL),g=s(),y=s(a.URL),v=s(a.URL),b=s(),S=s(),E=s(),C=s(),O=s(),A=s(a.URL),I=s(a.URL),T=s(a.URL),j=s(a.URL),L=s(),w=s(),k=s(),x=s(),_=s(),N=s(),P=s(a.EMAIL),D=s(),R=s(a.EMAIL),M=s(a.MAILTOEMAIL),U=s(),F=s(),V=s(),B=s(),z=s(a.NL);c.on(o.NL,z).on(o.PROTOCOL,l).on(o.MAILTO,u).on(o.SLASH,p),l.on(o.SLASH,p),p.on(o.SLASH,f),c.on(o.TLD,d).on(o.DOMAIN,d).on(o.LOCALHOST,h).on(o.NUM,d),f.on(o.TLD,v).on(o.DOMAIN,v).on(o.NUM,v).on(o.LOCALHOST,v),d.on(o.DOT,m),_.on(o.DOT,N),m.on(o.TLD,h).on(o.DOMAIN,d).on(o.NUM,d).on(o.LOCALHOST,d),N.on(o.TLD,P).on(o.DOMAIN,_).on(o.NUM,_).on(o.LOCALHOST,_),h.on(o.DOT,m),P.on(o.DOT,N),h.on(o.COLON,g).on(o.SLASH,v),g.on(o.NUM,y),y.on(o.SLASH,v),P.on(o.COLON,D),D.on(o.NUM,R);var H=[o.DOMAIN,o.AT,o.LOCALHOST,o.NUM,o.PLUS,o.POUND,o.PROTOCOL,o.SLASH,o.TLD,o.UNDERSCORE,o.SYM,o.AMPERSAND],q=[o.COLON,o.DOT,o.QUERY,o.PUNCTUATION,o.CLOSEBRACE,o.CLOSEBRACKET,o.CLOSEANGLEBRACKET,o.CLOSEPAREN,o.OPENBRACE,o.OPENBRACKET,o.OPENANGLEBRACKET,o.OPENPAREN];v.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,C).on(o.OPENPAREN,O),b.on(o.OPENBRACE,S).on(o.OPENBRACKET,E).on(o.OPENANGLEBRACKET,C).on(o.OPENPAREN,O),S.on(o.CLOSEBRACE,v),E.on(o.CLOSEBRACKET,v),C.on(o.CLOSEANGLEBRACKET,v),O.on(o.CLOSEPAREN,v),A.on(o.CLOSEBRACE,v),I.on(o.CLOSEBRACKET,v),T.on(o.CLOSEANGLEBRACKET,v),j.on(o.CLOSEPAREN,v),L.on(o.CLOSEBRACE,v),w.on(o.CLOSEBRACKET,v),k.on(o.CLOSEANGLEBRACKET,v),x.on(o.CLOSEPAREN,v),S.on(H,A),E.on(H,I),C.on(H,T),O.on(H,j),S.on(q,L),E.on(q,w),C.on(q,k),O.on(q,x),A.on(H,A),I.on(H,I),T.on(H,T),j.on(H,j),A.on(q,A),I.on(q,I),T.on(q,T),j.on(q,j),L.on(H,A),w.on(H,I),k.on(H,T),x.on(H,j),L.on(q,L),w.on(q,w),k.on(q,k),x.on(q,x),v.on(H,v),b.on(H,v),v.on(q,b),b.on(q,b),u.on(o.TLD,M).on(o.DOMAIN,M).on(o.NUM,M).on(o.LOCALHOST,M),M.on(H,M).on(q,U),U.on(H,M).on(q,U);var J=[o.DOMAIN,o.NUM,o.PLUS,o.POUND,o.QUERY,o.UNDERSCORE,o.SYM,o.AMPERSAND,o.TLD];d.on(J,F).on(o.AT,V),h.on(J,F).on(o.AT,V),m.on(J,F),F.on(J,F).on(o.AT,V).on(o.DOT,B),B.on(J,F),V.on(o.TLD,_).on(o.DOMAIN,_).on(o.LOCALHOST,P);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var o=c,s=null,l=null,u=0,p=null,f=-1;n<t&&!(s=o.next(e[n]));)i.push(e[n++]);for(;n<t&&(l=s||o.next(e[n]));)s=null,(o=l).accepts()?(f=0,p=o):f>=0&&f++,n++,u++;if(f<0)for(var d=n-u;d<n;d++)i.push(e[d]);else{i.length>0&&(r.push(new a.TEXT(i)),i=[]),n-=f,u-=f;var m=p.emit();r.push(new m(e.slice(n-u,n)))}}return i.length>0&&r.push(new a.TEXT(i)),r},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(190),a=n(42),i=n(58);function o(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,a.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,a.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,a.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),p=(0,a.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),f=(0,a.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,a=[],s=0;r[s]instanceof i.PROTOCOL;)t=!0,a.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof i.SLASH;)n=!0,a.push(r[s].toString()),s++;for(;o(r[s]);)a.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)a.push(r[s].toString());return a=a.join(""),t||n||(a=e+"://"+a),a},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=p,t.TEXT=u,t.URL=f},function(e,t,n){const{defaults:r}=n(38),{block:a}=n(193),{rtrim:i,splitCells:o,escape:s}=n(32);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.rules=a.normal,this.options.pedantic?this.rules=a.pedantic:this.options.gfm&&(this.rules=a.gfm)}static get rules(){return a}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,r,c,l,u,p,f,d,m,h,g,y,v,b,S,E;for(e=e.replace(/^ +$/gm,"");e;)if((c=this.rules.newline.exec(e))&&(e=e.substring(c[0].length),c[0].length>1&&this.tokens.push({type:"space"})),c=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(c[0].length),t&&"paragraph"===t.type?t.text+="\n"+c[0].trimRight():(c=c[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?c:i(c,"\n")}))}else if(c=this.rules.fences.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"code",lang:c[2]?c[2].trim():c[2],text:c[3]||""});else if(c=this.rules.heading.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"heading",depth:c[1].length,text:c[2]});else if((c=this.rules.nptable.exec(e))&&(p={type:"table",header:o(c[1].replace(/^ *| *\| *$/g,"")),align:c[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:c[3]?c[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(c[0].length),g=0;g<p.align.length;g++)/^ *-+: *$/.test(p.align[g])?p.align[g]="right":/^ *:-+: *$/.test(p.align[g])?p.align[g]="center":/^ *:-+ *$/.test(p.align[g])?p.align[g]="left":p.align[g]=null;for(g=0;g<p.cells.length;g++)p.cells[g]=o(p.cells[g],p.header.length);this.tokens.push(p)}else if(c=this.rules.hr.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"hr"});else if(c=this.rules.blockquote.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"blockquote_start"}),c=c[0].replace(/^ *> ?/gm,""),this.token(c,t),this.tokens.push({type:"blockquote_end"});else if(c=this.rules.list.exec(e)){for(e=e.substring(c[0].length),l=c[2],b=l.length>1,f={type:"list_start",ordered:b,start:b?+l:"",loose:!1},this.tokens.push(f),c=c[0].match(this.rules.item),d=[],n=!1,v=c.length,g=0;g<v;g++)p=c[g],h=p.length,p=p.replace(/^ *([*+-]|\d+\.) */,""),~p.indexOf("\n ")&&(h-=p.length,p=this.options.pedantic?p.replace(/^ {1,4}/gm,""):p.replace(new RegExp("^ {1,"+h+"}","gm"),"")),g!==v-1&&(u=a.bullet.exec(c[g+1])[0],(l.length>1?1===u.length:u.length>1||this.options.smartLists&&u!==l)&&(e=c.slice(g+1).join("\n")+e,g=v-1)),r=n||/\n\n(?!\s*$)/.test(p),g!==v-1&&(n="\n"===p.charAt(p.length-1),r||(r=n)),r&&(f.loose=!0),S=/^\[[ xX]\] /.test(p),E=void 0,S&&(E=" "!==p[1],p=p.replace(/^\[[ xX]\] +/,"")),m={type:"list_item_start",task:S,checked:E,loose:r},d.push(m),this.tokens.push(m),this.token(p,!1),this.tokens.push({type:"list_item_end"});if(f.loose)for(v=d.length,g=0;g<v;g++)d[g].loose=!0;this.tokens.push({type:"list_end"})}else if(c=this.rules.html.exec(e))e=e.substring(c[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===c[1]||"script"===c[1]||"style"===c[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):s(c[0]):c[0]});else if(t&&(c=this.rules.def.exec(e)))e=e.substring(c[0].length),c[3]&&(c[3]=c[3].substring(1,c[3].length-1)),y=c[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[y]||(this.tokens.links[y]={href:c[2],title:c[3]});else if((c=this.rules.table.exec(e))&&(p={type:"table",header:o(c[1].replace(/^ *| *\| *$/g,"")),align:c[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:c[3]?c[3].replace(/\n$/,"").split("\n"):[]},p.header.length===p.align.length)){for(e=e.substring(c[0].length),g=0;g<p.align.length;g++)/^ *-+: *$/.test(p.align[g])?p.align[g]="right":/^ *:-+: *$/.test(p.align[g])?p.align[g]="center":/^ *:-+ *$/.test(p.align[g])?p.align[g]="left":p.align[g]=null;for(g=0;g<p.cells.length;g++)p.cells[g]=o(p.cells[g].replace(/^ *\| *| *\| *$/g,""),p.header.length);this.tokens.push(p)}else if(c=this.rules.lheading.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"heading",depth:"="===c[2].charAt(0)?1:2,text:c[1]});else if(t&&(c=this.rules.paragraph.exec(e)))e=e.substring(c[0].length),this.tokens.push({type:"paragraph",text:"\n"===c[1].charAt(c[1].length-1)?c[1].slice(0,-1):c[1]});else if(c=this.rules.text.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"text",text:c[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},function(e,t,n){const r=n(59),a=n(194),i=n(195),o=n(196),{defaults:s}=n(38),{merge:c,unescape:l}=n(32);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||s,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new a}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,c({},this.options,{renderer:new o})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,r,a,i="";for(r="",t=0;t<this.token.header.length;t++)r+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(i+=this.renderer.tablerow(r),t=0;t<this.token.cells.length;t++){for(n=this.token.cells[t],r="",a=0;a<n.length;a++)r+=this.renderer.tablecell(this.inline.output(n[a]),{header:!1,align:this.token.align[a]});e+=this.renderer.tablerow(r)}return this.renderer.table(i,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,n=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,n)}case"list_item_start":{e="";const t=this.token.loose,n=this.token.checked,r=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(n)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(n)});else e+=this.renderer.checkbox(n);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,r,n)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(0)),a=i(n(297));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?d(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(){var e,n;l(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return h(d(n=p(this,(e=f(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,i=t.text,o=t.onCopy,s=t.children,c=t.options,l=r.default.Children.only(s),u=(0,a.default)(i,c);o&&o(i,u),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(e)})),n}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,["text","onCopy","options","children"]),a=r.default.Children.only(t);return r.default.cloneElement(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&u(n.prototype,i),o&&u(n,o),t}(r.default.PureComponent);t.CopyToClipboard=g,h(g,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(298),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,o,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[t.format]||a.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";n.r(t);n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269);var r={UPLOAD_IMAGE:"upload:image"},a={Subjects:Object.assign({SUBJECTS:"subjects",NEW_SUBJECT:"new:subject",EDIT_SUBJECT:"edit:subject",EDIT_SUBJECT_PLAYLISTS:"edit:subject:playlists",EDIT_SUBJECT_SERIES:"edit:subject:series",EDIT_SUBJECT_VIDEOS:"edit:subject:videos",SUBJECT_CLASSIFICATIONS:"subject:classifications",DELETE_SUBJECT:"delete:subject",ADD_SUBJECT_MEMBERS:"add:subject:members",REMOVE_SUBJECT_MEMBER:"remove:subject:member",CLASSIFICATIONS:"classifications",PRESENTATION_CLASSIFICATIONS:"presentation:classifications",NEW_CLASSIFICATION:"new:classification",EDIT_CLASSIFICATION:"edit:classification",EDIT_CLASSIFICATION_PLAYLISTS:"edit:classification:playlists",EDIT_CLASSIFICATION_SERIES:"edit:classification:series",EDIT_CLASSIFICATION_VIDEOS:"edit:classification:videos",DELETE_CLASSIFICATION:"delete:classification",REMOVE_CLASSIFICATION_MEMBER:"remove:classification:member",LEVELS:"levels",NEW_LEVEL:"new:level",EDIT_LEVEL:"edit:level",LEVEL_AUDIENCES:"level:audiences",EDIT_LEVEL_PLAYLISTS:"edit:level:playlists",EDIT_LEVEL_SERIES:"edit:level:series",EDIT_LEVEL_VIDEOS:"edit:level:videos",REMOVE_LEVEL_MEMBER:"remove:level:member",AUDIENCES:"audiences",PRESENTATION_AUDIENCES:"presentation:audiences",NEW_AUDIENCE:"new:audience",EDIT_AUDIENCE:"edit:audience",EDIT_AUDIENCE_PLAYLISTS:"edit:audience:playlists",EDIT_AUDIENCE_SERIES:"edit:audience:series",EDIT_AUDIENCE_VIDEOS:"edit:audience:videos",DELETE_AUDIENCE:"delete:audience",REMOVE_AUDIENCE_MEMBER:"remove:audience:member",PRESENTATIONS:"presentations",NEW_PRESENTATION:"new:presentation",EDIT_PRESENTATION:"edit:presentation"},r),Playlists:Object.assign({PLAYLISTS:"index",SEARCH_PLAYLISTS:"search:playlists",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",EDIT_PLAYLIST_VIDEOS:"edit:playlist:videos",EDIT_PLAYLIST_SUBJECTS:"edit:playlist:subjects",EDIT_PLAYLIST_AUDIENCES:"edit:playlist:audiences",DELETE_PLAYLIST:"delete:playlist",REMOVE_VIDEO:"remove:video",REMOVE_FROM_SUBJECT:"remove:from:subject"},r),Series:Object.assign({EDIT_SERIES:"edit:series",EDIT_SERIES_VIDEOS:"edit:series:videos",EDIT_SERIES_SUBJECTS:"edit:series:subjects",EDIT_SERIES_AUDIENCES:"edit:series:audiences",LEGACY_EDIT_SERIES:"legacy:edit:series"},r),Videos:Object.assign({EDIT_VIDEO:"edit:video",EDIT_VIDEO_AUDIENCES:"edit:video:audiences",EDIT_VIDEO_SUBJECTS:"edit:video:subjects",EDIT_VIDEO_ALIASES:"edit:video:aliases",LEGACY_EDIT_VIDEO:"legacy:edit:video"},r),DomainOptions:{DOMAIN_OPTIONS:"domain:options",NEW_DOMAIN_OPTION:"new:domain:option",EDIT_DOMAIN_OPTION:"edit:domain:option",DELETE_DOMAIN_OPTION:"delete:domain:option"},People:{PEOPLE:"people",NEW_PERSON:"new:person",EDIT_PERSON:"edit:person"},Companies:{COMPANIES:"companies",NEW_COMPANY:"new:company",EDIT_COMPANY:"edit:company"},Themes:Object.assign({THEMES:"themes",NEW_THEME:"new:theme",EDIT_THEME:"edit:theme",DELETE_THEME:"delete:theme"},r),ReleaseNotes:{FORM:"form",GENERATOR:"generator"},Customers:{EDIT_CUSTOMER_PRESENTATIONS:"edit:customer:presentations"}},i={SUBJECT:"subject",SUBJECTS:"subjects",UPDATE_SUBJECT:"update:subject",DELETE_SUBJECT:"delete:subject",UPDATE_OBJECT_SUBJECTS:"update:object:subjects",ADD_TO_SUBJECT:"add:to:subject",REMOVE_FROM_SUBJECT:"remove:from:subject",CLASSIFICATION:"classification",CLASSIFICATIONS:"classifications",UPDATE_CLASSIFICATION:"update:classification",DELETE_CLASSIFICATION:"delete:classification",UPDATE_OBJECT_CLASSIFICATIONS:"update:object:classifications",ADD_TO_CLASSIFICATION:"add:to:classification",REMOVE_FROM_CLASSIFICATION:"remove:from:classification",PRESENTATION:"presentation",PRESENTATIONS:"presentations",UPDATE_PRESENTATION:"update:presentation",LEVEL:"level",LEVELS:"levels",UPDATE_LEVEL:"update:level",ADD_TO_LEVEL:"add:to:level",REMOVE_FROM_LEVEL:"remove:from:level",UPDATE_OBJECT_LEVELS:"update:object:levels",AUDIENCE:"audience",AUDIENCES:"audiences",UPDATE_AUDIENCE:"update:audience",DELETE_AUDIENCE:"delete:audience",UPDATE_OBJECT_AUDIENCES:"update:object:audiences",ADD_TO_AUDIENCE:"add:to:audience",REMOVE_FROM_AUDIENCE:"remove:from:audience",PLAYLIST:"playlist",PLAYLISTS:"playlists",UPDATE_PLAYLIST:"update:playlist",DELETE_PLAYLIST:"delete:playlist",PLAYLIST_VIDEOS:"playlist:videos",REORDER_PLAYLIST_VIDEOS:"reorder:playlist:videos",REMOVE_PLAYLIST_VIDEO:"remove:playlist:video",VIDEO:"video",SERIES:"series",SERIES_BY_ID:"series:by:id",UPDATE_SERIES:"update:series",CURRENT_USER:"current:user",UPLOAD_IMAGE:"upload:image",LOCALE:"locale",PHRASES:"PHRASES"},o={CURATOR_LAYOUT:"CuratorLayout"},s={COMPANIES:"companies:application",CUSTOMERS:"customers:application",DOMAIN_OPTIONS:"domain:options:application",PEOPLE:"people:application",PLAYLISTS:"playlists:application",SERIES:"series:application",SUBJECTS:"subjects:application",THEMES:"themes:application",VIDEOS:"videos:application",RELEASE_NOTES:"release:notes:application"},c={IMAGE_UPLOAD:"image:upload:data:service",SUBJECT:"subject:data:service",LANGUAGE:"language:data:service"},l={SUBJECT:"SubjectDataService",LANGUAGE:"LanguageDataService"},u=n(0),p=n.n(u),f=n(29),d=n(1);const m={debounce:(e,t,n)=>d.debounce(e,t,n),throttle:(e,t,n)=>d.throttle(e,t,n),isFunction:e=>d.isFunction(e),useIdentity:()=>d.identity,memoize:(e,t)=>d.memoize(e,t)};var h=n(53),g=n(6),y=n(45);class v extends y.a{isReactComponent(e){return u&&u.isValidElement(e)}showChildView(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}showChildReactComponent(e,t){this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",()=>this.renderChildReactComponent(e,t))}renderChildReactComponent(e,t){const n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),h.render(t,r[0],()=>n.trigger("show")),this.listenToOnce(this,"unmount:"+e,()=>h.unmountComponentAtNode(r[0])),this.listenToOnce(this,"before:destroy",()=>h.unmountComponentAtNode(r[0])))}wrapWithStore(e){return u.createElement(g.Provider,{store:this.options.store},e)}}const b="top:nav",S="left:nav",E="content",C="popup",O="alert";var A=n(200),I=n.n(A),T=n(54),j=n.n(T);function L(e){return(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})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var a=P(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(i,e);var t,n,r,a=_(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).childComponents={},t}return t=i,r=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=[];return Object.keys(e).forEach((function(t){n.push("".concat(t,":").concat(e[t]))})),n.length&&(n.sort(),t+=":".concat(n.join(":"))),t}}],(n=[{key:"regions",value:function(){return{layout:".layout-region"}}},{key:"getChildComponents",value:function(){return{topNav:{component:this.childComponents[b],className:j.a.topNavRegion},leftNav:{component:this.childComponents[S],className:"py-3 ".concat(j.a.leftNavRegion)},content:{component:this.childComponents[E],className:"position-relative container py-3"},popup:{component:this.childComponents[C]},alert:{component:this.childComponents[O]}}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"renderTopNav",value:function(){m.isFunction(this.options.getTopNavView)&&(this.childComponents[b]=this.options.getTopNavView(f.AppLinkHelper.getCurrentAppLink()))}},{key:"hideLeftNav",value:function(){this.unsetRegion(S)}},{key:"closePopup",value:function(){this.unsetRegion(C)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderTopNav(),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());k(P(i.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(u.createElement(V,Object.assign({},e))))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"CuratorLayoutView"}},{key:"template",get:function(){return I.a}},{key:"className",get:function(){return"container-fluid ".concat(j.a.curatorLayout)}}])&&w(t.prototype,n),r&&w(t,r),i}(v),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},M=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},U=function(e,t){return"".concat(e).concat(t?" ".concat(t):"")},F=function(e){var t=e.topNav,n=e.leftNav,r=e.content,a=e.popup,i=e.alert;return u.createElement(u.Fragment,null,u.createElement("div",{className:"position-relative"},!!t.component&&u.createElement(M,{className:U("top-nav-region",t.className)},t.component),!!n.component&&u.createElement(M,{className:U("left-nav-region",n.className)},n.component),!!r.component&&u.createElement("div",{className:"content-container"},u.createElement(M,{className:U("content-region",r.className)},r.component))),!!a.component&&u.createElement(M,{className:U("popup-region",a.className)},a.component),!!i.component&&u.createElement(M,{className:U("alert-region",i.className)},i.component))},V=function(e){var t=e.provider,n=R(e,["provider"]);return t?u.createElement(t,null,u.createElement(F,Object.assign({},n))):u.createElement(F,Object.assign({},n))},B=n(8);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var a=G(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(i,e);var t,n,r,a=W(i);function i(){return J(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(B.a.SHELL,f.EventNames.ROUTING_END,this.updateNav)}},{key:"updateNav",value:function(){var e=this,t=f.AppLinkHelper.getCurrentAppLink().application;if(t!==this.currentApplication){this.currentApplication=t;var n=this.options.navItemMappings[t];if(n){var r=document.querySelector(this.options.navSelector);r&&r.children&&H(r.children).forEach((function(t){var r=t.querySelector("a");r&&(r.classList.remove(e.options.currentItemClassName),r.text===n&&r.classList.add(e.options.currentItemClassName))}))}}}},{key:"name",get:function(){return"CuratorAppNavService"}}])&&K(t.prototype,n),r&&K(t,r),i}(f.Service),X=n(69),ee=n(7),te=function(e){var t="/api/master/v2/companies";return e?"".concat(t,"?cursor=").concat(e):t},ne=function(e){return"/api/master/v2/objects/".concat(e)},re=function(){return"/api/master/v2/companies"},ae=function(e){return"/api/master/v2/objects/".concat(e)},ie="companies",oe="company",se="update:company",ce=function(e){return{key:"".concat(ie).concat(e?":".concat(e):""),url:te(e)}},le=function(e){return{key:"".concat(oe,":").concat(e),url:ne(e)}},ue=function(e,t,n){return{key:oe,url:re(),data:e,type:ee.a.POST,success:t,error:n,invalidationKeys:[ie]}},pe=function(e,t,n){return{key:"".concat(se,":").concat(e),url:ae(e),data:t,type:ee.a.PUT,always:n}},fe=n(31),de=n.n(fe),me=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===he}(e)}(e)};var he="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ge(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ve((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function ye(e,t,n){return e.concat(t).map((function(e){return ge(e,n)}))}function ve(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||ye,n.isMergeableObject=n.isMergeableObject||me;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=ge(e[t],n)})),Object.keys(t).forEach((function(a){n.isMergeableObject(t[a])&&e[a]?r[a]=ve(e[a],t[a],n):r[a]=ge(t[a],n)})),r}(e,t,n):ge(t,n)}ve.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ve(e,n,t)}),{})};var be=ve,Se=n(15),Ee=Se.a.Symbol,Ce=Object.prototype,Oe=Ce.hasOwnProperty,Ae=Ce.toString,Ie=Ee?Ee.toStringTag:void 0;var Te=function(e){var t=Oe.call(e,Ie),n=e[Ie];try{e[Ie]=void 0;var r=!0}catch(e){}var a=Ae.call(e);return r&&(t?e[Ie]=n:delete e[Ie]),a},je=Object.prototype.toString;var Le=function(e){return je.call(e)},we=Ee?Ee.toStringTag:void 0;var ke=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":we&&we in Object(e)?Te(e):Le(e)};var xe=function(e,t){return function(n){return e(t(n))}},_e=xe(Object.getPrototypeOf,Object);var Ne=function(e){return null!=e&&"object"==typeof e},Pe=Function.prototype,De=Object.prototype,Re=Pe.toString,Me=De.hasOwnProperty,Ue=Re.call(Object);var Fe=function(e){if(!Ne(e)||"[object Object]"!=ke(e))return!1;var t=_e(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Ue};var Ve=function(){this.__data__=[],this.size=0};var Be=function(e,t){return e===t||e!=e&&t!=t};var ze=function(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1},He=Array.prototype.splice;var qe=function(e){var t=this.__data__,n=ze(t,e);return!(n<0)&&(n==t.length-1?t.pop():He.call(t,n,1),--this.size,!0)};var Je=function(e){var t=this.__data__,n=ze(t,e);return n<0?void 0:t[n][1]};var $e=function(e){return ze(this.__data__,e)>-1};var Ke=function(e,t){var n=this.__data__,r=ze(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=Ve,Ye.prototype.delete=qe,Ye.prototype.get=Je,Ye.prototype.has=$e,Ye.prototype.set=Ke;var We=Ye;var Ze=function(){this.__data__=new We,this.size=0};var Ge=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Qe=function(e){return this.__data__.get(e)};var Xe=function(e){return this.__data__.has(e)};var et=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var tt,nt=function(e){if(!et(e))return!1;var t=ke(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},rt=Se.a["__core-js_shared__"],at=(tt=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"";var it=function(e){return!!at&&at in e},ot=Function.prototype.toString;var st=function(e){if(null!=e){try{return ot.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ct=/^\[object .+?Constructor\]$/,lt=Function.prototype,ut=Object.prototype,pt=lt.toString,ft=ut.hasOwnProperty,dt=RegExp("^"+pt.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var mt=function(e){return!(!et(e)||it(e))&&(nt(e)?dt:ct).test(st(e))};var ht=function(e,t){return null==e?void 0:e[t]};var gt=function(e,t){var n=ht(e,t);return mt(n)?n:void 0},yt=gt(Se.a,"Map"),vt=gt(Object,"create");var bt=function(){this.__data__=vt?vt(null):{},this.size=0};var St=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Et=Object.prototype.hasOwnProperty;var Ct=function(e){var t=this.__data__;if(vt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Et.call(t,e)?t[e]:void 0},Ot=Object.prototype.hasOwnProperty;var At=function(e){var t=this.__data__;return vt?void 0!==t[e]:Ot.call(t,e)};var It=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vt&&void 0===t?"__lodash_hash_undefined__":t,this};function Tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tt.prototype.clear=bt,Tt.prototype.delete=St,Tt.prototype.get=Ct,Tt.prototype.has=At,Tt.prototype.set=It;var jt=Tt;var Lt=function(){this.size=0,this.__data__={hash:new jt,map:new(yt||We),string:new jt}};var wt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var kt=function(e,t){var n=e.__data__;return wt(t)?n["string"==typeof t?"string":"hash"]:n.map};var xt=function(e){var t=kt(this,e).delete(e);return this.size-=t?1:0,t};var _t=function(e){return kt(this,e).get(e)};var Nt=function(e){return kt(this,e).has(e)};var Pt=function(e,t){var n=kt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dt.prototype.clear=Lt,Dt.prototype.delete=xt,Dt.prototype.get=_t,Dt.prototype.has=Nt,Dt.prototype.set=Pt;var Rt=Dt;var Mt=function(e,t){var n=this.__data__;if(n instanceof We){var r=n.__data__;if(!yt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rt(r)}return n.set(e,t),this.size=n.size,this};function Ut(e){var t=this.__data__=new We(e);this.size=t.size}Ut.prototype.clear=Ze,Ut.prototype.delete=Ge,Ut.prototype.get=Qe,Ut.prototype.has=Xe,Ut.prototype.set=Mt;var Ft=Ut;var Vt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Bt=function(){try{var e=gt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var zt=function(e,t,n){"__proto__"==t&&Bt?Bt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ht=Object.prototype.hasOwnProperty;var qt=function(e,t,n){var r=e[t];Ht.call(e,t)&&Be(r,n)&&(void 0!==n||t in e)||zt(e,t,n)};var Jt=function(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),a?zt(n,s,c):qt(n,s,c)}return n};var $t=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Kt=function(e){return Ne(e)&&"[object Arguments]"==ke(e)},Yt=Object.prototype,Wt=Yt.hasOwnProperty,Zt=Yt.propertyIsEnumerable,Gt=Kt(function(){return arguments}())?Kt:function(e){return Ne(e)&&Wt.call(e,"callee")&&!Zt.call(e,"callee")},Qt=Array.isArray,Xt=n(48),en=/^(?:0|[1-9]\d*)$/;var tn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&en.test(e))&&e>-1&&e%1==0&&e<t};var nn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},rn={};rn["[object Float32Array]"]=rn["[object Float64Array]"]=rn["[object Int8Array]"]=rn["[object Int16Array]"]=rn["[object Int32Array]"]=rn["[object Uint8Array]"]=rn["[object Uint8ClampedArray]"]=rn["[object Uint16Array]"]=rn["[object Uint32Array]"]=!0,rn["[object Arguments]"]=rn["[object Array]"]=rn["[object ArrayBuffer]"]=rn["[object Boolean]"]=rn["[object DataView]"]=rn["[object Date]"]=rn["[object Error]"]=rn["[object Function]"]=rn["[object Map]"]=rn["[object Number]"]=rn["[object Object]"]=rn["[object RegExp]"]=rn["[object Set]"]=rn["[object String]"]=rn["[object WeakMap]"]=!1;var an=function(e){return Ne(e)&&nn(e.length)&&!!rn[ke(e)]};var on=function(e){return function(t){return e(t)}},sn=n(27),cn=sn.a&&sn.a.isTypedArray,ln=cn?on(cn):an,un=Object.prototype.hasOwnProperty;var pn=function(e,t){var n=Qt(e),r=!n&&Gt(e),a=!n&&!r&&Object(Xt.a)(e),i=!n&&!r&&!a&&ln(e),o=n||r||a||i,s=o?$t(e.length,String):[],c=s.length;for(var l in e)!t&&!un.call(e,l)||o&&("length"==l||a&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tn(l,c))||s.push(l);return s},fn=Object.prototype;var dn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fn)},mn=xe(Object.keys,Object),hn=Object.prototype.hasOwnProperty;var gn=function(e){if(!dn(e))return mn(e);var t=[];for(var n in Object(e))hn.call(e,n)&&"constructor"!=n&&t.push(n);return t};var yn=function(e){return null!=e&&nn(e.length)&&!nt(e)};var vn=function(e){return yn(e)?pn(e):gn(e)};var bn=function(e,t){return e&&Jt(t,vn(t),e)};var Sn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},En=Object.prototype.hasOwnProperty;var Cn=function(e){if(!et(e))return Sn(e);var t=dn(e),n=[];for(var r in e)("constructor"!=r||!t&&En.call(e,r))&&n.push(r);return n};var On=function(e){return yn(e)?pn(e,!0):Cn(e)};var An=function(e,t){return e&&Jt(t,On(t),e)},In=n(202);var Tn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var jn=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i};var Ln=function(){return[]},wn=Object.prototype.propertyIsEnumerable,kn=Object.getOwnPropertySymbols,xn=kn?function(e){return null==e?[]:(e=Object(e),jn(kn(e),(function(t){return wn.call(e,t)})))}:Ln;var _n=function(e,t){return Jt(e,xn(e),t)};var Nn=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e},Pn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Nn(t,xn(e)),e=_e(e);return t}:Ln;var Dn=function(e,t){return Jt(e,Pn(e),t)};var Rn=function(e,t,n){var r=t(e);return Qt(e)?r:Nn(r,n(e))};var Mn=function(e){return Rn(e,vn,xn)};var Un=function(e){return Rn(e,On,Pn)},Fn=gt(Se.a,"DataView"),Vn=gt(Se.a,"Promise"),Bn=gt(Se.a,"Set"),zn=gt(Se.a,"WeakMap"),Hn=st(Fn),qn=st(yt),Jn=st(Vn),$n=st(Bn),Kn=st(zn),Yn=ke;(Fn&&"[object DataView]"!=Yn(new Fn(new ArrayBuffer(1)))||yt&&"[object Map]"!=Yn(new yt)||Vn&&"[object Promise]"!=Yn(Vn.resolve())||Bn&&"[object Set]"!=Yn(new Bn)||zn&&"[object WeakMap]"!=Yn(new zn))&&(Yn=function(e){var t=ke(e),n="[object Object]"==t?e.constructor:void 0,r=n?st(n):"";if(r)switch(r){case Hn:return"[object DataView]";case qn:return"[object Map]";case Jn:return"[object Promise]";case $n:return"[object Set]";case Kn:return"[object WeakMap]"}return t});var Wn=Yn,Zn=Object.prototype.hasOwnProperty;var Gn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Zn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Qn=Se.a.Uint8Array;var Xn=function(e){var t=new e.constructor(e.byteLength);return new Qn(t).set(new Qn(e)),t};var er=function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tr=/\w*$/;var nr=function(e){var t=new e.constructor(e.source,tr.exec(e));return t.lastIndex=e.lastIndex,t},rr=Ee?Ee.prototype:void 0,ar=rr?rr.valueOf:void 0;var ir=function(e){return ar?Object(ar.call(e)):{}};var or=function(e,t){var n=t?Xn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var sr=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Xn(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return er(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return or(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return nr(e);case"[object Set]":return new r;case"[object Symbol]":return ir(e)}},cr=Object.create,lr=function(){function e(){}return function(t){if(!et(t))return{};if(cr)return cr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ur=function(e){return"function"!=typeof e.constructor||dn(e)?{}:lr(_e(e))};var pr=function(e){return Ne(e)&&"[object Map]"==Wn(e)},fr=sn.a&&sn.a.isMap,dr=fr?on(fr):pr;var mr=function(e){return Ne(e)&&"[object Set]"==Wn(e)},hr=sn.a&&sn.a.isSet,gr=hr?on(hr):mr,yr={};yr["[object Arguments]"]=yr["[object Array]"]=yr["[object ArrayBuffer]"]=yr["[object DataView]"]=yr["[object Boolean]"]=yr["[object Date]"]=yr["[object Float32Array]"]=yr["[object Float64Array]"]=yr["[object Int8Array]"]=yr["[object Int16Array]"]=yr["[object Int32Array]"]=yr["[object Map]"]=yr["[object Number]"]=yr["[object Object]"]=yr["[object RegExp]"]=yr["[object Set]"]=yr["[object String]"]=yr["[object Symbol]"]=yr["[object Uint8Array]"]=yr["[object Uint8ClampedArray]"]=yr["[object Uint16Array]"]=yr["[object Uint32Array]"]=!0,yr["[object Error]"]=yr["[object Function]"]=yr["[object WeakMap]"]=!1;var vr=function e(t,n,r,a,i,o){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=i?r(t,a,i,o):r(t)),void 0!==s)return s;if(!et(t))return t;var p=Qt(t);if(p){if(s=Gn(t),!c)return Tn(t,s)}else{var f=Wn(t),d="[object Function]"==f||"[object GeneratorFunction]"==f;if(Object(Xt.a)(t))return Object(In.a)(t,c);if("[object Object]"==f||"[object Arguments]"==f||d&&!i){if(s=l||d?{}:ur(t),!c)return l?Dn(t,An(s,t)):_n(t,bn(s,t))}else{if(!yr[f])return i?t:{};s=sr(t,f,c)}}o||(o=new Ft);var m=o.get(t);if(m)return m;o.set(t,s),gr(t)?t.forEach((function(a){s.add(e(a,n,r,a,t,o))})):dr(t)&&t.forEach((function(a,i){s.set(i,e(a,n,r,i,t,o))}));var h=u?l?Un:Mn:l?keysIn:vn,g=p?void 0:h(t);return Vt(g||t,(function(a,i){g&&(a=t[i=a]),qt(s,i,e(a,n,r,i,t,o))})),s};var br=function(e){return vr(e,4)};var Sr=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a};var Er=function(e){return"symbol"==typeof e||Ne(e)&&"[object Symbol]"==ke(e)};function Cr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Cr.Cache||Rt),n}Cr.Cache=Rt;var Or=Cr;var Ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,Tr=function(e){var t=Or(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ar,(function(e,n,r,a){t.push(r?a.replace(Ir,"$1"):n||e)})),t}));var jr=function(e){if("string"==typeof e||Er(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Lr=Ee?Ee.prototype:void 0,wr=Lr?Lr.toString:void 0;var kr=function e(t){if("string"==typeof t)return t;if(Qt(t))return Sr(t,e)+"";if(Er(t))return wr?wr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var xr=function(e){return null==e?"":kr(e)};var _r=function(e){return Qt(e)?Sr(e,jr):Er(e)?[e]:Tn(Tr(xr(e)))};var Nr=function(e,t){},Pr=n(60),Dr=n(61),Rr=n.n(Dr);var Mr=function(e){return vr(e,5)};function Ur(){return(Ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Vr(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function Br(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zr=function(e){return"function"==typeof e},Hr=function(e){return null!==e&&"object"==typeof e},qr=function(e){return String(Math.floor(Number(e)))===e},Jr=function(e){return"[object String]"===Object.prototype.toString.call(e)},$r=function(e){return 0===u.Children.count(e)},Kr=function(e){return Hr(e)&&zr(e.then)};function Yr(e,t,n,r){void 0===r&&(r=0);for(var a=_r(t);e&&r<a.length;)e=e[a[r++]];return void 0===e?n:e}function Wr(e,t,n){for(var r=br(e),a=r,i=0,o=_r(t);i<o.length-1;i++){var s=o[i],c=Yr(e,o.slice(0,i+1));if(c&&(Hr(c)||Array.isArray(c)))a=a[s]=br(c);else{var l=o[i+1];a=a[s]=qr(l)&&Number(l)>=0?[]:{}}}return(0===i?e:a)[o[i]]===n?e:(void 0===n?delete a[o[i]]:a[o[i]]=n,0===i&&void 0===n&&delete r[o[i]],r)}function Zr(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var a=0,i=Object.keys(e);a<i.length;a++){var o=i[a],s=e[o];Hr(s)?n.get(s)||(n.set(s,!0),r[o]=Array.isArray(s)?[]:{},Zr(s,t,n,r[o])):r[o]=t}return r}var Gr=Object(u.createContext)(void 0),Qr=Gr.Provider,Xr=Gr.Consumer;function ea(){var e=Object(u.useContext)(Gr);return e||Nr(!1),e}function ta(e,t){switch(t.type){case"SET_VALUES":return Ur({},e,{values:t.payload});case"SET_TOUCHED":return Ur({},e,{touched:t.payload});case"SET_ERRORS":return Ur({},e,{errors:t.payload});case"SET_STATUS":return Ur({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ur({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ur({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ur({},e,{values:Wr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ur({},e,{touched:Wr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ur({},e,{errors:Wr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ur({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ur({},e,{touched:Zr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ur({},e,{isSubmitting:!1});default:return e}}var na={},ra={};function aa(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,a=void 0===r||r,i=e.validateOnMount,o=void 0!==i&&i,s=e.isInitialValid,c=e.enableReinitialize,l=void 0!==c&&c,p=e.onSubmit,f=Vr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=Ur({validateOnChange:n,validateOnBlur:a,validateOnMount:o,onSubmit:p},f),m=Object(u.useRef)(d.initialValues),h=Object(u.useRef)(d.initialErrors||na),g=Object(u.useRef)(d.initialTouched||ra),y=Object(u.useRef)(d.initialStatus),v=Object(u.useRef)(!1),b=Object(u.useRef)({});Object(u.useEffect)((function(){0}),[]),Object(u.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]);var S=Object(u.useReducer)(ta,{values:d.initialValues,errors:d.initialErrors||na,touched:d.initialTouched||ra,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],C=S[1],O=Object(u.useCallback)((function(e,t){return new Promise((function(n,r){var a=d.validate(e,t);null==a?n(na):Kr(a)?a.then((function(e){n(e||na)}),(function(e){r(e)})):n(a)}))}),[d.validate]),A=Object(u.useCallback)((function(e,t){var n=d.validationSchema,r=zr(n)?n(t):n,a=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var a=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=String(r);!0===Array.isArray(t[a])?n[a]=t[a].map((function(t){return!0===Array.isArray(t)||Fe(t)?e(t):""!==t?t:void 0})):Fe(t[a])?n[a]=e(t[a]):n[a]=""!==t[a]?t[a]:void 0}return n}(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){a.then((function(){e(na)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Wr(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(a>=n.length)break;i=n[a++]}else{if((a=n.next()).done)break;i=a.value}var o=i;Yr(t,o.path)||(t=Wr(t,o.path,o.message))}}return t}(n)):t(n)}))}))}),[d.validationSchema]),I=Object(u.useCallback)((function(e,t){return new Promise((function(n){return n(b.current[e].validate(t))}))}),[]),T=Object(u.useCallback)((function(e){var t=Object.keys(b.current).filter((function(e){return zr(b.current[e].validate)})),n=t.length>0?t.map((function(t){return I(t,Yr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=Wr(e,t[r],n)),e}),{})}))}),[I]),j=Object(u.useCallback)((function(e){return Promise.all([T(e),d.validationSchema?A(e):{},d.validate?O(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return be.all([t,n,r],{arrayMerge:oa})}))}),[d.validate,d.validationSchema,T,O,A]),L=ca((function(e){return void 0===e&&(e=E.values),Object(Pr.unstable_runWithPriority)(Pr.LowPriority,(function(){return j(e).then((function(e){return v.current&&C({type:"SET_ERRORS",payload:e}),e}))}))})),w=ca((function(e){return void 0===e&&(e=E.values),C({type:"SET_ISVALIDATING",payload:!0}),j(e).then((function(e){return v.current&&(C({type:"SET_ISVALIDATING",payload:!1}),de()(E.errors,e)||C({type:"SET_ERRORS",payload:e})),e}))}));Object(u.useEffect)((function(){o&&!0===v.current&&L(d.initialValues)}),[d.initialValues,o,L]);var k=Object(u.useCallback)((function(e){var t=e&&e.values?e.values:m.current,n=e&&e.errors?e.errors:h.current?h.current:d.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:d.initialTouched||{},a=e&&e.status?e.status:y.current?y.current:d.initialStatus;m.current=t,h.current=n,g.current=r,y.current=a,C({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[d.initialErrors,d.initialStatus,d.initialTouched]);Object(u.useEffect)((function(){l&&!0===v.current&&!de()(m.current,d.initialValues)&&(m.current=d.initialValues,k())}),[l,d.initialValues,k]),Object(u.useEffect)((function(){l&&!0===v.current&&!de()(h.current,d.initialErrors)&&(h.current=d.initialErrors||na,C({type:"SET_ERRORS",payload:d.initialErrors||na}))}),[l,d.initialErrors]),Object(u.useEffect)((function(){l&&!0===v.current&&!de()(g.current,d.initialTouched)&&(g.current=d.initialTouched||ra,C({type:"SET_TOUCHED",payload:d.initialTouched||ra}))}),[l,d.initialTouched]),Object(u.useEffect)((function(){l&&!0===v.current&&!de()(y.current,d.initialStatus)&&(y.current=d.initialStatus,C({type:"SET_STATUS",payload:d.initialStatus}))}),[l,d.initialStatus,d.initialTouched]);var x=ca((function(e){if(zr(b.current[e].validate)){var t=Yr(E.values,e),n=b.current[e].validate(t);return Kr(n)?(C({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),C({type:"SET_ISVALIDATING",payload:!1})}))):(C({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),_=Object(u.useCallback)((function(e,t){var n=t.validate;b.current[e]={validate:n}}),[]),N=Object(u.useCallback)((function(e){delete b.current[e]}),[]),P=ca((function(e){return C({type:"SET_TOUCHED",payload:e}),a?L(E.values):Promise.resolve()})),D=Object(u.useCallback)((function(e){C({type:"SET_ERRORS",payload:e})}),[]),R=ca((function(e){return C({type:"SET_VALUES",payload:e}),n?L(e):Promise.resolve()})),M=Object(u.useCallback)((function(e,t){C({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=ca((function(e,t,r){return void 0===r&&(r=!0),C({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?L(Wr(E.values,e,t)):Promise.resolve()})),F=Object(u.useCallback)((function(e,t){var n,r=t,a=e;if(!Jr(e)){e.persist&&e.persist();var i=e.target,o=i.type,s=i.name,c=i.id,l=i.value,u=i.checked,p=(i.outerHTML,i.options),f=i.multiple;r=t||(s||c),a=/number|range/.test(o)?(n=parseFloat(l),isNaN(n)?"":n):/checkbox/.test(o)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(Yr(E.values,r),u,l):f?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(p):l}r&&U(r,a)}),[U,E.values]),V=Object(u.useCallback)((function(e){if(Jr(e))return function(t){return F(t,e)};F(e)}),[F]),B=ca((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),a&&n?L(E.values):Promise.resolve()})),z=Object(u.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,a=n.id,i=(n.outerHTML,t||(r||a));B(i,!0)}),[B]),H=Object(u.useCallback)((function(e){if(Jr(e))return function(t){return z(t,e)};z(e)}),[z]),q=Object(u.useCallback)((function(e){zr(e)?C({type:"SET_FORMIK_STATE",payload:e}):C({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),J=Object(u.useCallback)((function(e){C({type:"SET_STATUS",payload:e})}),[]),$=Object(u.useCallback)((function(e){C({type:"SET_ISSUBMITTING",payload:e})}),[]),K={resetForm:k,validateForm:w,validateField:x,setErrors:D,setFieldError:M,setFieldTouched:B,setFieldValue:U,setStatus:J,setSubmitting:$,setTouched:P,setValues:R,setFormikState:q},Y=ca((function(){return p(E.values,K)})),W=ca((function(){return C({type:"SUBMIT_ATTEMPT"}),w().then((function(e){if(0===Object.keys(e).length){var t=Y();if(void 0===t)return;return Promise.resolve(t).then((function(){v.current&&C({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(v.current)throw C({type:"SUBMIT_FAILURE"}),e}))}v.current&&C({type:"SUBMIT_FAILURE"})}))})),Z=ca((function(e){e&&e.preventDefault&&zr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&zr(e.stopPropagation)&&e.stopPropagation(),W()})),G=ca((function(e){if(e&&e.preventDefault&&zr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&zr(e.stopPropagation)&&e.stopPropagation(),d.onReset){var t=d.onReset(E.values,K);Kr(t)?t.then(k):k()}else k()})),Q=Object(u.useCallback)((function(e){return{value:Yr(E.values,e),error:Yr(E.errors,e),touched:!!Yr(E.touched,e),initialValue:Yr(m.current,e),initialTouched:!!Yr(g.current,e),initialError:Yr(h.current,e)}}),[E.errors,E.touched,E.values]),X=Object(u.useCallback)((function(e){var t=Hr(e),n=t?e.name:e,r=Yr(E.values,n),a={name:n,value:r,onChange:V,onBlur:H};if(t){var i=e.type,o=e.value,s=e.as,c=e.multiple;"checkbox"===i?void 0===o?a.checked=!!r:(a.checked=!(!Array.isArray(r)||!~r.indexOf(o)),a.value=o):"radio"===i?(a.checked=r===o,a.value=o):"select"===s&&c&&(a.value=a.value||[],a.multiple=!0)}return a}),[H,V,E.values]),ee=Object(u.useMemo)((function(){return!de()(m.current,E.values)}),[E.values]),te=Object(u.useMemo)((function(){return void 0!==s?ee?E.errors&&0===Object.keys(E.errors).length:!1!==s&&zr(s)?s(d):s:E.errors&&0===Object.keys(E.errors).length}),[s,ee,E.errors,d]);return Ur({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:g.current,initialStatus:y.current,handleBlur:H,handleChange:V,handleReset:G,handleSubmit:Z,resetForm:k,setErrors:D,setFormikState:q,setFieldTouched:B,setFieldValue:U,setFieldError:M,setStatus:J,setSubmitting:$,setTouched:P,setValues:R,submitForm:W,validateForm:w,validateField:x,isValid:te,dirty:ee,unregisterField:N,registerField:_,getFieldProps:X,getFieldMeta:Q,validateOnBlur:a,validateOnChange:n,validateOnMount:o})}function ia(e){var t=aa(e),n=e.component,r=e.children,a=e.render;return Object(u.useEffect)((function(){0}),[]),Object(u.createElement)(Qr,{value:t},n?Object(u.createElement)(n,t):a?a(t):r?zr(r)?r(t):$r(r)?null:u.Children.only(r):null)}function oa(e,t,n){var r=e.slice();return t.forEach((function(t,a){if(void 0===r[a]){var i=!1!==n.clone&&n.isMergeableObject(t);r[a]=i?be(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=be(e[a],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var sa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function ca(e){var t=Object(u.useRef)(e);return sa((function(){t.current=e})),Object(u.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function la(e){var t=e.validate,n=e.name,r=e.render,a=e.children,i=e.as,o=e.component,s=Vr(e,["validate","name","render","children","as","component"]),c=ea(),l=(c.validate,c.validationSchema,Vr(c,["validate","validationSchema"]));Object(u.useEffect)((function(){0}),[]);var p=l.registerField,f=l.unregisterField;Object(u.useEffect)((function(){return p(n,{validate:t}),function(){f(n)}}),[p,f,n,t]);var d=l.getFieldProps(Ur({name:n},s)),m=l.getFieldMeta(n),h={field:d,form:l};if(r)return r(Ur({},h,{meta:m}));if(zr(a))return a(Ur({},h,{meta:m}));if(o){if("string"==typeof o){var g=s.innerRef,y=Vr(s,["innerRef"]);return Object(u.createElement)(o,Ur({ref:g},d,y),a)}return Object(u.createElement)(o,Ur({field:d,form:l},s),a)}var v=i||"input";if("string"==typeof v){var b=s.innerRef,S=Vr(s,["innerRef"]);return Object(u.createElement)(v,Ur({ref:b},d,S),a)}return Object(u.createElement)(v,Ur({},d,s),a)}var ua=Object(u.forwardRef)((function(e,t){var n=e.action,r=Vr(e,["action"]),a=n||"#",i=ea(),o=i.handleReset,s=i.handleSubmit;return Object(u.createElement)("form",Object.assign({onSubmit:s,ref:t,onReset:o,action:a},r))}));function pa(e){var t=function(t){return Object(u.createElement)(Xr,null,(function(n){return n||Nr(!1),Object(u.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Rr()(t,e)}ua.displayName="Form";var fa=function(e,t,n){var r=da(e);return r.splice(t,0,n),r},da=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Ur({},e,{length:t+1}))}return[]},ma=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var a=n.props,i=a.name,o=a.validateOnChange,s=a.formik,c=s.setFormikState,l=s.validateForm;c((function(n){var a="function"==typeof r?r:e,o="function"==typeof t?t:e;return Ur({},n,{values:Wr(n.values,i,e(Yr(n.values,i))),errors:r?Wr(n.errors,i,a(Yr(n.errors,i))):n.errors,touched:t?Wr(n.touched,i,o(Yr(n.touched,i))):n.touched})}),(function(){o&&l()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(da(t),[Mr(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=da(e),a=r[t];return r[t]=r[n],r[n]=a,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=da(e),a=r[t];return r.splice(t,1),r.splice(n,0,a),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return fa(n,e,t)}),(function(t){return fa(t,e,null)}),(function(t){return fa(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=da(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Br(n)),n.pop=n.pop.bind(Br(n)),n}Fr(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?da(n):[];return t||(t=r[e]),zr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,a=t.children,i=t.name,o=t.formik,s=(o.validate,o.validationSchema,Ur({},e,{form:Vr(o,["validate","validationSchema"]),name:i}));return n?Object(u.createElement)(n,s):r?r(s):a?"function"==typeof a?a(s):$r(a)?null:u.Children.only(a):null},t}(u.Component);ma.defaultProps={validateOnChange:!0};var ha=pa(function(e){function t(){return e.apply(this,arguments)||this}Fr(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return Yr(this.props.formik.errors,this.props.name)!==Yr(e.formik.errors,this.props.name)||Yr(this.props.formik.touched,this.props.name)!==Yr(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,a=e.children,i=e.name,o=Vr(e,["component","formik","render","children","name"]),s=Yr(n.touched,i),c=Yr(n.errors,i);return s&&c?r?zr(r)?r(c):null:a?zr(a)?a(c):null:t?Object(u.createElement)(t,o,c):c:null},t}(u.Component));(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,a=t.children,i=t.component,o=t.as;t.name;return r&&Nr(!1),i&&r&&Nr(!1),o&&a&&zr(a)&&Nr(!1),i&&a&&zr(a)&&Nr(!1),r&&a&&!$r(a)&&Nr(!1),n}Fr(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):Yr(this.context.values,this.props.name)!==Yr(n.values,this.props.name)||Yr(this.context.errors,this.props.name)!==Yr(n.errors,this.props.name)||Yr(this.context.touched,this.props.name)!==Yr(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,a=e.children,i=e.component,o=(e.shouldUpdate,Vr(e,["validate","name","render","as","children","component","shouldUpdate"])),s=this.context,c=(s.validate,s.validationSchema,Vr(s,["validate","validationSchema"])),l={value:"radio"===o.type||"checkbox"===o.type?o.value:Yr(s.values,t),name:t,onChange:s.handleChange,onBlur:s.handleBlur},p={field:l,meta:{value:Yr(s.values,t),error:Yr(s.errors,t),touched:!!Yr(s.touched,t),initialValue:Yr(s.initialValues,t),initialTouched:!!Yr(s.initialTouched,t),initialError:Yr(s.initialErrors,t)},form:c};if(n)return n(p);if(zr(a))return a(p);if(i){if("string"==typeof i){var f=o.innerRef,d=Vr(o,["innerRef"]);return Object(u.createElement)(i,Ur({ref:f},l,d),a)}return Object(u.createElement)(i,Ur({field:l,form:s},o),a)}var m=r||"input";if("string"==typeof m){var h=o.innerRef,g=Vr(o,["innerRef"]);return Object(u.createElement)(m,Ur({ref:h},l,g),a)}return Object(u.createElement)(m,Ur({},l,o),a)},t}(u.Component)).contextType=Gr;var ga=n(9),ya=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function va(e){const{castInitialValues:t,castValuesOnSubmit:n,initialValues:r,onSubmit:a,resetOnSubmit:i}=e,o=ya(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit","resetOnSubmit"]),s=t&&e.validationSchema?e.validationSchema.cast(function e(t){const n=ga.a.deepClone(t);return Object.keys(n).forEach(t=>{n.hasOwnProperty(t)&&(ga.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])}),n}(r)):r,c={allowInitialSubmit:e.allowInitialSubmit};return u.createElement(ia,Object.assign({enableReinitialize:!0},o,{initialValues:s,onSubmit:(t,{setSubmitting:r,resetForm:o})=>{const s=n&&e.validationSchema?e.validationSchema.cast(t):t;a(s,()=>{i&&o(),r(!1)})},initialStatus:c}),m.isFunction(e.children)?t=>e.children(t):u.Children.count(e.children)?e.children:null)}va.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0};var ba=n(2),Sa=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),Ea=n(3);const Ca={getCustomFormControlClassName(e,t,n,r){let a="form-control";return Yr(t,n)&&Yr(e,n)&&(a+=" is-invalid"),r&&(a+=" "+r),a}};function Oa(e){const{values:t}=ea(),n=t[e.fieldName];return"string"!=typeof n?u.createElement(u.Fragment,null):u.createElement("div",{className:"float-right text-muted"},n.length,"/",e.limit)}var Aa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Ia(e){const{label:t}=e,n=Aa(e,["label"]);return u.createElement(Ea.Form.Group,null,u.createElement("div",{className:"custom-control custom-checkbox"},u.createElement(ja,Object.assign({className:"custom-control-input"},n)),u.createElement(Ea.Form.Label,{className:"custom-control-label",htmlFor:n.id},t)))}var Ta=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function ja(e){const{children:t}=e,n=Ta(e,["children"]);return u.createElement(la,Object.assign({},n),m.isFunction(t)?e=>t(e):u.Children.count(t)?t:null)}function La(e){const{label:t,className:n,showCharacterCounter:r}=e,a=Ta(e,["label","className","showCharacterCounter"]),{errors:i,touched:o}=ea();return"checkbox"===a.type?u.createElement(Ia,Object.assign({},e)):u.createElement(Ea.Form.Group,null,!!t&&u.createElement(Ea.Form.Label,{htmlFor:a.id},t),u.createElement(ja,Object.assign({className:Ca.getCustomFormControlClassName(i,o,a.name,n)},a)),!!r&&!!a.maxLength&&u.createElement(Oa,{fieldName:a.name,limit:a.maxLength}),u.createElement(ha,{name:a.name},e=>u.createElement(Ea.Form.Control.Feedback,{type:"invalid"},e)))}function wa(e){var t;const[n,r]=u.useState(!1);return u.useEffect(()=>{var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?r(!0):r(!1)},[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),u.useEffect(()=>{e.isSubmitting&&r(!1)},[e.isSubmitting]),n}var ka=n(203),xa=n(49),_a=n(22),Na=n(4);const Pa="AlertService",Da="LanguageService";var Ra=n(11),Ma=n(34);class Ua extends _a.a{static get Instance(){return this.instance||(this.instance=new this)}get name(){return Da}setConfig(e){this.polyglot=new ka({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}getPhrase(e,t,n){const r=`${e}.${t}`;if(this.polyglot||Na.c.throw(new Ra.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!Ma.a.isDevelopment){const e=window.trackJs;return e&&e.console.error(`No phrase set for ${r} in language config`),""}Na.c.throw(new Ra.a(`No phrase set for ${r} in language config.`))}if(!n||d.isEmpty(n)){const e=this.cache[r];if(e)return e;const t=this.polyglot.t(r);return this.cache[r]=t,t}const a=d.omit(n,"smartCount"),i={};for(const e in a)i[e]=xa.sanitize(a[e]);d.isNumber(n.smartCount)&&(i.smart_count=n.smartCount);const o=`${r}:${d.values(Object.assign({},i)).join(":")}`,s=this.cache[o];if(s)return s;const c=this.polyglot.t(r,i);return this.cache[o]=c,c}encloseNamespace(e){return(t,n)=>this.getPhrase(e,t,n)}}const Fa=Ua.Instance,Va=u.createContext(""),Ba=u.memo((function(e){const{phrase:t,namespace:n,options:r}=e,a=u.useContext(Va),i=n||a,o=Fa.getPhrase(i,t,r);return u.createElement("span",{dangerouslySetInnerHTML:{__html:o}})}),(e,t)=>e.namespace===t.namespace&&e.phrase===t.phrase&&ga.a.isEqual(e.options,t.options));function za(e){const t=ea(),n=wa(t);return u.useEffect(()=>{function e(e){13===e.keyCode&&n&&t.validateForm().then(e=>{Object.keys(e).length||t.submitForm()})}return window.addEventListener("keypress",e),()=>window.removeEventListener("keypress",e)},[n]),u.createElement(Ea.Button,{variant:e.variant||"primary",type:"submit",disabled:!n},t.isSubmitting?u.createElement(Ea.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?u.createElement(u.Fragment,null,e.submitText):u.createElement(Ba,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}function Ha(e){var t=ea();return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this company",autoFocus:!0}),u.createElement(za,{isNew:e.isNew}))}function qa(e){return u.createElement(va,{initialValues:e.company,validationSchema:Sa,onSubmit:e.saveCompany},u.createElement(Ha,{isNew:!(e.company&&e.company.id)}))}function Ja(e){var t=Object(g.useDispatch)(),n=X.useBasicFetch(le(e.id));return u.createElement(u.Fragment,null,!!n.data&&u.createElement(qa,{company:n.data,saveCompany:function(n,r){return X.fetch(t,pe(e.id,n,r))}}))}function $a(){var e=Object(g.useDispatch)();return u.createElement(qa,{saveCompany:function(t,n){X.fetch(e,ue(t,(function(e){n(),f.AppLinkHelper.trigger({application:s.PEOPLE,action:a.Companies.EDIT_COMPANY,args:[e.id]})}),n))}})}var Ka,Ya=n(204);!function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(Ka||(Ka={}));const Wa={isNumber:e=>Wa.isType(e,"number"),isString:e=>Wa.isType(e,"string"),isType:(e,t)=>typeof e===t};var Za,Ga=n(21),Qa=n.n(Ga);function Xa(e,t){return ga.a.isObject(e)&&e.hasOwnProperty(t)&&Wa.isString(e[t])}function ei(e,t,n){return({value:r})=>{if(r.length||n(),!(r.length<e.activationLength)){if(e.local){const n=m.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(r,e.local):function(e,t,n){const r=e.trim().toLowerCase();return r.length?t.filter(e=>!(!Xa(e,n)||!Wa.isString(e[n]))&&e[n].trim().toLowerCase().includes(r)):[]}(r,e.local,e.valueKey);t(e=>Object.assign(Object.assign({},e),{[Za.Local]:n}))}e.getRemoteUrl&&function(e,t,n,r){const a=m.isFunction(e)&&e(t);a&&X.ajaxRequest({resource:a,type:ee.a.GET,success:n,error:()=>{},headers:r})}(e.getRemoteUrl,r,n=>t(t=>Object.assign(Object.assign({},t),{[Za.Remote]:m.isFunction(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n})),e.requestHeaders)}}}function ti(e,t,n,r,a,i){const o=t=>e[t]||[],s=t?o(Za.Recent):[],c=o(Za.Local),l=o(Za.Remote),u=[];s.length&&u.push({title:n,data:s});let p=[...c,...l];return p.length?(Number.isInteger(i)&&p.length>i&&(p=p.slice(0,i)),m.isFunction(a)?u.push(...a(p)):u.push({title:r,data:p}),u):u}function ni(e){return e.data}function ri(e){if(e.title)return u.createElement("div",{className:"px-2 pb-1"},u.createElement("strong",null,e.title))}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote"}(Za||(Za={}));const ai={container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded "+Qa.a.suggestionsContainerOpen,suggestionsList:"list-unstyled m-0",suggestion:"cursor-pointer py-1 px-2",suggestionHighlighted:Qa.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 "+Qa.a.sectionContainer};function ii(e={}){return Object.assign(ai,e)}var oi=n(35),si=n(83),ci=n.n(si),li=n(84),ui=n.n(li),pi=n(85),fi=n.n(pi),di=n(86),mi=n.n(di),hi=(n(87),n(88),n(89)),gi=n.n(hi),yi=n(90),vi=n.n(yi),bi=n(91),Si=n.n(bi),Ei=n(92),Ci=n.n(Ei),Oi=n(93),Ai=n.n(Oi),Ii=n(94),Ti=n.n(Ii),ji=n(95),Li=n.n(ji),wi=n(96),ki=n.n(wi),xi=n(97),_i=n.n(xi),Ni=n(98),Pi=n.n(Ni),Di=n(99),Ri=n.n(Di),Mi=n(100),Ui=n.n(Mi),Fi=n(101),Vi=n.n(Fi),Bi=n(102),zi=n.n(Bi),Hi=n(103),qi=n.n(Hi),Ji=n(104),$i=n.n(Ji),Ki=n(105),Yi=n.n(Ki),Wi=n(106),Zi=n.n(Wi),Gi=n(107),Qi=n.n(Gi),Xi=n(108),eo=n.n(Xi),to=n(109),no=n.n(to),ro=n(110),ao=n.n(ro),io=n(111),oo=n.n(io),so=(n(112),n(113)),co=n.n(so),lo=n(114),uo=n.n(lo),po=n(115),fo=n.n(po),mo=(n(116),n(117),n(118)),ho=n.n(mo),go=n(119),yo=n.n(go),vo=n(120),bo=n.n(vo),So=n(121),Eo=n.n(So),Co=n(122),Oo=n.n(Co),Ao=n(123),Io=n.n(Ao),To=(n(124),n(125)),jo=n.n(To),Lo=n(126),wo=n.n(Lo),ko=n(127),xo=n.n(ko),_o=n(128),No=n.n(_o),Po=n(129),Do=n.n(Po),Ro=n(130),Mo=n.n(Ro),Uo=n(131),Fo=n.n(Uo),Vo=(n(132),n(133)),Bo=n.n(Vo),zo=n(134),Ho=n.n(zo),qo=n(135),Jo=n.n(qo),$o=n(136),Ko=n.n($o),Yo=n(137),Wo=n.n(Yo),Zo=n(138),Go=n.n(Zo),Qo=n(139),Xo=n.n(Qo),es=n(140),ts=n.n(es),ns=n(141),rs=n.n(ns),as=n(142),is=n.n(as),os=n(143),ss=n.n(os),cs=n(144),ls=n.n(cs),us=n(145),ps=n.n(us),fs=n(146),ds=n.n(fs),ms=n(147),hs=n.n(ms),gs=n(148),ys=n.n(gs),vs=(n(149),n(150),n(151),n(152)),bs=n.n(vs),Ss=(n(153),n(154),n(155),n(156),n(157)),Es=n.n(Ss),Cs=n(158),Os=n.n(Cs),As=(n(159),n(160),n(161),n(162)),Is=n.n(As),Ts=n(163),js=n.n(Ts),Ls=n(164),ws=n.n(Ls),ks=n(165),xs=n.n(ks),_s=n(166),Ns=n.n(_s),Ps=n(167),Ds=n.n(Ps),Rs=n(168),Ms=n.n(Rs),Us=(n(169),n(170),n(171),n(172)),Fs=n.n(Us),Vs=n(173),Bs=n.n(Vs);const zs=[ci.a,fi.a,mi.a,gi.a,Ci.a,Ai.a,Ti.a,Li.a,Si.a,ui.a,ki.a,_i.a,Pi.a,Ri.a,Ui.a,vi.a,Vi.a,zi.a,qi.a,$i.a,Yi.a,Zi.a,oo.a,Qi.a,eo.a,no.a,ao.a,co.a,bo.a,is.a,ls.a,ss.a,ys.a,ps.a,ds.a,hs.a,No.a,Mo.a,Do.a,uo.a,fo.a,wo.a,xo.a,jo.a,ho.a,Eo.a,Ho.a,Jo.a,Oo.a,Io.a,Ko.a,yo.a,Bo.a,Wo.a,Go.a,Fo.a,Xo.a,rs.a,ts.a,Es.a,Os.a,bs.a,ws.a,js.a,Is.a,xs.a,Ds.a,Ns.a,Ms.a,Bs.a,Fs.a];var Hs;!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaption="close-caption",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects",e.Download="download",e.Print="print"}(Hs||(Hs={}));d.extend(oi.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),oi.library.add(...zs);const qs="cv";const Js=class{static get Instance(){return this.instance||(this.instance=new this)}getSvg(e,t={}){const n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}getIcon(e,t){return oi.icon(e,t.iconOptions||{})}faIconLookup(e,t){const{prefix:n=qs}=t;return oi.findIconDefinition({prefix:n,iconName:e})}}.Instance,$s=Hs,Ks={getRandomInt:(e=1e4)=>Math.floor(Math.random()*Math.floor(e))};function Ys(e){const{title:t,placement:n,trigger:r,children:a}=e;return u.createElement(Ea.OverlayTrigger,{placement:n,overlay:u.createElement(Ea.Tooltip,{id:`${t}-${Ks.getRandomInt()}`},t),trigger:r},a)}Ys.defaultProps={trigger:["hover","click","focus"],placement:"top"};const Ws="d-inline-block svg-container",Zs="span";var Gs;function Qs(e){const{svgName:t,className:n=Ws,tagName:r=Zs,size:a=Gs.Standard,onClick:i,title:o,tooltipPlacement:s="right"}=e,c=r,l={dangerouslySetInnerHTML:{__html:Js.getSvg(t)},className:`${n} ${a}`,onClick:m.isFunction(i)?i:null};return o?u.createElement(Ys,{title:o,placement:s},u.createElement(c,Object.assign({},l))):u.createElement(c,Object.assign({},l))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(Gs||(Gs={}));var Xs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function ec(e,t,n,r){let a="form-control";return n||(a+=" "+Qa.a.inputWithoutHighlight),"left"===e&&(a+=" "+Qa.a.inputWithLeftIcon),("right"===e&&!t||"left"===e&&t)&&(a+=" "+Qa.a.inputWithRightIcon),"right"===e&&t&&(a+=" "+Qa.a.inputWithTwoRightIcons),r&&(a+=""+r),a}function tc(e){const t="d-inline-block svg-container";return m.isFunction(e)?t+" cursor-pointer":t}function nc(e){const{onClickSearchIcon:t,searchIconPlacement:n,showClearInputIcon:r,onClickClearInput:a,highlightOnFocus:i,className:o}=e,s=Xs(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className"]),c=()=>u.createElement("div",{className:"d-inline-block"},u.createElement(Qs,{svgName:$s.Search,size:Gs.Standard,onClick:t,className:tc(t)}));return u.createElement("div",{className:"position-relative "+Qa.a.inputContainer},"left"===n&&u.createElement("div",{className:`${Qa.a.iconContainer} ${Qa.a.leftIconContainer}`},u.createElement(c,null)),u.createElement("input",Object.assign({className:ec(n,r,i,o)},s)),("right"===n||!!r)&&u.createElement("div",{className:`${Qa.a.iconContainer} ${Qa.a.rightIconContainer}`},!!r&&u.createElement(()=>u.createElement("div",{className:"d-inline-block text-muted "+Qa.a.clearButton},u.createElement(Qs,{svgName:$s.Close,size:Gs.Standard,onClick:a,className:tc(a)})),null),"right"===n&&u.createElement(c,null)))}const rc=m.isFunction;function ac(e){return e.renderAsForm?u.createElement("form",{onSubmit:e.onSubmit},e.children):u.createElement(u.Fragment,null,e.children)}function ic(e){const t=(n=e.initialSuggestions,r=e.recentSearches,{[Za.Recent]:r,[Za.Local]:n,[Za.Remote]:[]});var n,r;const[a,i]=u.useState(e.initialQuery||""),[o,s]=u.useState(t),c=function(e){const[t,n]=Object(u.useState)(window.matchMedia(e).matches);return Object(u.useEffect)(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const a=()=>n(r.matches);return r.addListener(a),()=>r.removeListener(a)},[e]),t}(Ka.XS);u.useEffect(()=>{const t=e.initialQuery||"";a!==t&&i(t)},[e.initialQuery]);const l=()=>{s(t)},p=t=>{t.preventDefault(),rc(e.onSubmit)&&e.onSubmit(a)};return u.createElement(ac,{onSubmit:p,renderAsForm:!!e.renderAsForm},u.createElement(Ya,Object.assign({suggestions:ti(o,!a,e.recentSearchHeading||Fa.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:ei(e,s,l),onSuggestionsClearRequested:()=>{e.alwaysRenderSuggestions||l()},onSuggestionSelected:(t,{suggestion:n})=>{e.clearQueryOnSelect&&i(""),e.onSuggestionSelected(n)},getSuggestionValue:t=>e.updateQueryOnSelection?function(e,t){return Xa(t,e)?t[e]:""}(e.valueKey,t):a,renderSuggestion:t=>rc(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return Xa(t,e)?u.createElement(u.Fragment,null,t[e]):u.createElement(u.Fragment,null)}(e.valueKey,t),alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!c,inputProps:{placeholder:e.placeholder||Fa.getPhrase("shared.searchBar","placeholder"),value:a,onChange:(t,{newValue:n})=>{i(n),rc(e.onQueryChange)&&e.onQueryChange(n)},onKeyDown:t=>{8===t.keyCode&&e.onBackspace&&!a&&e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&p,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!a.length,onClickClearInput:()=>{i(""),rc(e.onClickClearInput)&&e.onClickClearInput()}},renderInputComponent:nc,theme:ii(e.theme),multiSection:!0,renderSectionTitle:ri,getSectionSuggestions:ni},e.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:()=>!0}:{})))}ic.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0};var oc,sc=n(13);!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(oc||(oc={}));class cc extends f.Service{constructor(){super(...arguments),this.contextHistory=[]}get name(){return oc.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(B.a.SHELL,f.EventNames.ROUTE,this.setContext)}setContext(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}fromPageLoad(){return 1===this.contextHistory.length}}const lc=new cc;var uc,pc=n(5);!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(uc||(uc={}));const fc="global:analytics",dc=sc.EventVersion.V1;class mc{constructor(e,t,n,r){this.type=e,this.data=t,this.actionContext=n,this.eventVersion=r||dc}isType(e){return e===this.type}enrich(e,t){this.validateKey(e),this[e]=t}get(e){if(e&&this[e])return this[e]}validateKey(e){"type"!==e&&"data"!==e||f.ErrorHelper.throw(new Ra.a(e+" is not a valid key")),this[e]&&f.ErrorHelper.throw(new Ra.a("Event already contains an enrichment named "+e))}}const hc={log(e,t,n,r){pc.Radio.channel(fc).trigger(uc.Inlet,new mc(e,t,n,r))}};function gc(){const{appLink:e}=lc.getCurrentContext();return d.isObject(e)||f.ErrorHelper.throw(new Ra.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function yc(e={}){const{location:t,entity:n,workflowPhase:r=null,descriptor:a=null}=e;return t||f.ErrorHelper.throw(new Ra.a("location must be set.")),n||f.ErrorHelper.throw(new Ra.a("entity must be set.")),{productArea:gc(),location:t,entity:n,descriptor:a,workflowPhase:r}}function vc(){return f.LocationUtils.GetCurrentPath()+f.LocationUtils.GetCurrentQueryString()}const bc={logUserAction(e,t){if(!function(e){return!(!d.isArray(e)||!d.every(e,e=>d.isObject(e)))||!!d.isObject(e)}(e)||!d.isObject(t))return;const{userAction:n,action:r,eventVersion:a}=bc.buildUserActionEvent(t);hc.log(n,e,r,a)},logNavigate(e,t){const n=Object.assign({currentLocation:vc(),appLink:e},t);hc.log(sc.UserAction.Navigate,n)},mergeOptions:(e,t)=>d.extend({},e,t),buildActionContext:(e={})=>yc(e),buildUserActionEvent(e={}){const{actionType:t,eventVersion:n}=e;return{userAction:t,action:yc(e),eventVersion:n}},buildCurrentLocation:()=>vc(),buildSearchEvent:(e,t)=>({data:{query:e},action:yc({entity:sc.EntityType.Video,location:sc.LocationContext.SearchBar,descriptor:t})}),buildInstantSearchEvent(e,t,n){let r;n===sc.SearchQueryType.Series&&(r=sc.EntityType.Series),n===sc.SearchQueryType.Folder&&(r=sc.EntityType.Folder),n===sc.SearchQueryType.Tags&&(r=sc.EntityType.Tag),n===sc.SearchQueryType.Video&&(r=sc.EntityType.Video),n===sc.SearchQueryType.Subjects&&(r=sc.EntityType.Classification);const a={instant:{},query:e};return t.id&&(a.instant.selectedId=t.id),t.name&&(a.instant.selectedName=t.name),{data:a,action:yc({entity:r,location:sc.LocationContext.SearchBar})}},mapInteractionType(e){switch(e){case sc.InteractionType.DragDrop:return sc.InteractionTypeDescriptor.DragDrop;case sc.InteractionType.FileSelect:return sc.InteractionTypeDescriptor.FileSelect;default:return}}};function Sc(e){const{appLink:t,className:n,children:r,tag:a="a"}=e;if(!t)return u.createElement("span",{className:n||""},r);const i=f.AppLinkHelper.getHref(t),o={onClick:n=>{var r;n.preventDefault(),null===(r=e.onClick)||void 0===r||r.call(e,n),e.analyticsData&&e.analyticsOptions&&bc.logUserAction(Object.assign({href:i},e.analyticsData),e.analyticsOptions),f.AppLinkHelper.trigger(t)},href:i,className:n};return u.createElement(a,Object.assign({},o),r)}function Ec(e){var t=e.backToName,n=e.appLink;return u.createElement(Sc,{appLink:n,className:"d-inline-flex align-items-center"},u.createElement(Qs,{svgName:$s.ArrowLeft,size:Gs.Small}),u.createElement("span",{className:"ml-1"},"Back to ".concat(t)))}function Cc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ac,Ic,Tc,jc,Lc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function wc(e){var t=e.selected,n=e.onToggle,r=Lc(e,["selected","onToggle"]),a=Cc(u.useState(t),2),i=a[0],o=a[1];u.useEffect((function(){return o(t)}),[t]);return u.createElement(Ea.Form.Check,Object.assign({type:"checkbox",id:"checkbox-".concat(Ks.getRandomInt()),checked:i,onChange:function(){o(!i),n(!i)}},r))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(Ac||(Ac={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners"}(Ic||(Ic={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(Tc||(Tc={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(jc||(jc={}));const kc=/\/$/,xc={urlBuilder(e,t){const n=d.map(t,(e,t)=>{if(t&&Array.isArray(e)){return e.map(e=>`${t}=${encodeURIComponent(e)}`).join("&")}return t&&void 0!==e?`${t}=${encodeURIComponent(e)}`:""}),r=d.reduce(n,(e,t)=>t?e?`${e}&${t}`:t:e);return r?`${e}?${r}`:e},buildFilter(e){const t=[];if(e.limit&&t.push("limit:"+e.limit),e.cursor&&t.push("page:"+e.cursor),e.before&&t.push("dateCreated:..."+e.before),t.length)return t.join(",")},makeHttps:e=>d.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e,safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith("/")||(n+="/"),t?(n+=t.startsWith("/")?t.slice(1):t,n):n},removeTrailingSlash(e){if("string"==typeof e)return e.replace(kc,"")}};var _c;!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(_c||(_c={}));const Nc={[Ic.Banners]:_c.Banner,[Ic.Thumbnails]:_c.Thumbnail},Pc=e=>"/v1/category-map/"+e,Dc={createUrl:(e,t)=>Dc._createUrl(e,t),createBannerUrl:(e,t,n)=>e&&e.url?Dc._createUrl(e.url,n):Dc._createCategoryMappedUrl(t,n),createResourceImage:(e,t,n)=>Dc._createUrl(e,Object.assign({url:t},n)),Rfc3986EncodeURIComponent:e=>encodeURIComponent(e).replace(/[!'()*]/g,escape),_createCategoryMappedUrl(e,t){const{fallbackBaseUrl:n,fallbackCategoryName:r,type:a}=e,i=xc.safeUrlConcat(n,""+Pc(Nc[a])),o=Object.assign({name:Dc.Rfc3986EncodeURIComponent(r)},t);return Dc._createUrl(i,o)},_createUrl(e,t){if(!e)return;if(ga.a.isEmpty(t))return e;const n=$.param(t),r=-1===e.indexOf("?")?"?":"&";let a=e;return a.endsWith("/")&&(a=a.slice(0,-1)),a+`${r}${n}`},legacyCreateThumbnailUrl(e,t){if(!e)return"";let n;if(!e)return;if(n=e instanceof f.Model?e.get("url"):"string"==typeof e?e:e.url,!n)return;const r=Object.assign({size:Ac.Small,bgColor:"000"},t);return Dc._createUrl(n,r)}},Rc={[Ic.Thumbnails]:{width:1280,height:720},[Ic.Banners]:{width:3600,height:666},[Ic.Covers]:{width:1080,height:1080},[Ic.Posters]:{width:1e3,height:1500},[Ic.TallPosters]:{width:1080,height:1920},[Ic.HeroBanners]:{width:1920,height:640}},Mc=u.createContext(void 0),Uc=({children:e})=>{const[t,n]=u.useState(),[r,a]=u.useState(!1),[i,o]=u.useState(),s={getDataUrl:()=>{const e=t;return n(null),e},setDataUrl:n,imageUploaded:r,getImage:()=>{const e=i;return o(null),a(!1),e},setImage:e=>{o(e),a(!0)}};return u.createElement(Mc.Provider,{value:s},e)},Fc={onFileSelect(e,t,n){if(!t||!t.length)return;const r=new FileReader;r.addEventListener("load",()=>Fc.onReaderLoad(r,e,n)),r.readAsDataURL(t[0])},onReaderLoad(e,t,n){const r=new Image;r.src=e.result;const a=Rc[t].width,i=Rc[t].height;r.addEventListener("load",()=>{Fc.isImageValid(t,r)&&m.isFunction(n)?n(r):alert(`Image too small: minimum dimensions are ${a} x ${i}`)})},isImageValid(e,t){const n=Rc[e].width,r=Rc[e].height;return!(n&&t.width<n)&&!(r&&t.height<r)}},Vc=["pdf"],Bc=["doc","docx","dotx","dot","rtf","docm","odt"],zc=["csv","txt"],Hc=["xls","xlt","xlsx"],qc=["jpg","tif","png","bmp","gif","jpeg"],Jc=["zip","rar"],$c=["ppt","pot","pps","pptx"],Kc=["srt"],Yc={IMAGES:"."+qc.join(",."),RESOURCES:"."+[...Bc,...Hc,...$c,...Vc,...zc,...qc,...Jc].join(",."),SUBTITLES:"."+Kc.join(",.")};var Wc,Zc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Gc(e){var t=e.onFileSelect,n=e.acceptMultiple,r=e.mimeType,a=e.label,i=e.error,o=e.touched,s=Zc(e,["onFileSelect","acceptMultiple","mimeType","label","error","touched"]),c="custom-file-input cursor-pointer";i&&o&&(c+=" is-invalid");var l=Object.assign({type:"file",className:c,onChange:function(e){var n=e.currentTarget.files;n&&n.length&&m.isFunction(t)&&t(n)},autoComplete:"off",value:"",multiple:!!n},r?{accept:r}:{});return u.createElement("div",{className:"form-group"},u.createElement("div",{className:"custom-file"},u.createElement(la,Object.assign({},l,s),e.children),u.createElement(Ea.Form.Label,{className:"custom-file-label",htmlFor:s.id},a)))}function Qc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function el(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tl=(el(Wc={},Ic.Thumbnails,"Thumbnail"),el(Wc,Ic.Banners,"Banner"),el(Wc,Ic.Avatars,"Avatar"),el(Wc,Ic.Logos,"Logo"),el(Wc,Ic.Covers,"Cover"),el(Wc,Ic.Posters,"Poster"),el(Wc,Ic.TallPosters,"Tall Poster"),el(Wc,Ic.HeroBanners,"Hero Banner"),Wc);function nl(e){var t=ea(),n=Yr(null==t?void 0:t.values,e.fieldName),r=u.useContext(Mc),a=r.setDataUrl,i=r.getImage,o=r.imageUploaded,s=Qc(u.useState(!1),2),c=s[0],l=s[1],p=Qc(u.useState(n),2),d=p[0],h=p[1],g=Qc(u.useState(!1),2),y=g[0],v=g[1];function b(t){l(!0),a(t.src),f.AppLinkHelper.trigger({application:e.application,action:e.uploadAction,args:[e.imageType]})}u.useEffect((function(){if(c){var n,r=i();if(r)l(!1),h(r),n=r,m.isFunction(e.setSelectedImage)?e.setSelectedImage(n):t&&t.setFieldValue(e.fieldName,{fileId:n.id,fileIdType:jc.ImageAPIv2})}}),[o]);var S=e.label||tl[e.imageType]||"Image";return u.createElement("div",{className:"form-group"},u.createElement("div",{className:"form-control h-auto py-2"},u.createElement("label",null,S),u.createElement("em",{className:"ml-1 text-muted"},"(Minimum dimensions are ".concat(Rc[e.imageType].width,"px")+" x ".concat(Rc[e.imageType].height,"px)")),u.createElement(Gc,{label:"Choose a ".concat(S.toLowerCase()),name:"image",mimeType:Yc.IMAGES,onFileSelect:function(t){return Fc.onFileSelect(e.imageType,t,b)}}),!!d&&!!d.url&&u.createElement(u.Fragment,null,!y&&u.createElement("div",{className:"pb-2 ".concat(e.imageType===Ic.Banners?"w-100":"w-50")},u.createElement("img",{src:Dc.createUrl(d.url),className:"img img-fluid"})),u.createElement("div",{className:"d-flex justify-content-center"},u.createElement(Qs,{svgName:y?$s.ChevronDown:$s.ChevronUp,size:Gs.Large,className:"svg-container cursor-pointer",onClick:function(){return v(!y)},title:y?"Show image":"Hide image",tooltipPlacement:"top"})))))}function rl(e,t){return t?{application:e.application,action:e.action,args:e.args,params:Object.assign({},e.params,{cursor:t})}:null}function al({appLink:e,cursors:t,className:n}){function r(e){bc.logUserAction({page:e},{location:sc.LocationContext.Pagination,entity:sc.EntityType.Pagination,actionType:sc.UserAction.Navigate})}return u.createElement(Va.Provider,{value:"shared.pagination"},u.createElement("div",{className:n},u.createElement(Sc,{appLink:rl(e,t.previous),className:"btn btn-secondary mr-1 "+(t.previous?"":"disabled"),onClick:()=>r("previous")},u.createElement(Ba,{phrase:"previous"})),u.createElement(Sc,{appLink:rl(e,t.next),className:"btn btn-secondary "+(t.next?"":"disabled"),onClick:()=>r("next")},u.createElement(Ba,{phrase:"next"}))))}function il(e){if(!e.collection)return u.createElement(u.Fragment,null);var t=e.collection,n=t.data,r=t.pagination;return u.createElement(u.Fragment,null,!!n&&u.createElement(vl,{objects:n,getObjectAppLink:e.getObjectAppLink,newObjectAppLink:e.newObjectAppLink,objectName:e.objectName}),!!r&&!!r.cursors&&u.createElement(al,{cursors:r.cursors,appLink:e.collectionAppLink}))}al.defaultProps={className:"py-2"};var ol=n(41),sl=n.n(ol);function cl(e){let t=`${e.className} ${sl.a.iconButton}`;e.children?t+=" "+sl.a.iconWithText:t+=" "+sl.a.iconOnly;const n=u.createElement(Qs,{svgName:e.svgName,className:sl.a.svg});return e.appLink?u.createElement(Sc,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n,e.children):u.createElement("button",{className:t,onClick:function(t){e.analyticsData&&e.analyticsOptions&&bc.logUserAction(e.analyticsData,e.analyticsOptions),m.isFunction(e.onClick)&&e.onClick(t)}},n,e.children)}var ll=n(50),ul=n.n(ll);function pl(e){let t="dropdown-item";return e&&(t+=" "+e),t}function fl(e){if(e.action.appLink)return u.createElement(Sc,{appLink:e.action.appLink,onClick:e.action.onClick,className:pl(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions},e.action.label);return u.createElement("span",{className:"cursor-pointer "+pl(e.action.className),onClick:function(t){e.action.analyticsData&&e.action.analyticsOptions&&bc.logUserAction(e.action.analyticsData,e.action.analyticsOptions),m.isFunction(e.action.onClick)&&e.action.onClick(t)}},e.action.label)}function dl(e){if(!e.actions||!e.actions.length)return u.createElement(u.Fragment,null);let t="dropdown";e.className&&(t+=" "+e.className);const n="actions-dropdown-"+Ks.getRandomInt();let r="dropdown-toggle px-0 "+ul.a.dropdownToggle;return e.dropdownToggleClassName&&(r+=" "+e.dropdownToggleClassName),u.createElement("div",{className:t},u.createElement("button",{className:r,type:"button",id:n,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},u.createElement(Qs,{svgName:$s.More,size:Gs.Small})),u.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":n},e.actions.map((e,t)=>u.createElement(fl,{key:t,action:e}))))}function ml(e){let t="ml-2";e.className&&(t+=" "+e.className);const n=e.showSpinner?u.createElement(Ea.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip)return u.createElement(Ys,{title:e.tooltip},u.createElement("span",null,u.createElement(cl,{appLink:e.appLink,svgName:e.svgName,onClick:e.onClick,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n)));if(e.svgName)return u.createElement(cl,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);if(e.appLink)return u.createElement(Sc,{onClick:e.onClick,appLink:e.appLink,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);return u.createElement("button",{onClick:function(t){e.analyticsData&&e.analyticsOptions&&bc.logUserAction(e.analyticsData,e.analyticsOptions),m.isFunction(e.onClick)&&e.onClick(t)},className:t},n)}function hl(e){const t=[],n=[];e.actions.forEach(e=>{e.button?t.push(e):n.push(e)});let r="d-flex";return e.className&&(r+=" "+e.className),u.createElement("div",{className:r},u.createElement(u.Fragment,null,!!t.length&&u.createElement("span",{className:ul.a.buttonList},t.map((e,t)=>u.createElement(u.Fragment,{key:t},e.label?u.createElement(ml,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},e.label):u.createElement(cl,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})))),e.sortComponent?e.sortComponent:"",!!n.length&&u.createElement(dl,{actions:n,className:!!t.length&&"ml-2",dropdownToggleClassName:e.actionsDropdownClassName})))}function gl(e){var t=e.object,n=e.actions;return u.createElement("div",{className:"d-flex justify-content-between py-2"},!!t&&u.createElement("h5",null,t.name),!!n&&u.createElement("span",null,u.createElement(hl,{actions:n})))}function yl(e){return u.createElement("tr",null,u.createElement("td",null,u.createElement(Sc,{appLink:e.appLink},e.object.name)),u.createElement("td",null))}function vl(e){return u.createElement(Ea.Table,{responsive:!0},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",null,"Name"),u.createElement("th",null,u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(Sc,{appLink:e.newObjectAppLink},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New ".concat(e.objectName))))))),u.createElement("tbody",null,e.objects.map((function(t){return u.createElement(yl,{key:t.id,object:t,appLink:e.getObjectAppLink(t)})}))))}function bl(e){var t=e.objects,n=e.getAppLink,r=e.emptyMessage;return t?t.length?u.createElement("ul",{className:"list-unstyled"},t.map((function(e,t){return u.createElement("li",{key:t,className:"border rounded mb-3"},u.createElement(Sc,{appLink:n(e),className:"d-block p-3"},e.name))}))):u.createElement("div",{className:"py-3"},u.createElement("p",null,r)):u.createElement(u.Fragment,null)}dl.defaultProps={dropdownToggleClassName:"btn btn-light"},bl.defaultProps={emptyMessage:"There is nothing here."};function Sl(e){var t=ea();return u.createElement(La,{as:"select",label:"Rating",name:"rating",id:"rating",value:t.values.rating&&t.values.rating.id,onChange:function(e){return t.setFieldValue("rating",e.target.value?{id:e.target.value}:{})},disabled:e.disabled},u.createElement(u.Fragment,null,u.createElement("option",{value:""},"Please select a rating"),e.ratings.map((function(e,t){return u.createElement("option",{key:t,value:e.id},function(e){return"".concat(e.name).concat(e.code?" (".concat(e.code,")"):"")}(e))}))))}var El={isItemActive:function(e,t){return t||(t=f.AppLinkHelper.getCurrentAppLink()),t.application===e.appLink.application&&(Array.isArray(e.activeActions)?e.activeActions.includes(t.action):t.action===e.appLink.action)}},Cl=function(e){return Object.values(e).every((function(e){return!!e}))},Ol=n(205),Al=n.n(Ol);const Il=/&/g,Tl=/[\W]+/g,jl=/\s+/g,Ll={className:"info-link"},wl={escapeExpression:e=>window.Handlebars.escapeExpression(e),escapeRegExp:e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),slugify(e){if(e)return e.toLowerCase().replace(Il,"and").replace(Tl," ").trim().replace(jl,"-").substr(0,80)},linkifyText(e,t){if(!e)return;const n=t?d.extend({},Ll,t):Ll;return Al()(e,n)},isEqual:(e,t)=>!!e&&!!t&&e.toString()===t.toString(),toTitleCase:e=>e.split(" ").map(e=>(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")).join(" ")};function kl(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _l={find:function(e,t){if(e&&e.children&&e.children.length)for(var n=function e(n){if(wl.isEqual(n.id,t))return n;var r=n.children;if(r&&r.length)for(var a=0;a<r.length;a++){var i=e(r[a]);if(i)return i}},r=0;r<e.children.length;r++){var a=n(e.children[r]);if(a)return a}},getPath:function(e,t){for(var n=[t],r=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},a=r(t);a;){var i=_l.find(e,a);i&&(n=[i].concat(kl(n))),a=i?r(i):null}return n}},Nl=function(e){return e&&e.groups?e.groups.map((function(e){return e.name})):[]};function Pl(e){var t=e.tabs,n=e.isItemActive;return u.createElement(Ea.Nav,{fill:!0,variant:"tabs"},t.map((function(e,t){return u.createElement(Ea.Nav.Item,{key:t},u.createElement(Sc,{appLink:e.appLink,className:(r=n(e),r?"nav-link active":"nav-link")},e.label));var r})))}Pl.defaultProps={isItemActive:El.isItemActive};var Dl=n(23),Rl=n.n(Dl);function Ml(e){var t=e.name,n=e.appLink,r=e.onSelect,a=e.isDisabled,i=e.className,o=e.actions,s=Rl.a.text;return i&&(s+=" ".concat(i)),a?u.createElement("a",{className:"".concat(s," text-muted ").concat(Rl.a.disabled)},t):u.createElement(u.Fragment,null,n?u.createElement(Sc,{appLink:n,className:s},t):u.createElement("a",{onClick:r,className:s},t),!!o&&u.createElement(hl,{className:Rl.a.actions,actions:o}))}function Ul(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vl(e){var t=e.tree,n=e.selectedIds,r=e.getAppLink,a=e.onSelect,i=e.isDisabled,o=e.actions,s=Array.isArray(n)&&n.some((function(e){return wl.isEqual(t.id,e)})),c=u.useMemo((function(){return Array.isArray(n)&&n.some((function(e){return _l.find(t,e)}))}),[t,n]),l=Ul(u.useState(c),2),p=l[0],f=l[1],d=!!t.children&&!!t.children.length,h={name:t.name,appLink:m.isFunction(r)?r(t):null,onSelect:m.isFunction(a)?function(){return a(t)}:null,isDisabled:!!m.isFunction(i)&&i(t),className:s&&Rl.a.selected||c&&Rl.a.parentOfSelected,actions:!!o&&o.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(t)})}))};return u.createElement("li",{className:"position-relative".concat(p?"":" ".concat(Rl.a.collapsed))},u.createElement("div",{className:"position-relative"},u.createElement("span",{className:Rl.a.node},d&&u.createElement(Qs,{svgName:$s.ChevronDown,size:Gs.Small,className:"svg-container ".concat(Rl.a.chevron),onClick:function(){return f(!p)}}),u.createElement(Ml,Object.assign({},h))),p&&u.createElement(zl,Object.assign({},e))))}var Bl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function zl(e){var t=e.tree,n=Bl(e,["tree"]);return t&&t.children?u.createElement("ul",{className:"m-0 p-0 ".concat(Rl.a.tree)},t.children.map((function(e){return u.createElement(Vl,Object.assign({key:e.id,tree:e},n))}))):u.createElement(u.Fragment,null)}var Hl={getChord:function(e,t){return _l.getPath(e,t).map((function(e){return e.name})).join(" -> ")},getState:function(e,t){var n={};return Array.isArray(e)&&e.forEach((function(e){var r,a,i,o=_l.find(t,e);o&&(n=Object.assign((r={},a=e,i=Hl.getChord(t,o),a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r),n))})),n}};function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Kl(e){var t=e.onSelect,n=e.label,r=e.hideCollapseBtn,a=e.collapse,i=e.noSelectionMessage,o=e.isNodeDisabled,s=e.getSelectedItemAppLink,c=$l(e,["onSelect","label","hideCollapseBtn","collapse","noSelectionMessage","isNodeDisabled","getSelectedItemAppLink"]),l=c.tree,p=c.selectedIds,f=ql(u.useState(Hl.getState(p,l)),2),d=f[0],h=f[1];u.useEffect((function(){return h(Hl.getState(p,l))}),[p,l]);var g=ql(u.useState(!!a),2),y=g[0],v=g[1];u.useEffect((function(){return v(!!a)}),[a]);var b=!r||!!n;return u.createElement(u.Fragment,null,b&&u.createElement("div",{className:"pb-2"},!!n&&u.createElement("label",{className:"m-0"},n),!r&&u.createElement("a",{className:"float-right cursor-pointer",onClick:function(){return v(!y)}},y?"Expand":"Collapse")),!y&&u.createElement("div",{className:"py-2 border-top"},u.createElement(zl,Object.assign({onSelect:function(e){return m.isFunction(t)&&t(e)},isDisabled:o},c))),(!ga.a.isEmpty(d)||!!i)&&u.createElement("div",{className:"py-2 border-top"},u.createElement("label",null,"Selected:"),u.createElement("ul",{className:"m-0"},ga.a.isEmpty(d)?u.createElement("li",null,i):Object.keys(d).map((function(e,t){return u.createElement("li",{key:t},m.isFunction(s)?u.createElement(Sc,{appLink:s(e)},d[e]):d[e])})))))}var Yl=n(51);function Wl(e){const{page:t,totalPages:n}=e,r=Wa.isNumber(t)&&t>0&&t<n&&t+1,a=Wa.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),a&&(i.previous=a.toString()),!ga.a.isEmpty(i))return i}const Zl={isEmpty:e=>e&&!(e.data&&e.data.length),length:e=>e&&e.data&&e.data.length,at(e,t){if(e&&e.data&&e.data.length&&!(t>e.data.length))return e.data[t]},get(e,t){if(e&&e.data&&e.data.length)return e.data.find(e=>e.id&&e.id.toString()===t)},flattenCollections(e){if(!e||!e.length)return;let t=[];return e.forEach(e=>{t=[...t,...e.data]}),t},getNextCursor:e=>e.pagination&&e.pagination.cursors&&e.pagination.cursors.next,convertLegacyPaginatedCollection(e){if(e)return{data:e.data,pagination:{cursors:Wl(e.pagination),limit:e.pagination.pageSize}}}};var Gl=function(e){var t="bg-white";return e&&(t+=" ".concat(e)),t};function Ql(e){var t=e.video,n=e.getVideoAppLink,r=e.getVideoActions,a=e.className,i=void 0===a?"":a,o=e.itemNumber,s=m.isFunction(n)&&n(t);return u.createElement("tr",{className:Gl(i)},!!o&&u.createElement("td",null,u.createElement("span",null,o)),u.createElement("td",null,s?u.createElement(Sc,{appLink:s},t.name):t.name),m.isFunction(r)&&u.createElement("td",null,u.createElement("span",{className:"d-flex justify-content-end"},u.createElement(hl,{actions:r(t)}))))}var Xl=Object(Yl.SortableElement)((function(e){return u.createElement(Ql,Object.assign({sortable:!0},e))})),eu=n(30),tu=n.n(eu),nu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},ru=function(e){var t=e.sortable,n=e.getVideoActions;return u.createElement("thead",null,u.createElement("tr",null,!!t&&u.createElement("th",null,"#"),u.createElement("th",null,"Name"),!!n&&u.createElement("th",null)))},au=u.forwardRef((function(e,t){var n=e.videos,r=e.sortable,a=nu(e,["videos","sortable"]);return u.createElement("tbody",{ref:t},!Zl.isEmpty(n)&&n.data.map((function(e,t){return r?u.createElement(Xl,Object.assign({key:e.id,index:t,itemNumber:t+1,video:e,className:tu.a.draggableVideoItem},a)):u.createElement(Ql,Object.assign({video:e},a))})))}));var iu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},ou=Object(Yl.SortableContainer)((function(e){var t=e.forwardedRef,n=iu(e,["forwardedRef"]);return u.createElement(au,Object.assign({sortable:!0,ref:t},n))})),su=function(e){return function(t){var n=t.node,r=e.current;if(r){r.classList.add(tu.a.sortingContainer);var a=r.querySelector(".".concat(tu.a.draggedVideoItem));n.childNodes.forEach((function(e,t){return a.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}}},cu=function(e,t){return function(n){var r=e.current;r&&r.classList.remove(tu.a.sortingContainer),t(n.oldIndex,n.newIndex)}};function lu(e){var t=e.onSortEnd,n=e.emptyMessage,r=iu(e,["onSortEnd","emptyMessage"]),a=u.useRef();return Zl.isEmpty(e.videos)?u.createElement("div",null,n):u.createElement(Ea.Table,{responsive:!0},u.createElement(ru,Object.assign({sortable:!0},e)),u.createElement(ou,Object.assign({forwardedRef:a,onSortStart:su(a),onSortEnd:cu(a,t),lockAxis:"y",lockToContainerEdges:!0,distance:1,helperClass:tu.a.draggedVideoItem,helperContainer:function(){return a.current}},r)))}function uu(e){var t=e.alias,n=e.onDelete;return u.createElement("li",{className:"list-group-item d-flex justify-content-between"},t.name,u.createElement(Qs,{svgName:$s.Delete,onClick:function(){return n(t.id)}}))}function pu(e){var t=e.aliases,n=e.onDelete;return u.createElement("ul",{className:"list-group mb-3"},t?t.map((function(e){return u.createElement(uu,{key:e.id,alias:e,onDelete:n})})):u.createElement("span",null,"Currently there are no aliases for this object."))}lu.defaultProps={emptyMessage:"There are no videos in this list."};var fu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function du(e){const{showSpinner:t,children:n}=e,r=fu(e,["showSpinner","children"]),a=u.useRef(),[i,o]=u.useState({});return u.useEffect(()=>{const{width:e,height:t}=i;if(e&&t)return;const n=a.current,r=n.offsetHeight,s=n.offsetWidth;r&&s&&o({width:s,height:r})}),u.useEffect(()=>{const{width:e,height:t}=i;if(!e||!t)return;const n=a.current;n.style.width=e+1+"px",n.style.height=t+1+"px"},[i]),u.createElement(Ea.Button,Object.assign({ref:a,disabled:t},r),t?u.createElement(Ea.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var mu=Object(ba.object)().shape({name:Object(ba.string)().trim().max(255,"Name is too long").required("Name is required").default("")});function hu(){var e=ea(),t=wa(e);return u.createElement(ua,null,u.createElement(La,{label:"Create an alias",name:"name",id:"name",value:e.values.name,placeholder:"Add an alias"}),u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(du,{showSpinner:e.isSubmitting,type:"submit",disabled:!t},"Add")))}function gu(e){var t=e.onSave;return u.createElement(va,{initialValues:{name:""},validationSchema:mu,onSubmit:function(e,n){t(e,n)},resetOnSubmit:!0},u.createElement(hu,null))}function yu(e){var t=e.onSave,n=e.aliases,r=e.onDelete;return u.createElement("div",{className:"w-50"},u.createElement("h1",null,"Aliases"),u.createElement(pu,{aliases:n,onDelete:r}),u.createElement(gu,{onSave:t}))}var vu=s.COMPANIES,bu=function(e){return{application:vu,action:a.Companies.EDIT_COMPANY,args:[e.id]}},Su=function(e){return f.AppLinkHelper.trigger(bu(e))};function Eu(e){var t=X.useBasicFetch(ce(e.cursor));return u.createElement(u.Fragment,null,u.createElement("div",{className:"pb-3 w-50"},u.createElement(ic,{placeholder:"Search for a company",onSuggestionSelected:Su,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/companies/instant/raw","?q=").concat(e)},activationLength:2})),u.createElement(il,{collection:t&&t.data,collectionAppLink:{application:vu,action:a.Companies.COMPANIES},newObjectAppLink:{application:vu,action:a.Companies.NEW_COMPANY},getObjectAppLink:bu,objectName:"Company"}))}function Cu(e){return(Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ou(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t,n){return t&&Au(e.prototype,t),n&&Au(e,n),e}function Tu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ju(e,t)}function ju(e,t){return(ju=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var a=ku(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return wu(this,n)}}function wu(e,t){return!t||"object"!==Cu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xu=function(e){Tu(n,e);var t=Lu(n);function n(){return Ou(this,n),t.apply(this,arguments)}return Iu(n,[{key:"channelName",get:function(){return s.COMPANIES}},{key:"appRoutes",get:function(){return{"manage/companies(/)":"companies","manage/companies/new(/)":"newCompany","manage/companies/:id(/)":"editCompany"}}}]),n}(f.AppRouter),_u=function(e){Tu(n,e);var t=Lu(n);function n(){return Ou(this,n),t.apply(this,arguments)}return Iu(n,[{key:"companies",value:function(e){var t=e.cursor;this.layout.showChildView(E,u.createElement(Eu,{cursor:t}))}},{key:"newCompany",value:function(){this.layout.showChildView(E,u.createElement($a,null))}},{key:"editCompany",value:function(e){this.layout.showChildView(E,u.createElement(Ja,{id:e}))}},{key:"name",get:function(){return"Companies Application"}},{key:"channelName",get:function(){return s.COMPANIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return xu}}]),n}(f.Application),Nu=n(43);class Pu extends Nu.a{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return;const{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,u.createElement(t,{alerts:r,removeAlert:e=>pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)}))}}class Du extends _a.a{constructor(){super(),this.constructors={},this.destructors={},this.instances={},this.singletonInstances={},this.referenceCounts={}}get name(){return"InstanceManager"}static get Instance(){return this.instance||(this.instance=new this)}registerDataService(e,t){this.validateConstructor(e);const n=e.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new e({dataProvider:this.getInstance(t.dataProvider),cache:this.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService}),this.destructors[n]=()=>{this.instances[n]?this.instances[n].destroy():Na.c.throw(new Ra.a(`Trying to destroy a ${n} instance that has already been destroyed`)),this.releaseInstance(t.dataProvider),this.releaseInstance(t.cache)},this}registerInstance(e,t){this.validateConstructor(e);const n=e.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new e(t),this.destructors[n]=()=>d.isFunction(this.instances[n].destroy)&&this.instances[n].destroy(),this}registerSingleton(e){const t=e.name;return this.singletonInstances[t]=e,this}getInstance(e,t){return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||Na.c.throw(new Ra.a(`${e} was not registered with ${this.name}`)),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",()=>this.releaseInstance(e)),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}releaseInstance(e){if(this.instances[e])return window.setTimeout(()=>{this.referenceCounts[e]--,this.referenceCounts[e]<1&&(this.destructors[e](),delete this.instances[e])},0),this}validateConstructor(e){const t=e.prototype.name;t||Na.c.throw(new Ra.a(`Classes registered with ${this.name} must have a unique name property.`)),this.constructors[t]&&Na.c.throw(new Ra.a(`A class with the name: ${t} has already been registered with ${this.name}`))}}const Ru=Du.Instance;function Mu(e){return function(e){const t=Ru.getInstance(e);return u.useEffect(()=>()=>Ru.releaseInstance(e)),t}(e)}var Uu,Fu,Vu,Bu=n(33),zu=n(28);!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(Uu||(Uu={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(Fu||(Fu={}));class Hu extends _a.a{constructor(e){super(e)}initialize(){this.alertCollection=new Bu.a,this.listenTo(B.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}get name(){return Pa}get defaults(){return{maxAlerts:3}}showAlerts(){const e=pc.Radio.channel(B.a.ALERT);let t={collection:this.alertCollection};this.options.alertViewCtor&&(t=d.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}removeAlert(e){this.alertCollection.remove(e),this.showAlerts()}createAlert(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=d.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new zu.a(e)),this.showAlerts()}clearAllAlerts(){this.alertCollection.reset(null)}success(e){return"string"==typeof e?d.bind(()=>this.createAlert(d.extend({},this.options.defaultSuccessAlert,{message:e})),this):e.useXHR?d.bind((e,t)=>this.createAlert(d.extend({},this.options.defaultSuccessAlert,{message:t})),this):d.bind(()=>this.createAlert(d.extend({},this.options.defaultSuccessAlert,e)),this)}error(e){return"string"==typeof e?d.bind(()=>this.createAlert(d.extend({},this.options.defaultErrorAlert,{message:e})),this):e.useXHR?d.bind(e=>this.createAlert(d.extend({},this.options.defaultErrorAlert,{message:e.message})),this):d.bind(()=>this.createAlert(d.extend({},this.options.defaultErrorAlertIL_DEFAULT,e)),this)}generateUniqueAlertId(){return d.uniqueId("alert_")}}function qu(){const e=Mu(Pa);return{success(t){e.success(t)()},error(t){e.error(t)()},warning(t){e.createAlert({type:Uu.Warning,heading:Fu.Warning,message:t})}}}function Ju(){return u.createElement("div",{className:"text-center p-5"},u.createElement(Ea.Spinner,{as:"div",animation:"border",role:"status"}))}function $u(e){var t;const n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((e,t)=>u.createElement(ml,Object.assign({key:t},e))):u.createElement(u.Fragment,null);return u.createElement(Ea.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&u.createElement(Ea.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},u.createElement(Ea.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?u.createElement(Ju,null):u.createElement(Ea.Modal.Body,{className:e.bodyClassName},e.children))}!function(e){e.Subject="subject",e.Curriculum="curriculum"}(Vu||(Vu={})),$u.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:""};var Ku=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function Yu({buttons:e}){return u.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},e.map((e,t)=>((e,t)=>{const{buttonText:n,type:r="button",isSpinnerButton:a,showSpinner:i=!1,className:o}=e,s=Ku(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),c=Object.assign({key:t,type:r,className:"ml-2"+(o?" "+o:"")},s);return a?u.createElement(du,Object.assign({showSpinner:i},c),n):u.createElement(Ea.Button,Object.assign({},c),n)})(e,t)))}const Wu=Fa.encloseNamespace("shared.confirmationPopup");function Zu(e){const[t,n]=u.useState(!1),r=[{variant:e.cancelButtonVariant,onClick:e.closePopup,buttonText:e.cancelButtonText||Wu("cancel")},{variant:e.confirmButtonVariant,onClick:()=>{n(!0),e.onClickConfirm()},buttonText:e.confirmButtonText||Wu("confirm"),isSpinnerButton:!0,showSpinner:t}];return u.createElement($u,{title:e.title,closePopup:e.closePopup},u.createElement(u.Fragment,null,e.children,u.createElement(Yu,{buttons:r})))}function Gu(e,t){return t?"".concat(e,":").concat(t):e}Zu.defaultProps={confirmButtonVariant:"primary",cancelButtonVariant:"link"};var Qu=function(e){return{key:Gu("presentations",e),url:xc.urlBuilder("/api/subjects/v1/presentations",{type:e})}},Xu=function(e,t){return{key:Gu("customers:".concat(e,":presentations"),t),url:xc.urlBuilder("/api/subjects/v1/customers/".concat(e,"/presentations"),{type:t})}},ep=function(e,t,n,r,a){return{key:"customers:".concat(e,":presentations:").concat(e,":add"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ee.a.POST,invalidationKeys:"customers:".concat(e,":presentation"),success:n,error:r,always:a}},tp=function(e,t,n,r,a){return{key:"customers:".concat(e,":presentations:").concat(t,":remove"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ee.a.DELETE,invalidationKeys:"customers:".concat(e,":presentations"),success:n,error:r,always:a}},np=function(e){return{key:"customers:".concat(e),url:"/api/master/v2/objects/".concat(e)}},rp=n(10);function ap(e){return u.createElement("div",null,u.createElement(Ea.Form.Label,null,"Select a presentation to add"),u.createElement(Ea.Form.Control,{as:"select",value:"",onChange:function(t){return e.addPresentation((n=t.target.value,r=e.availablePresentations,rp.a.first(r.filter((function(e){return e.id.toString()===n.toString()})))));var n,r},className:"cursor-pointer"},u.createElement("option",{value:""},"Select a presentation"),e.availablePresentations.map((function(e){return u.createElement("option",{value:e.id,key:e.id},e.name)}))),!!e.currentPresentations.length&&u.createElement(u.Fragment,null,u.createElement("ul",{className:"list-unstyled mt-2"},e.currentPresentations.map((function(t){return u.createElement("li",null,t.name,u.createElement("span",{className:"text-danger cursor-pointer ml-2",onClick:function(){return e.removePresentation(t)}},u.createElement("em",null,"remove")))})))))}function ip(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return op(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sp(e){var t=qu(),n=Object(g.useDispatch)(),r=ip(u.useState(),2),a=r[0],i=r[1],o=X.useBasicFetch(np(e.customerId)),s=X.useBasicFetch(Qu(Vu.Subject)),c=X.useBasicFetch(Qu(Vu.Curriculum)),l=X.useBasicFetch(Xu(e.customerId,Vu.Subject)),p=X.useBasicFetch(Xu(e.customerId,Vu.Curriculum));function f(r){var a=ep(e.customerId,r.id,(function(){return t.success("Successfully added customer to presentation.")}),(function(e){var n;return t.error((null===(n=e.responseJSON)||void 0===n?void 0:n.message)||"Failed to add customers presentation.")}));X.fetch(n,a)}return!!(o.data&&s.data&&c.data&&l.data&&p.data)?u.createElement(u.Fragment,null,u.createElement("h1",{className:"h6 mb-3"},o.data.name," - ",o.data.crmId),u.createElement("p",null,u.createElement("strong",null,"Subject Presentations")),u.createElement(ap,{availablePresentations:s.data,currentPresentations:l.data,addPresentation:f,removePresentation:i}),u.createElement("hr",null),u.createElement("p",null,u.createElement("strong",null,"Curriculum Presentations")),u.createElement(ap,{availablePresentations:c.data,currentPresentations:p.data,addPresentation:f,removePresentation:i}),!!a&&u.createElement(Zu,{title:"Confirmation needed",onClickConfirm:function(){if(a){var r=tp(e.customerId,a.id,(function(){return t.success("Successfully removed customer from presentation.")}),(function(e){var n;return t.error((null===(n=e.responseJSON)||void 0===n?void 0:n.message)||"Failed to remove presentation.")}),(function(){return i(null)}));X.fetch(n,r)}},closePopup:function(){return i(null)}},u.createElement("p",null,"Are you sure you want to remove this customer from ",a.name,"?"))):u.createElement(u.Fragment,null)}function cp(e){return(cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function up(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pp(e,t,n){return t&&up(e.prototype,t),n&&up(e,n),e}function fp(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dp(e,t)}function dp(e,t){return(dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gp(e);if(t){var a=gp(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return hp(this,n)}}function hp(e,t){return!t||"object"!==cp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gp(e){return(gp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yp=function(e){fp(n,e);var t=mp(n);function n(){return lp(this,n),t.apply(this,arguments)}return pp(n,[{key:"channelName",get:function(){return s.CUSTOMERS}},{key:"appRoutes",get:function(){return{"customers/:id/presentations(/)":"editCustomerPresentations"}}}]),n}(f.AppRouter),vp=function(e){fp(n,e);var t=mp(n);function n(){return lp(this,n),t.apply(this,arguments)}return pp(n,[{key:"editCustomerPresentations",value:function(e){this.layout.showChildView(E,u.createElement(sp,{customerId:e}))}},{key:"name",get:function(){return"Customers Application"}},{key:"channelName",get:function(){return s.CUSTOMERS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{alertRegion:O}}}}],[{key:"router",get:function(){return yp}}]),n}(Pu),bp=n(62),Sp=n(25),Ep=n.n(Sp);function Cp(e){const{alert:t,svgName:n,svgClassName:r,closeAlert:a}=e,{message:i,heading:o,appLink:s,appLinkText:c,appLinkClassName:l=""}=t,p=Object(xa.sanitize)(i);return u.createElement(u.Fragment,null,u.createElement("div",{className:"d-inline-block "+Ep.a.icon},u.createElement(Qs,{svgName:n,className:"svg-container "+r})),u.createElement("div",{className:"pl-2 d-inline-block "+Ep.a.alertContent},u.createElement("p",{className:"p-0 m-0 pb-1 "+Ep.a.heading},o),u.createElement("p",{className:"p-0 m-0 text-break clamp-4 "+Ep.a.message,dangerouslySetInnerHTML:{__html:p}}),!!s&&u.createElement(Sc,{className:l,appLink:s},c)),u.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:a},"×"))}const Op=e=>{switch(e.type){case Uu.Success:return $s.CheckCircleOutline;case Uu.Fail:case Uu.Warning:return $s.Warning;case Uu.Info:default:return $s.Info}};function Ap({alert:e,closeAlert:t}){const[n,r]=u.useState(!0),a=u.useRef();u.useEffect(()=>{n?a.current=window.setTimeout(t,3e3):clearTimeout(a.current)},[n]);const i="text-"+e.type.toLowerCase();return u.createElement("li",{className:"bg-white mt-2 p-2 show clearfix "+Ep.a.alertItem,onMouseEnter:()=>r(!1),onMouseLeave:()=>r(!0)},u.createElement(Cp,{alert:e,svgName:Op(e),svgClassName:i,closeAlert:t}))}function Ip({alerts:e,removeAlert:t}){return u.createElement("div",{className:Ep.a.alertBox},u.createElement(bp.TransitionGroup,{component:"ul",className:Ep.a.alertList+" list-unstyled"},e&&e.map((e,n)=>u.createElement(bp.CSSTransition,{key:n,timeout:200,classNames:"alert"},u.createElement(Ap,{alert:e,closeAlert:()=>t(e.id)})))))}var Tp=n(20),jp={namespace:"domain_options"},Lp=function(){return"/api/domain/v3/settings/types"},wp=function(e){return"/api/domain/v3/settings/types/".concat(e)},kp=function(){return"/api/domain/v3/settings/types"},xp=function(e){return"/api/domain/v3/settings/types/".concat(e)},_p=function(e){return"/api/domain/v3/settings/types/".concat(e)},Np="domain:options",Pp="domain:option",Dp="update:domain:option",Rp="delete:domain:option",Mp=function(){return{key:Np,url:Lp(),normalizeOptions:jp}},Up=function(e){return{key:"".concat(Pp,":").concat(e),url:wp(e),normalizeOptions:jp}},Fp=function(e,t,n){return e.type===Tp.DomainOptionType.String&&(e=zp(e)),{key:Pp,url:kp(),data:e,type:ee.a.POST,success:t,error:n,invalidationKeys:[Np],normalizeOptions:jp}},Vp=function(e,t){return e.type===Tp.DomainOptionType.String&&(e=zp(e)),{key:"".concat(Dp,":").concat(e.id),url:xp(e.id),data:e,type:ee.a.PUT,always:t,formatData:function(){return e},normalizeOptions:jp}},Bp=function(e,t){return{key:"".concat(Rp,":").concat(e),url:_p(e),type:ee.a.DELETE,invalidationKeys:[Np],normalizeOptions:jp,success:t}};function zp(e){var t=e.defaultValue;if('"'===t)return Object.assign(Object.assign({},e),{defaultValue:'"'.concat(t,'"')});var n=t.charAt(0),r=t.charAt(t.length-1);return'"'!==n&&(t='"'.concat(t)),'"'!==r&&(t="".concat(t,'"')),Object.assign(Object.assign({},e),{defaultValue:t})}function Hp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jp(e){var t=Hp(u.useState(!1),2),n=t[0],r=t[1],i=X.useBasicFetch(Up(e.optionId)),o=Object(g.useDispatch)(),c=function(){e.closePopup(),f.AppLinkHelper.trigger({application:s.DOMAIN_OPTIONS,action:a.DomainOptions.DOMAIN_OPTIONS})};return u.createElement($u,{title:"Delete Domain Option",closePopup:e.closePopup,showLoadingSpinner:!i.data},i.data&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,i.data.name),"?")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),X.fetch(o,Bp(e.optionId,c))},buttonText:"Yes, delete this domain option",isSpinnerButton:!0,showSpinner:n}]})))}var $p,Kp=function(e){return{application:s.DOMAIN_OPTIONS,action:a.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]}},Yp={application:s.DOMAIN_OPTIONS,action:a.DomainOptions.NEW_DOMAIN_OPTION};function Wp(){var e=X.useBasicFetch(Mp());if(!e.data)return u.createElement(u.Fragment,null);var t=e.data.map((function(e){return e.displayName&&(e.name=e.displayName),e}));return u.createElement(u.Fragment,null,u.createElement("div",{className:"d-flex justify-content-between mb-2"},u.createElement("h5",{className:"d-inline-block m-0"},"Select a domain option type to edit:"),u.createElement(Sc,{appLink:Yp,className:"d-block"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Domain Option"))),u.createElement(bl,{objects:t,getAppLink:Kp}))}!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup"}($p||($p={}));var Zp=ba.object().shape({id:ba.string(),name:ba.string().trim().max(64,"Name is too long").required("Name is required").default(""),displayName:ba.string().trim().max(255,"Display name is too long").required("Display name is required").default(""),type:ba.mixed().required("Type is required").default(Tp.DomainOptionType.Boolean),entityType:ba.mixed().required("Entity type is required").default($p.Customer),kind:ba.mixed().required("Kind is required").default(Tp.DomainOptionKind.Temporary),defaultValue:ba.mixed().required("Default value is required").default("false")}).noUnknown();function Gp(e){var t=e.type,n=e.defaultValue;if(!t)return u.createElement(u.Fragment,null);var r={label:"Default Value",name:"defaultValue",id:"defaultValue",value:n};return t===Tp.DomainOptionType.Boolean?u.createElement(La,Object.assign({as:"select"},r),u.createElement("option",{value:"true"},"True"),u.createElement("option",{value:"false"},"False")):t===Tp.DomainOptionType.Long||t===Tp.DomainOptionType.StaffRequest?u.createElement(La,Object.assign({as:"input",type:"number"},r)):t===Tp.DomainOptionType.String?u.createElement(La,Object.assign({as:"input"},r)):void 0}var Qp=[$p.Customer,$p.User];function Xp(e){var t=null===e.id||void 0===e.id,n=ea(),r=wa(n);return u.createElement(ua,null,u.createElement(La,{label:"Name (snake_case)",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this domain option",autoFocus:!0}),u.createElement(La,{label:"Display Name",type:"text",name:"displayName",id:"displayName",value:n.values.displayName,placeholder:"Enter a display name for this domain option"}),u.createElement(La,{as:"select",label:"Kind",name:"kind",id:"kind",value:n.values.kind},ga.a.getEnumKeys(Tp.DomainOptionKind).map((function(e){return u.createElement("option",{key:e,value:Tp.DomainOptionKind[e]},e)}))),u.createElement(La,{as:"select",label:"Entity",name:"entityType",id:"entityType",value:n.values.entityType},ga.a.getEnumKeys($p).filter((function(e){return Qp.includes($p[e])})).map((function(e){return u.createElement("option",{key:e,value:$p[e]},e)}))),u.createElement(La,{as:"select",label:"Type",name:"type",id:"type",value:n.values.type},ga.a.getEnumKeys(Tp.DomainOptionType).map((function(e){return u.createElement("option",{key:e,value:Tp.DomainOptionType[e]},e)}))),u.createElement(Gp,{type:n.values.type,defaultValue:n.values.defaultValue}),u.createElement("div",{className:"d-flex justify-content-between"},u.createElement(du,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&u.createElement(Ea.Button,{as:Sc,variant:"danger",appLink:{application:s.DOMAIN_OPTIONS,action:a.DomainOptions.DELETE_DOMAIN_OPTION,args:[e.id]}},"Delete")))}function ef(e){return u.createElement(va,{initialValues:e.domainOption,validationSchema:Zp,onSubmit:e.saveDomainOption},u.createElement(Xp,{id:e.domainOption&&e.domainOption.id}))}function tf(){var e=Object(g.useDispatch)();return u.createElement(u.Fragment,null,u.createElement("h4",{className:"py-2"},"Create New Domain Option"),u.createElement(ef,{saveDomainOption:function(t,n){X.fetch(e,Fp(t,(function(e){n(),f.AppLinkHelper.trigger({application:s.DOMAIN_OPTIONS,action:a.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]})}),n))}}))}function nf(e){var t=e.optionId,n=X.useBasicFetch(Up(t)),r=Object(g.useDispatch)();return u.createElement(u.Fragment,null,u.createElement("h4",{className:"py-2"},"Edit Domain Option"),n.data&&u.createElement(ef,{domainOption:n.data,saveDomainOption:function(e,t){return X.fetch(r,Vp(e,t))}}))}function rf(e){return(rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sf(e,t,n){return t&&of(e.prototype,t),n&&of(e,n),e}function cf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lf(e,t)}function lf(e,t){return(lf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ff(e);if(t){var a=ff(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return pf(this,n)}}function pf(e,t){return!t||"object"!==rf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ff(e){return(ff=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var df=function(e){cf(n,e);var t=uf(n);function n(){return af(this,n),t.apply(this,arguments)}return sf(n,[{key:"channelName",get:function(){return s.DOMAIN_OPTIONS}},{key:"appRoutes",get:function(){return{"developer/options(/)":"domainOptions","developer/options/new(/)":"newDomainOption","developer/options/:id(/)":"editDomainOption"}}},{key:"appLinks",get:function(){return["deleteDomainOption"]}}]),n}(f.AppRouter),mf=function(e){cf(n,e);var t=uf(n);function n(){return af(this,n),t.apply(this,arguments)}return sf(n,[{key:"domainOptions",value:function(){this.layout.showChildView(E,u.createElement(Wp,null))}},{key:"newDomainOption",value:function(){this.layout.showChildView(E,u.createElement(tf,null))}},{key:"editDomainOption",value:function(e){this.layout.showChildView(E,u.createElement(nf,{optionId:e}))}},{key:"deleteDomainOption",value:function(e){this.layout.showChildView(C,u.createElement(Jp,Object.assign({optionId:e},this.getPopupProps())))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(O,u.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Domain Options Application"}},{key:"channelName",get:function(){return s.DOMAIN_OPTIONS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return df}}]),n}(f.Application),hf=function(e){return e?"".concat("/api/master/v2/people","?cursor=").concat(e):"/api/master/v2/people"},gf=function(e){return"/api/master/v2/objects/".concat(e)},yf=function(){return"/api/master/v2/people"},vf=function(e){return"/api/master/v2/objects/".concat(e)},bf="people",Sf="person",Ef="update:person",Cf=function(e){return{key:"".concat(bf).concat(e?":".concat(e):""),url:hf(e)}},Of=function(e){return{key:"".concat(Sf,":").concat(e),url:gf(e)}},Af=function(e,t,n){return{key:Sf,url:yf(),data:e,type:ee.a.POST,success:t,error:n,invalidationKeys:[bf]}},If=function(e,t,n){return{key:"".concat(Ef,":").concat(e),url:vf(e),data:t,type:ee.a.PUT,always:n}},Tf=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown();function jf(e){var t=ea();return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this person",autoFocus:!0}),u.createElement(za,{isNew:e.isNew}))}function Lf(e){return u.createElement(va,{initialValues:e.person,validationSchema:Tf,onSubmit:e.savePerson},u.createElement(jf,{isNew:!(e.person&&e.person.id)}))}function wf(e){var t=Object(g.useDispatch)(),n=X.useBasicFetch(Of(e.id));return u.createElement(u.Fragment,null,!!n.data&&u.createElement(Lf,{person:n.data,savePerson:function(n,r){return X.fetch(t,If(e.id,n,r))}}))}function kf(){var e=Object(g.useDispatch)();return u.createElement(Lf,{savePerson:function(t,n){X.fetch(e,Af(t,(function(e){n(),f.AppLinkHelper.trigger({application:s.PEOPLE,action:a.People.EDIT_PERSON,args:[e.id]})}),n))}})}var xf=s.PEOPLE,_f=function(e){return{application:xf,action:a.People.EDIT_PERSON,args:[e.id]}},Nf=function(e){return f.AppLinkHelper.trigger(_f(e))};function Pf(e){var t=X.useBasicFetch(Cf(e.cursor));return u.createElement(u.Fragment,null,u.createElement("div",{className:"pb-3 w-50"},u.createElement(ic,{placeholder:"Search for a person",onSuggestionSelected:Nf,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/people/instant/raw","?q=").concat(e)},activationLength:2})),u.createElement(il,{collection:t&&t.data,collectionAppLink:{application:xf,action:a.People.PEOPLE},newObjectAppLink:{application:xf,action:a.People.NEW_PERSON},getObjectAppLink:_f,objectName:"Person"}))}function Df(e){return(Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uf(e,t,n){return t&&Mf(e.prototype,t),n&&Mf(e,n),e}function Ff(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vf(e,t)}function Vf(e,t){return(Vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hf(e);if(t){var a=Hf(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return zf(this,n)}}function zf(e,t){return!t||"object"!==Df(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hf(e){return(Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qf=function(e){Ff(n,e);var t=Bf(n);function n(){return Rf(this,n),t.apply(this,arguments)}return Uf(n,[{key:"channelName",get:function(){return s.PEOPLE}},{key:"appRoutes",get:function(){return{"manage/people(/)":"people","manage/people/new(/)":"newPerson","manage/people/:id(/)":"editPerson"}}}]),n}(f.AppRouter),Jf=function(e){Ff(n,e);var t=Bf(n);function n(){return Rf(this,n),t.apply(this,arguments)}return Uf(n,[{key:"people",value:function(e){var t=e.cursor;this.layout.showChildView(E,u.createElement(Pf,{cursor:t}))}},{key:"newPerson",value:function(){this.layout.showChildView(E,u.createElement(kf,null))}},{key:"editPerson",value:function(e){this.layout.showChildView(E,u.createElement(wf,{id:e}))}},{key:"name",get:function(){return"People Application"}},{key:"channelName",get:function(){return s.PEOPLE}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return qf}}]),n}(f.Application);const $f={uploadBase64Image:(e,t,n,r,a)=>({url:"/api/image/upload?type="+t,key:"upload:image",data:e,type:ee.a.POST,success:n,error:r,always:a})};var Kf,Yf=n(206),Wf=n.n(Yf);!function(e){e[e.NoRestrictions=0]="NoRestrictions",e[e.RestrictToCanvas=1]="RestrictToCanvas"}(Kf||(Kf={}));const Zf=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function Gf(e){const{dataUrl:t,minHeight:n,minWidth:r,onCrop:a,onCancel:i}=e,o=u.useRef(),s=u.useRef(),[c,l]=u.useState(!1),[p,f]=u.useState(!1);return u.useEffect(()=>{const e=new Image;e.src=t;const a=o.current.offsetWidth/e.width;return s.current=new Wf.a(o.current,{viewMode:Kf.RestrictToCanvas,autoCropArea:1,aspectRatio:r/n,minCropBoxWidth:r*a,minCropBoxHeight:n*a,ready:()=>l(!0)}),()=>s.current.destroy()},[]),u.createElement(u.Fragment,null,u.createElement("div",{className:"pb-3"},u.createElement("img",{ref:o,src:t,className:"img img-fluid"})),u.createElement("div",{className:"d-flex justify-content-end border-top pt-3"},u.createElement(Ea.Button,{variant:"link",onClick:i},"Cancel"),u.createElement(du,{onClick:()=>{if(!c)return;f(!0);const e=s.current.getCroppedCanvas().toDataURL((e=>{const t=e.match(Zf);if(t)return t[1]})(t));m.isFunction(a)&&a(e)},disabled:!c,showSpinner:p},"Crop")))}function Qf(e){const t=Object(g.useDispatch)(),{getDataUrl:n,setImage:r}=u.useContext(Mc),[a]=u.useState(n()),[i,o]=u.useState(!1);return u.createElement($u,{title:"Crop Image",size:e.popupSize,closePopup:e.closePopup,onEntered:()=>o(!0)},i&&u.createElement(Gf,{dataUrl:a,minWidth:Rc[e.imageType].width,minHeight:Rc[e.imageType].height,onCrop:function(n){X.fetch(t,$f.uploadBase64Image(n,e.imageType,e=>r(e),null,e.closePopup))},onCancel:e.closePopup}))}var Xf=function(e){var t=e.children;return u.createElement(Uc,null,t)};function ed(e){var t=e.page,n=e.totalPages,r=Wa.isNumber(t)&&t>0&&t<n&&t+1,a=Wa.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),a&&(i.previous=a.toString()),!ga.a.isEmpty(i))return i}var td,nd={convertLegacyPaginatedCollection:function(e){if(e)return{data:e.data,pagination:{cursors:ed(e.pagination),limit:e.pagination.pageSize}}}};!function(e){e.Developer="Curator Devs",e.Content="Content",e.Curator="Curators",e.Support="Support",e.SalesSupport="Sales Support"}(td||(td={}));var rd=function(){return[{value:"protected",access:"r"}]},ad=function(e){return[td.Developer,td.Content].some((function(t){return Nl(e).includes(t)}))},id=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1";return{key:"playlists:".concat(e),url:"/ajax/playlists/curators?page=".concat(e),formatData:nd.convertLegacyPaginatedCollection}},od=function(e,t){var n="/api/domain/v1/search/playlists?query=".concat(e);return t&&(n+="&filter={page:".concat(t,"}")),{key:"playlists:search:".concat(e).concat(t?":".concat(t):""),url:n,formatData:nd.convertLegacyPaginatedCollection}},sd=function(e){return{key:"playlist:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=cover,banner")}},cd=function(e){var t=e.slice().sort();return{key:"playlists:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},ld=function(e,t,n,r,a){return{url:"/api/master/v2/objects/".concat(t,"/playlists"),key:"playlist",data:Object.assign(Object.assign({},e),{permissions:rd()}),type:ee.a.POST,invalidationKeys:"playlists",success:n,error:r,always:a}},ud=function(e,t,n,r,a){return{url:"/api/master/v2/objects/".concat(e),key:"update:playlist:".concat(e),data:t,type:ee.a.PUT,success:n,error:r,always:a}},pd=function(e,t,n,r){return{url:"/api/master/v1/playlists/".concat(e),key:"delete:playlist:".concat(e),type:ee.a.DELETE,invalidationKeys:"playlists",success:t,error:n,always:r}},fd=function(e){return{key:"playlist:".concat(e,":videos"),url:"/api/master/v2/objects/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")}},dd=function(e,t,n,r){return{key:"reorder:playlist",url:"/api/master/v1/objects/".concat(e,"/videos/reorder"),data:t,type:ee.a.PUT,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r}},md=function(e,t,n,r,a){return{key:"remove:playlist:video",url:"/api/master/v1/playlists/".concat(e,"/dissociate/").concat(t),type:ee.a.DELETE,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r,always:a}};function hd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yd(e){var t=Object(g.useDispatch)(),n=qu(),r=hd(u.useState(!1),2),i=r[0],o=r[1],c=X.useBasicFetch(sd(e.playlistId));var l=[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),X.fetch(t,pd(e.playlistId,(function(){n.success("Successfully deleted playlist."),f.AppLinkHelper.trigger({application:s.PLAYLISTS,action:a.Playlists.PLAYLISTS})}),(function(){o(!1),n.error("Failed to delete playlist.")}),e.closePopup))},buttonText:"Yes, delete playlist",isSpinnerButton:!0,showSpinner:i}],p=!!c.data;return u.createElement($u,{title:"Delete Playlist",closePopup:e.closePopup,showLoadingSpinner:!p},p&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,c.data.name),"?"),u.createElement("p",null,"Please ensure it is not being used in any widgets.")),u.createElement(Yu,{buttons:l})))}const vd="locale",bd="phrases",Sd="token",Ed={currentUser:(e,t)=>({url:"/api/currentUser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},success:e,error:t}),workspace:(e,t)=>({url:"/api/domain/v2/me/workspace?query=categorytree",key:"workspace",success:e,error:t}),sendVerificationEmail:(e,t,n,r)=>({url:"api/account/email",key:"verify:email",type:ee.a.POST,data:{emailAddress:e},success:t,error:n,always:r,invalidationKeys:["verify:email:status"]}),token:(e,t)=>({url:"/api/token",key:"token",bootstrapName:Sd,success:e,error:t}),permissions:(e,t)=>({url:"{gateway}/v1/me/permissions",key:"permissions",expiryTime:1/0,success:e,error:t,normalize:!1,formatData:e=>e.reduce((e,t)=>(e[t]=!0,e),{})})};var Cd=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ba.string().trim().max(65535,"Description is too long").default(""),cover:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),banner:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown()}).noUnknown(),Od=function(e,t){var n=s.PLAYLISTS,r=a.Playlists,i=[{label:"Edit Playlist Details",appLink:{application:n,action:r.EDIT_PLAYLIST,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_PLAYLIST_VIDEOS,args:[t]}}];return ad(e)&&i.push.apply(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_PLAYLIST_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_PLAYLIST_AUDIENCES,args:[t]}}]),i};function Ad(e){var t=ea(),n=wa(t);return u.createElement(ua,null,u.createElement(La,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this playlist",autoFocus:!0}),u.createElement(La,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this playlist here"}),u.createElement(nl,{imageType:Ic.Covers,fieldName:"cover",application:s.PLAYLISTS,uploadAction:a.Playlists.UPLOAD_IMAGE}),u.createElement(nl,{imageType:Ic.Banners,fieldName:"banner",application:s.PLAYLISTS,uploadAction:a.Playlists.UPLOAD_IMAGE}),u.createElement("div",{className:"d-flex justify-content-between align-items-center"},u.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&u.createElement(hl,{actions:e.actions})))}function Id(e){var t,n=e.playlist&&e.playlist.id;return u.createElement(va,{initialValues:e.playlist,validationSchema:Cd,onSubmit:e.savePlaylist},u.createElement(Ad,{id:n,actions:!!n&&(t=n,[{label:"Delete playlist",appLink:{application:s.PLAYLISTS,action:a.Playlists.DELETE_PLAYLIST,args:[t]},className:"text-danger"}])}))}function Td(e){return u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:Od(e.currentUser,e.playlistId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function jd(e){var t=Object(g.useDispatch)(),n=qu(),r=X.useBasicFetch(sd(e.playlistId)),i=X.useBasicFetch(Ed.currentUser());return u.createElement(u.Fragment,null,!!i.data&&u.createElement(Td,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST,currentUser:i.data}),!!r.data&&u.createElement(Id,{playlist:r.data,savePlaylist:function(r,a){X.fetch(t,ud(e.playlistId,r,(function(){n.success("Successfully updated playlist.")}),(function(){n.error("Failed to update playlist.")}),a))}}))}const Ld={fetch(e,t){const{dataServiceName:n,eventPrefix:r,fetchData:a,setData:i,onError:o,deleteEventPrefix:s}=e;if(!m.isFunction(a))return void f.ErrorHelper.throw(new Ra.a("A fetchData function must be passed to fetch"));if(!m.isFunction(i))return void f.ErrorHelper.throw(new Ra.a("A setData function must be passed to fetch"));const c=o&&m.isFunction(o),l=Ru.getInstance(n),u=pc.Radio.channel(l.channelName),p=r+":request",d=r+":sync",h=r+":error",g=r+":invalidate",y=s&&s+":sync",v=()=>t(!1),b=()=>t(!0),S=()=>t(!1),E=()=>u.off(g,S);u.once(p,v),u.once(d,b),u.once(g,S),c&&u.once(h,o),y&&u.once(y,E);const C=a(l);return C&&(t(!0),e.setData(C)),()=>{Ru.releaseInstance(n),u.off(p,v),u.off(d,b),u.off(g,S),c&&u.off(h,o),y&&u.off(y,E)}}},wd=e=>Array(Array.isArray(e)?e.length:0).fill(!1);function kd(e,t,n=!0){const[r,a]=u.useState(wd(e));u.useEffect(()=>{a(wd(e))},[...t]),u.useEffect(()=>{if(!n)return;const t=[];return e&&e.forEach((e,n)=>{t.push(Ld.fetch(e,e=>{e!==r[n]&&a(rp.a.cloneAndReplaceAtIdx(r,n,e))}))}),()=>t.forEach(e=>e())},[r,n])}function xd(e,t,n=!0){const[r,a]=u.useState(!1);u.useEffect(()=>{a(!1)},[...t]),u.useEffect(()=>{if(n)return Ld.fetch(e,a)},[r,n])}const _d={getSetStateByKey:(e,t,n)=>r=>e(e=>{const a=m.isFunction(n)?n:m.useIdentity();return Object.assign(Object.assign({},e),{[t]:a(r,e)})})};class Nd extends _a.a{constructor(e){super(e),d.result(this,"name")||Na.c.throw(new Ra.a("Must provide a name when extending BaseDataService")),d.result(this,"channelName")||Na.c.throw(new Ra.a("Must provide a channelName for "+d.result(this,"name")));const t=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(e,t)}get defaultProps(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}getCursors(e){const t=this.cache.get(e);return t?t.cursors:{}}clearCacheAndGet(e){const{callback:t,errorCallback:n,eventPrefix:r}=e,{syncEvent:a,errorEvent:i}=this.getEventNames(r),o=this.cache.get(r);if(o&&o.openRequest){const e=e=>{d.isFunction(n)&&this.stopListening(this.getChannel(),i,n),d.isFunction(t)&&t(e)},r=()=>{d.isFunction(t)&&this.stopListening(this.getChannel(),a,t),d.isFunction(n)&&n()};return this.listenToOnce(this.getChannel(),a,e),void this.listenToOnce(this.getChannel(),i,r)}this.cache.remove(e.eventPrefix),this.get(e)}get(e){const{callback:t,errorCallback:n,eventPrefix:r,resource:a,formatData:i,expiryTime:o,successHandler:s,errorHandler:c,bootstrapName:l}=e,{syncEvent:u,requestEvent:p,successEvent:f,errorEvent:m}=this.getEventNames(r),h=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(r,this.bootstrapData[l],i,{openRequest:!1,timestamp:g}),delete this.bootstrapData[l]);const y=this.cache.get(r);let v;y&&(v=y.data);const b=y&&y.openRequest,S=this.isExpired(r,o);if(b){const e=e=>{d.isFunction(n)&&this.stopListening(this.getChannel(),m,n),d.isFunction(t)&&t(e)},r=()=>{d.isFunction(t)&&this.stopListening(this.getChannel(),u,t),d.isFunction(n)&&n()};this.listenToOnce(h,u,e),this.listenToOnce(h,m,r)}if(this.cache.has(r)&&!S||(h.trigger(p),this.listenToResponse({eventPrefix:r,formatData:i,cacheOptions:{timestamp:g},callback:t,errorCallback:n,successHandler:s,errorHandler:c}),this.cacheData(r,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:f,errorEvent:m})),v&&d.isFunction(t)&&!S&&t(v),v)return v}create(e){const{eventPrefix:t,resource:n,data:r,formatData:a,callback:i,errorCallback:o,invalidationKeys:s,successHandler:c,errorHandler:l}=e,{requestEvent:u,successEvent:p,errorEvent:f}=this.getEventNames(e.eventPrefix),d=this.getChannel(),m=this.getTransportChannel();d.trigger(u),this.listenToResponse({eventPrefix:t,formatData:a,invalidationKeys:s,callback:i,errorCallback:o,successHandler:c,errorHandler:l}),this.dataProvider.create(n,r,{channel:m,successEvent:p,errorEvent:f})}update(e){const{data:t,callback:n,errorCallback:r,resource:a,formatData:i,eventPrefix:o,invalidationKeys:s,errorHandler:c,successHandler:l}=e,{requestEvent:u,successEvent:p,errorEvent:f}=this.getEventNames(e.eventPrefix),d=this.getChannel(),m=this.getTransportChannel();d.trigger(u),this.listenToResponse({eventPrefix:o,formatData:i,invalidationKeys:s,callback:n,errorCallback:r,successHandler:l,errorHandler:c}),this.dataProvider.update(a,t,{channel:m,successEvent:p,errorEvent:f})}delete(e){const{eventPrefix:t,resource:n,callback:r,errorCallback:a,invalidationKeys:i,successHandler:o,errorHandler:s}=e,{successEvent:c,errorEvent:l}=this.getEventNames(t),u=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:i,callback:r,errorCallback:a,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:o,errorHandler:s}),this.dataProvider.delete(n,{channel:u,successEvent:c,errorEvent:l})}listenToResponse(e){const{eventPrefix:t,formatData:n,callback:r,errorCallback:a,successHandler:i,errorHandler:o,invalidationKeys:s,cacheOptions:c={}}=e,{syncEvent:l,successEvent:u,errorEvent:p,successAlertEvent:f,errorAlertEvent:m}=this.getEventNames(t),h=this.getChannel(),g=this.getTransportChannel(),y=this.getAlertChannel();if(d.isFunction(r)&&this.listenToOnce(h,l,r),d.isFunction(a)&&this.listenToOnce(h,p,a),this.stopListening(y,f),this.stopListening(y,m),d.isFunction(i)&&this.listenToOnce(y,f,i),d.isFunction(o)&&this.listenToOnce(y,m,o),!d.isFunction(o)&&!1!==o&&d.isFunction(this.defaultErrorHandler)&&this.listenToOnce(y,m,this.defaultErrorHandler),this.hasRequestSignature(t))return;this.setRequestSignature(t);this.listenTo(g,u,(e,...r)=>{this.stopListening(h,p,a),y.trigger(f,e,...r);const i=c.noCache?this.formatData(e,n):this.cacheData(t,e,n);c.clearCacheKey&&this.cache.remove(t),h.trigger(l,i),s&&s.length&&this.cache.invalidate(s,e=>h.trigger(e+":invalidate"))}),this.listenTo(g,p,(...e)=>{this.stopListening(h,l,r);const n=this.dataProvider.parseError(...e);y.trigger(m,n),h.trigger(p,n),c.noCache||this.cacheData(t,null,null)})}cacheData(e,t,n,r={}){const{openRequest:a=!1}=r;let{timestamp:i}=r;i||(i=this.currentTimestamp());const o=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:i,cursors:o,openRequest:a}),s}processPagination(e){if(!e)return;const{pagination:t}=e;return t?t.cursors?t.cursors:d.isUndefined(t.offset)||d.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t):void 0}formatData(e,t){return d.isFunction(t)?t(e):e}chain(){const e=[],t=(e,t)=>{d.isFunction(e)&&e(t)},n=(n,a)=>(e.push(()=>{const r=n.callback;n.callback=n=>{t(r,n),t(e.shift())},this[a](n)}),r),r={func:t=>(e.push(()=>{t(e.shift()||(()=>{}))}),r),get:e=>n(e,"get"),create:e=>n(e,"create"),update:e=>n(e,"update"),delete:e=>n(e,"delete"),run(){t(e.shift())}};return r}invalidateCache(e){e&&e.length&&this.cache.invalidate(e)}currentTimestamp(){return(new Date).valueOf()}isExpired(e,t){if(!t)return!1;const n=this.cache.get(e);if(!n||!n.timestamp)return!0;const r=1e3*t;return n.timestamp<this.currentTimestamp()-r}getEventNames(e){return{syncEvent:e+":sync",requestEvent:e+":request",successEvent:e+":success",errorEvent:e+":error",successAlertEvent:e+":success:alert",errorAlertEvent:e+":error:alert"}}getTransportChannel(){return pc.Radio.channel(this.channelName+":transport")}getAlertChannel(){return pc.Radio.channel(this.channelName+":alert")}setRequestSignature(e){this.dataRequestSignatures[e]=e}hasRequestSignature(e){return!!this.dataRequestSignatures[e]}convertOffsetPaginationToCursors(e){const{offset:t,pageSize:n,totalItems:r}=e,a=r>0&&t<r&&t+n,i=r>0&&t>0&&Math.max(t-n,0),o={};if(a&&a<r&&(o.next=a.toString()),d.isNumber(i)&&(o.previous=i.toString()),!d.isEmpty(o))return o}convertLegacyPaginationToCursors(e){const{page:t,totalPages:n}=e,r=d.isNumber(t)&&t>0&&t<n&&t+1,a=d.isNumber(t)&&t>1&&t-1,i={};if(r&&r<=n&&(i.next=r.toString()),a&&(i.previous=a.toString()),!d.isEmpty(i))return i}}var Pd=n(46);const Dd={SHORT:120,STANDARD:600};var Rd,Md,Ud,Fd,Vd;!function(e){e[e.Subject=0]="Subject",e[e.Classification=1]="Classification",e[e.Level=2]="Level",e[e.Audience=3]="Audience"}(Rd||(Rd={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(Md||(Md={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(Ud||(Ud={})),function(e){e.Root="0"}(Fd||(Fd={})),function(e){e.Root="root"}(Vd||(Vd={}));var Bd,zd=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),backboneAudienceIds:ba.array().of(ba.string()).required("A level is required").default([])}).noUnknown();!function(e){e.Subject="Subject",e.Topic="Topic"}(Bd||(Bd={}));var Hd=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentIds:ba.array().of(ba.string()).default([Vd.Root]),backboneClassificationIds:ba.array().of(ba.string()).min(1,"A classification must be mapped to at least one subject").required("A classification must be mapped to at least one subject").default([]),type:ba.mixed().required("Type is required").default(Bd.Subject),emphasize:ba.boolean().default(!1),comingSoon:ba.boolean().default(!0),canBePreferred:ba.boolean().default(!1),cover:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),banner:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown()}).noUnknown(),qd=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),Jd=ba.object().shape({name:ba.string().max(255,"Name is too long").required("Name is required"),description:ba.string().max(65535,"Description is too long").required("Description is required")}),$d=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentId:ba.string().default(Fd.Root)}).noUnknown(),Kd={singularizeMemberType:function(e){switch(e){case Md.Playlists:return"playlist";case Md.Series:return"series";case Md.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case Md.Playlists:return{application:s.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:n};case Md.Series:return{application:s.SERIES,action:a.Series.EDIT_SERIES,args:n};case Md.Videos:return{application:s.VIDEOS,action:a.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(Kd.singularizeMemberType(n)),appLink:{application:s.SUBJECTS,action:t===Rd.Subject?a.Subjects.REMOVE_SUBJECT_MEMBER:a.Subjects.REMOVE_CLASSIFICATION_MEMBER,args:[e,r,n]},className:"text-danger"}]}},Yd=function(){var e=s.SUBJECTS,t=a.Subjects;return[{label:"Classifications",appLink:{application:e,action:t.CLASSIFICATIONS},activeActions:[t.CLASSIFICATIONS,t.PRESENTATION_CLASSIFICATIONS,t.NEW_CLASSIFICATION,t.EDIT_CLASSIFICATION,t.EDIT_CLASSIFICATION_PLAYLISTS,t.EDIT_CLASSIFICATION_SERIES,t.EDIT_CLASSIFICATION_VIDEOS,t.DELETE_CLASSIFICATION,t.REMOVE_CLASSIFICATION_MEMBER]},{label:"Backbone Classifications",appLink:{application:e,action:t.SUBJECTS},activeActions:[t.SUBJECTS,t.NEW_SUBJECT,t.EDIT_SUBJECT,t.EDIT_SUBJECT_PLAYLISTS,t.EDIT_SUBJECT_SERIES,t.EDIT_SUBJECT_VIDEOS,t.SUBJECT_CLASSIFICATIONS,t.DELETE_SUBJECT,t.ADD_SUBJECT_MEMBERS,t.REMOVE_SUBJECT_MEMBER]},{label:"Audiences",appLink:{application:e,action:t.AUDIENCES},activeActions:[t.AUDIENCES,t.PRESENTATION_AUDIENCES,t.NEW_AUDIENCE,t.EDIT_AUDIENCE,t.EDIT_AUDIENCE_PLAYLISTS,t.EDIT_AUDIENCE_SERIES,t.EDIT_AUDIENCE_VIDEOS,t.REMOVE_AUDIENCE_MEMBER]},{label:"Backbone Audiences",appLink:{application:e,action:t.LEVELS},activeActions:[t.LEVELS,t.NEW_LEVEL,t.EDIT_LEVEL,t.LEVEL_AUDIENCES,t.EDIT_LEVEL_PLAYLISTS,t.EDIT_LEVEL_SERIES,t.EDIT_LEVEL_VIDEOS]},{label:"Presentations",appLink:{application:e,action:t.PRESENTATIONS},activeActions:[t.PRESENTATIONS,t.NEW_PRESENTATION,t.EDIT_PRESENTATION]}]},Wd=function(e,t){var n=s.SUBJECTS,r=a.Subjects,i=[e];return[{label:"Edit Backbone Classification Details",appLink:{action:r.EDIT_SUBJECT}},{label:"Classifications",appLink:{action:r.SUBJECT_CLASSIFICATIONS}},{label:"Playlists",appLink:{action:r.EDIT_SUBJECT_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_SUBJECT_SERIES}},{label:"Videos",appLink:{action:r.EDIT_SUBJECT_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:i});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},Zd=function(e,t){var n=s.SUBJECTS,r=a.Subjects;return[{label:"Edit Classification Details",appLink:{application:n,action:r.EDIT_CLASSIFICATION,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_CLASSIFICATION_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_CLASSIFICATION_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_CLASSIFICATION_VIDEOS,args:[e,t]}}]},Gd=function(e,t){var n=s.SUBJECTS,r=a.Subjects,i=[e];return[{label:"Edit Level Details",appLink:{action:r.EDIT_LEVEL}},{label:"Audiences",appLink:{action:r.LEVEL_AUDIENCES}},{label:"Playlists",appLink:{action:r.EDIT_LEVEL_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_LEVEL_SERIES}},{label:"Videos",appLink:{action:r.EDIT_LEVEL_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:i});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},Qd=function(e,t){var n=s.SUBJECTS,r=a.Subjects;return[{label:"Edit Audience Details",appLink:{application:n,action:r.EDIT_AUDIENCE,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_AUDIENCE_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_AUDIENCE_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_AUDIENCE_VIDEOS,args:[e,t]}}]},Xd={singularizeMemberType:function(e){switch(e){case Ud.Playlists:return"playlist";case Ud.Series:return"series";case Ud.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case Ud.Playlists:return{application:s.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:n};case Ud.Series:return{application:s.SERIES,action:a.Series.EDIT_SERIES,args:n};case Ud.Videos:return{application:s.VIDEOS,action:a.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(Xd.singularizeMemberType(n)),appLink:{application:s.SUBJECTS,action:t===Rd.Level?a.Subjects.REMOVE_LEVEL_MEMBER:a.Subjects.REMOVE_AUDIENCE_MEMBER,args:[e,r,n]},className:"text-danger"}]}};function em(e){return(em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tm(e){return function(e){if(Array.isArray(e))return nm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function im(e,t){return(im=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function om(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cm(e);if(t){var a=cm(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return sm(this,n)}}function sm(e,t){return!t||"object"!==em(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cm(e){return(cm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lm=function(){return"/api/subjects/v1/backbone-classifications/tree"},um=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},pm=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/").concat(t,"?query={limit:100}")},fm=function(e,t,n){var r="/api/subjects/v1/backbone-classifications/".concat(e,"/classifications"),a=[];return t&&a.push("presentationId=".concat(t)),n&&a.push("query=".concat(n,"{limit:100}")),a.length?"".concat(r,"?").concat(a.join("&")):r},dm=function(){return"/api/subjects/v1/backbone-classifications"},mm=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},hm=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},gm=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications")},ym=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications?addToClassifications=").concat(!!t)},vm=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?addToClassifications=").concat(!!t)},bm=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Sm=function(){return"/api/subjects/v1/presentations"},Em=function(e){return"/api/subjects/v1/presentations/".concat(e)},Cm=function(){return"/api/subjects/v1/presentations"},Om=function(e){return"/api/subjects/v1/presentations/".concat(e)},Am=function(e){return"/api/subjects/v1/presentations/".concat(e,"/classifications/tree")},Im=function(e){return"/api/subjects/v1/classifications/".concat(e,"?query=cover,banner,followers")},Tm=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/").concat(t,"?query={limit:100}")},jm=function(){return"/api/subjects/v1/classifications"},Lm=function(e){return"/api/subjects/v1/classifications/".concat(e)},wm=function(e){return"/api/subjects/v1/classifications/".concat(e)},km=function(e){return"/api/subjects/v1/objects/".concat(e,"/classifications")},xm=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/classifications?presentationId=").concat(t)},_m=function(e){return"/api/subjects/v1/classifications/".concat(e,"/objects")},Nm=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Pm=function(){return"/api/subjects/v1/backbone-audiences"},Dm=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},Rm=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/").concat(t,"?query={limit:100}")},Mm=function(e,t,n){var r="/api/subjects/v1/backbone-audiences/".concat(e,"/audiences"),a=[];return t&&a.push("presentationId=".concat(t)),n&&a.push("query=".concat(n,"{limit:100}")),a.length?"".concat(r,"?").concat(a.join("&")):r},Um=function(){return"/api/subjects/v1/backbone-audiences"},Fm=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},Vm=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences")},Bm=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences?addToAudiences=").concat(!!t)},zm=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?addToAudiences=").concat(!!t)},Hm=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},qm=function(e){return"/api/subjects/v1/presentations/".concat(e,"/audiences")},Jm=function(e){return"/api/subjects/v1/audiences/".concat(e)},$m=function(e,t){return"/api/master/v2/objects/".concat(e,"/").concat(t,"?query={limit:100}")},Km=function(){return"/api/subjects/v1/audiences"},Ym=function(e){return"/api/subjects/v1/audiences/".concat(e)},Wm=function(e){return"/api/subjects/v1/audiences/".concat(e)},Zm=function(e){return"/api/subjects/v1/objects/".concat(e,"/audiences")},Gm=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/audiences?presentationId=").concat(t)},Qm=function(e){return"/api/subjects/v1/audiences/".concat(e,"/objects")},Xm=function(e,t){return"/api/subjects/v1/audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},eh=function(e,t,n){var r="".concat(i.SUBJECT,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(i.CLASSIFICATIONS),n&&(r+=":".concat(n)),r},th=function(e,t,n){var r="".concat(i.LEVEL,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(i.AUDIENCES),n&&(r+=":".concat(n)),r},nh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&im(e,t)}(o,e);var t,n,r,a=om(o);function o(){return rm(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"getPresentations",value:function(e,t){return this.get({resource:Sm(),eventPrefix:i.PRESENTATIONS,expiryTime:Dd.STANDARD,callback:e,errorCallback:t})}},{key:"getPresentation",value:function(e,t,n){return this.get({resource:Em(e),eventPrefix:"".concat(i.PRESENTATION,":").concat(e),expiryTime:Dd.STANDARD,callback:t,errorCallback:n})}},{key:"createPresentation",value:function(e,t,n){return this.create({resource:Cm(),data:e,callback:t,errorCallback:n,eventPrefix:i.PRESENTATION,invalidationKeys:[i.PRESENTATIONS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully created presentation."),errorHandler:this.alertService.error("Failed to create presentation.")})}},{key:"updatePresentation",value:function(e,t,n,r){return this.update({resource:Om(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_PRESENTATION,":").concat(e),invalidationKeys:["".concat(i.PRESENTATION,":").concat(e),i.PRESENTATIONS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully updated presentation."),errorHandler:this.alertService.error("Failed to update presentation.")})}},{key:"getSubjectTree",value:function(e,t){return this.get({resource:lm(),formatData:function(e){return{children:e,name:Fd.Root,id:null}},eventPrefix:i.SUBJECTS,expiryTime:Dd.STANDARD,callback:e,errorCallback:t})}},{key:"getSubject",value:function(e,t,n){return this.get({resource:um(e),eventPrefix:"".concat(i.SUBJECT,":").concat(e),expiryTime:Dd.STANDARD,callback:t,errorCallback:n})}},{key:"getSubjectMemberIds",value:function(e,t,n,r){return this.get({resource:pm(e,t),eventPrefix:"".concat(i.SUBJECT,":").concat(e,":").concat(t),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"getSubjectClassifications",value:function(e,t,n,r,a){return this.get({resource:fm(e,t,n),eventPrefix:eh(e,t,n),expiryTime:Dd.STANDARD,callback:r,errorCallback:a})}},{key:"createSubject",value:function(e,t,n){return this.create({resource:dm(),data:e,callback:t,errorCallback:n,eventPrefix:i.SUBJECT,invalidationKeys:[i.SUBJECTS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully created subject."),errorHandler:this.alertService.error("Failed to create subject.")})}},{key:"updateSubject",value:function(e,t,n,r){return this.update({resource:mm(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_SUBJECT,":").concat(e),invalidationKeys:["".concat(i.SUBJECT,":").concat(e),i.SUBJECTS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully updated subject."),errorHandler:this.alertService.error("Failed to save subject.")})}},{key:"deleteSubject",value:function(e,t,n){var r=this;return this.delete({resource:hm(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_SUBJECT,invalidationKeys:["".concat(i.SUBJECT,":").concat(e),i.SUBJECTS],successHandler:this.alertService.success("Successfully deleted subject."),errorHandler:function(e){var t=(null==e?void 0:e.code)===Pd.a.Conflict?"Cannot delete a subject with child subjects and/or classifications.":"Failed to delete subject.";r.alertService.error(t)()}})}},{key:"getObjectSubjects",value:function(e,t,n,r){return this.get({resource:gm(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.SUBJECTS),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectSubjects",value:function(e,t,n,r,a,o){var s=Kd.singularizeMemberType(n),c=["".concat(n,":").concat(e,":").concat(i.SUBJECTS)];return r&&c.push("".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)),c.push.apply(c,tm(t.map((function(e){return"".concat(i.SUBJECTS,":").concat(e,":").concat(n)})))),this.update({resource:ym(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_SUBJECTS,":").concat(e),invalidationKeys:c,successHandler:this.alertService.success("Successfully updated ".concat(s," subjects.")),errorHandler:this.alertService.error("Failed to update ".concat(s," subjects."))})}},{key:"addObjectsToSubject",value:function(e,t,n,r,a,o){var s=1===t.length?Kd.singularizeMemberType(n):n,c=["".concat(i.SUBJECT,":").concat(e,":").concat(n)].concat(tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.SUBJECTS)}))),tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)}))));return this.create({resource:vm(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.ADD_TO_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to subject.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to subject."))})}},{key:"removeObjectsFromSubject",value:function(e,t,n,r,a){var o=1===t.length?Kd.singularizeMemberType(n):n,s=["".concat(i.SUBJECT,":").concat(e,":").concat(n)].concat(tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.SUBJECTS)}))));return this.delete({resource:bm(e,t),callback:r,errorCallback:a,eventPrefix:"".concat(i.REMOVE_FROM_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from subject.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from subject."))})}},{key:"getClassificationTree",value:function(e,t,n){return this.get({resource:Am(e),formatData:function(e){return{children:e,name:Vd.Root,id:null}},eventPrefix:"".concat(i.CLASSIFICATIONS,":").concat(e),expiryTime:Dd.STANDARD,callback:t,errorCallback:n})}},{key:"getClassification",value:function(e,t,n){return this.get({resource:Im(e),eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e),expiryTime:Dd.STANDARD,callback:t,errorCallback:n})}},{key:"getClassificationMembers",value:function(e,t,n,r){return this.get({resource:Tm(e,t),eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e,":").concat(t),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"createClassification",value:function(e,t,n){return this.create({resource:jm(),data:e,callback:t,errorCallback:n,eventPrefix:i.CLASSIFICATION,invalidationKeys:[i.CLASSIFICATIONS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully created classification."),errorHandler:this.alertService.error("Failed to create classification.")})}},{key:"updateClassification",value:function(e,t,n,r){return this.update({resource:Lm(e),data:ga.a.omit(t,["followers"]),callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_CLASSIFICATION,":").concat(e),invalidationKeys:["".concat(i.CLASSIFICATION,":").concat(e),i.CLASSIFICATIONS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully updated classification."),errorHandler:this.alertService.error("Failed to save classification.")})}},{key:"deleteClassification",value:function(e,t,n){return this.delete({resource:wm(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_CLASSIFICATION,invalidationKeys:["".concat(i.CLASSIFICATION,":").concat(e),i.CLASSIFICATIONS],successHandler:this.alertService.success("Successfully deleted classification"),errorHandler:this.alertService.error("Failed to delete classification")})}},{key:"getObjectClassifications",value:function(e,t,n,r){return this.get({resource:km(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.CLASSIFICATIONS),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectClassifications",value:function(e,t,n,r,a,o){var s=Kd.singularizeMemberType(r),c=["".concat(r,":").concat(e,":").concat(i.CLASSIFICATIONS)];return c.push.apply(c,tm(n.map((function(e){return"".concat(i.CLASSIFICATION,":").concat(e,":").concat(r)})))),this.update({resource:xm(e,t),data:n,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_CLASSIFICATIONS,":").concat(e),invalidationKeys:c,successHandler:this.alertService.success("Successfully updated ".concat(s," classifications.")),errorHandler:this.alertService.error("Failed to update ".concat(s," classifications."))})}},{key:"addObjectsToClassification",value:function(e,t,n,r,a,o,s){var c=1===t.length?Kd.singularizeMemberType(n):n,l=["".concat(i.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&l.push(eh(r,a,n)),l.push.apply(l,tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)})))),this.create({resource:_m(e),data:t,callback:o,errorCallback:s,eventPrefix:"".concat(i.ADD_TO_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:l,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to classification.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to classification."))})}},{key:"removeObjectsFromClassification",value:function(e,t,n,r,a,o,s){var c=1===t.length?Kd.singularizeMemberType(n):n,l=["".concat(i.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&l.push(eh(r,a,n)),l.push.apply(l,tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.CLASSIFICATIONS)})))),this.delete({resource:Nm(e,t),callback:o,errorCallback:s,eventPrefix:"".concat(i.REMOVE_FROM_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:l,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(c," from classification.")),errorHandler:this.alertService.error("Failed to remove ".concat(c," from classification."))})}},{key:"getLevels",value:function(e,t){return this.get({resource:Pm(),eventPrefix:i.LEVELS,expiryTime:Dd.STANDARD,callback:e,errorCallback:t})}},{key:"getLevel",value:function(e,t,n){return this.get({resource:Dm(e),eventPrefix:"".concat(i.LEVEL,":").concat(e),expiryTime:Dd.STANDARD,callback:t,errorCallback:n})}},{key:"getLevelMemberIds",value:function(e,t,n,r){return this.get({resource:Rm(e,t),eventPrefix:"".concat(i.LEVEL,":").concat(e,":").concat(t),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"getLevelAudiences",value:function(e,t,n,r,a){return this.get({resource:Mm(e,t,n),eventPrefix:th(e,t,n),expiryTime:Dd.STANDARD,callback:r,errorCallback:a})}},{key:"createLevel",value:function(e,t,n){return this.create({resource:Um(),data:e,callback:t,errorCallback:n,eventPrefix:i.LEVEL,invalidationKeys:[i.LEVELS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully created level."),errorHandler:this.alertService.error("Failed to create level.")})}},{key:"updateLevel",value:function(e,t,n,r){return this.update({resource:Fm(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_LEVEL,":").concat(e),invalidationKeys:["".concat(i.LEVEL,":").concat(e),i.LEVELS],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully updated level."),errorHandler:this.alertService.error("Failed to save level.")})}},{key:"getObjectLevels",value:function(e,t,n,r){return this.get({resource:Vm(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.LEVELS),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectLevels",value:function(e,t,n,r,a,o){var s=Kd.singularizeMemberType(n),c=["".concat(n,":").concat(e,":").concat(i.LEVELS)];return r&&c.push("".concat(n,":").concat(e,":").concat(i.AUDIENCES)),this.update({resource:Bm(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_LEVELS,":").concat(e),invalidationKeys:c,successHandler:this.alertService.success("Successfully updated ".concat(s," levels.")),errorHandler:this.alertService.error("Failed to update ".concat(s," levels."))})}},{key:"addObjectsToLevel",value:function(e,t,n,r,a,o){var s=1===t.length?Xd.singularizeMemberType(n):n,c=["".concat(i.LEVEL,":").concat(e,":").concat(n)].concat(tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.LEVELS)}))),tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)}))));return this.create({resource:zm(e,r),data:t,callback:a,errorCallback:o,eventPrefix:"".concat(i.ADD_TO_LEVEL,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to level.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to level."))})}},{key:"removeObjectsFromLevel",value:function(e,t,n,r,a){var o=1===t.length?Xd.singularizeMemberType(n):n,s=["".concat(i.LEVEL,":").concat(e,":").concat(n)].concat(tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.LEVELS)}))));return this.delete({resource:Hm(e,t),callback:r,errorCallback:a,eventPrefix:"".concat(i.REMOVE_FROM_LEVEL,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(o," from level.")),errorHandler:this.alertService.error("Failed to remove ".concat(o," from level."))})}},{key:"getAudiences",value:function(e,t,n){return this.get({resource:qm(e),callback:t,errorCallback:n,eventPrefix:"".concat(i.AUDIENCES,":").concat(e),expiryTime:Dd.STANDARD})}},{key:"getAudience",value:function(e,t,n){return this.get({resource:Jm(e),callback:t,errorCallback:n,eventPrefix:"".concat(i.AUDIENCE,":").concat(e),expiryTime:Dd.STANDARD})}},{key:"getAudienceMembers",value:function(e,t,n,r){return this.get({resource:$m(e,t),eventPrefix:"".concat(i.AUDIENCE,":").concat(e,":").concat(t),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"createAudience",value:function(e,t,n){return this.create({resource:Km(),data:e,callback:t,errorCallback:n,eventPrefix:i.AUDIENCE,invalidationKeys:[i.AUDIENCES],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully created audience."),errorHandler:this.alertService.error("Failed to create audience.")})}},{key:"updateAudience",value:function(e,t,n,r){return this.update({resource:Ym(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(i.UPDATE_AUDIENCE,":").concat(e),invalidationKeys:["".concat(i.AUDIENCE,":").concat(e),i.AUDIENCES],expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully updated audience."),errorHandler:this.alertService.error("Failed to update audience.")})}},{key:"deleteAudience",value:function(e,t,n){return this.delete({resource:Wm(e),callback:t,errorCallback:n,eventPrefix:i.DELETE_AUDIENCE,invalidationKeys:["".concat(i.AUDIENCE,":").concat(e),i.AUDIENCES],successHandler:this.alertService.success("Successfully deleted audience"),errorHandler:this.alertService.error("Failed to delete audience")})}},{key:"getObjectAudiences",value:function(e,t,n,r){return this.get({resource:Zm(e),eventPrefix:"".concat(t,":").concat(e,":").concat(i.AUDIENCES),expiryTime:Dd.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectAudiences",value:function(e,t,n,r,a,o){var s=Kd.singularizeMemberType(r);return this.update({resource:Gm(e,t),data:n,callback:a,errorCallback:o,eventPrefix:"".concat(i.UPDATE_OBJECT_AUDIENCES,":").concat(e),invalidationKeys:["".concat(r,":").concat(e,":").concat(i.AUDIENCES)],successHandler:this.alertService.success("Successfully updated ".concat(s," audiences.")),errorHandler:this.alertService.error("Failed to update ".concat(s," audiences."))})}},{key:"addObjectsToAudience",value:function(e,t,n,r,a,o,s){var c=1===t.length?Xd.singularizeMemberType(n):n,l=["".concat(i.AUDIENCE,":").concat(e,":").concat(n)];return r&&l.push(th(r,a,n)),l.push.apply(l,tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)})))),this.create({resource:Qm(e),data:t,callback:o,errorCallback:s,eventPrefix:"".concat(i.ADD_TO_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:l,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to audience.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to audience."))})}},{key:"removeObjectsFromAudience",value:function(e,t,n,r,a,o,s){var c=1===t.length?Xd.singularizeMemberType(n):n,l=["".concat(i.AUDIENCE,":").concat(e,":").concat(n)];return r&&l.push(th(r,a,n)),l.push.apply(l,tm(t.map((function(e){return"".concat(n,":").concat(e,":").concat(i.AUDIENCES)})))),this.delete({resource:Xm(e,t),callback:o,errorCallback:s,eventPrefix:"".concat(i.REMOVE_FROM_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:l,expiryTime:Dd.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(c," from audience.")),errorHandler:this.alertService.error("Failed to remove ".concat(c," from audience."))})}},{key:"name",get:function(){return l.SUBJECT}},{key:"channelName",get:function(){return c.SUBJECT}}])&&am(t.prototype,n),r&&am(t,r),o}(Nd),rh={dataServiceName:l.SUBJECT,dataChannelName:c.SUBJECT},ah={getSubjectTreeFetchOptions:function(e,t){return Object.assign(Object.assign({},rh),{eventPrefix:i.SUBJECTS,fetchData:function(e){return e.getSubjectTree()},setData:e,onError:t})},getSubjectFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.SUBJECT,":").concat(e),fetchData:function(t){return t.getSubject(e)},setData:t,onError:n,deleteEventPrefix:i.DELETE_SUBJECT})},getSubjectMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.SUBJECT,":").concat(e,":").concat(t),fetchData:function(n){return n.getSubjectMemberIds(e,t)},setData:n,onError:r})},getSubjectClassificationFetchOptions:function(e,t,n,r,a){return Object.assign(Object.assign({},rh),{eventPrefix:eh(e,n,r),fetchData:function(t){return t.getSubjectClassifications(e,n,r)},setData:t,onError:a})},getObjectSubjectsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.SUBJECTS),fetchData:function(n){return n.getObjectSubjects(e,t)},setData:n,onError:r})},getPresentationsFetchOptions:function(e,t){return Object.assign(Object.assign({},rh),{eventPrefix:i.PRESENTATIONS,fetchData:function(e){return e.getPresentations()},setData:e,onError:t})},getPresentationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.PRESENTATION,":").concat(e),fetchData:function(t){return t.getPresentation(e)},setData:t,onError:n})},getClassificationTreeFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.CLASSIFICATIONS,":").concat(e),fetchData:function(t){return t.getClassificationTree(e)},setData:t,onError:n})},getClassificationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e),fetchData:function(t){return t.getClassification(e)},setData:t,onError:n,deleteEventPrefix:i.DELETE_CLASSIFICATION})},getClassificationMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.CLASSIFICATION,":").concat(e,":").concat(t),fetchData:function(n){return n.getClassificationMembers(e,t)},setData:n,onError:r})},getObjectClassificationsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.CLASSIFICATIONS),fetchData:function(n){return n.getObjectClassifications(e,t)},setData:n,onError:r})},getLevelsFetchOptions:function(e,t){return Object.assign(Object.assign({},rh),{eventPrefix:i.LEVELS,fetchData:function(e){return e.getLevels()},setData:e,onError:t})},getLevelFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.LEVEL,":").concat(e),fetchData:function(t){return t.getLevel(e)},setData:t,onError:n})},getLevelMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.LEVEL,":").concat(e,":").concat(t),fetchData:function(n){return n.getLevelMemberIds(e,t)},setData:n,onError:r})},getLevelAudiencesFetchOptions:function(e,t,n,r,a){return Object.assign(Object.assign({},rh),{eventPrefix:th(e,n,r),fetchData:function(t){return t.getLevelAudiences(e,n,r)},setData:t,onError:a})},getObjectLevelsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.LEVELS),fetchData:function(n){return n.getObjectLevels(e,t)},setData:n,onError:r})},getAudiencesFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.AUDIENCES,":").concat(e),fetchData:function(t){return t.getAudiences(e)},setData:t,onError:n})},getAudienceFetchOptions:function(e,t,n){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.AUDIENCE,":").concat(e),fetchData:function(t){return t.getAudience(e)},setData:t,onError:n})},getAudienceMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(i.AUDIENCE,":").concat(e,":").concat(t),fetchData:function(n){return n.getAudienceMembers(e,t)},setData:n,onError:r})},getObjectAudiencesFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},rh),{eventPrefix:"".concat(t,":").concat(e,":").concat(i.AUDIENCES),fetchData:function(n){return n.getObjectAudiences(e,t)},setData:n,onError:r})}},ih=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e.id]}},oh=function(e,t){var n=e.backboneAudienceIds;return t.filter((function(e){return n.includes(e.id)}))};function sh(e){var t=e.showLevels;return u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",null,"Audiences"),!!t&&u.createElement("th",null,"Mapped Backbone Audience(s)")))}function ch(e){var t,n=e.audience,r=e.levels;return u.createElement("tr",null,u.createElement("td",null,u.createElement(Sc,{appLink:(t=n,{application:s.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[t.presentationId,t.masterId]})},n.name)),u.createElement("td",null,r.map((function(e){return u.createElement(Sc,{key:e.id,appLink:ih(e),className:"mr-2"},e.name)}))))}function lh(e){var t=e.audiences,n=e.levels;return u.createElement(Ea.Table,{responsive:!0,bordered:!0},u.createElement(sh,{showLevels:!!t.length}),u.createElement("tbody",null,t.length?t.map((function(e){return u.createElement(ch,{key:e.masterId,audience:e,levels:oh(e,n)})})):u.createElement("tr",null,u.createElement("td",null,"This presentation has no audiences."))))}function uh(e){var t=null===e.masterId||void 0===e.masterId,n=ea(),r=wa(n);return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this audience",autoFocus:!0}),u.createElement(La,{label:"Mapped Level(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return u.createElement("option",{key:e.id,value:e.id},e.name)}))),u.createElement("div",{className:"d-flex justify-content-between"},u.createElement(du,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&u.createElement(Ea.Button,{as:Sc,variant:"danger",appLink:{application:s.SUBJECTS,action:a.Subjects.DELETE_AUDIENCE,args:[e.presentationId,e.masterId]}},"Delete")))}function ph(e){return u.createElement(va,{initialValues:e.audience,validationSchema:zd,onSubmit:e.saveAudience},u.createElement(uh,{masterId:e.audience&&e.audience.masterId,presentationId:e.presentationId,levels:e.levels}))}function fh(e){var t=e.objectAudiences,n=e.presentationAudiences;return t.filter((function(e){return n.some((function(t){return t.masterId===e.masterId}))}))}function dh(e){var t,n,r,a,i,o=Kd.singularizeMemberType(e.memberType),s=(n=(t=e).presentationAudiences,r=t.objectLevels,a=t.objectAudiences,i=r.map((function(e){return e.id})),n.filter((function(e){return rp.a.intersection(e.backboneAudienceIds,i).length||a.some((function(t){return t.masterId===e.masterId}))})));return u.createElement(u.Fragment,null,u.createElement("div",{className:"border-bottom pb-3 mb-3"},u.createElement("h6",null,"Backbone Audiences"),u.createElement("p",null,"Select which backbone audiences this ".concat(o," is mapped to.")),u.createElement("p",null,"To see how backbone audiences correspond to audiences, scroll down to the audience-backbone audience mappings table."),u.createElement(Uh,{initialValues:{backboneAudienceIds:e.objectLevels.map((function(e){return e.id}))},saveLevels:e.saveLevels,levels:e.levels,memberType:e.memberType})),u.createElement("h6",null,"Audiences"),u.createElement("p",null,"Select a presentation to view its audiences and map them to this ".concat(o,".")),u.createElement("div",{className:"w-50 pb-3"},u.createElement(Zh,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),u.createElement("p",null,"Audience to backbone audience mappings for this presentation are displayed below."),u.createElement(lh,{levels:e.levels,audiences:e.presentationAudiences}),u.createElement("p",null,"Only the audiences which are mapped to a backbone audience that this"+" ".concat(o," is mapped to are displayed below.")),!!s.length&&u.createElement(hh,{initialValues:{audienceIds:fh(e).map((function(e){return e.masterId}))},saveAudiences:e.saveAudiences,audiences:s}))}function mh(e){var t=ea(),n=wa(t);return u.createElement(ua,null,u.createElement(La,{label:"Audience(s)",as:"select",name:"audienceIds",id:"audience-ids",multiple:!0,size:e.audiences.length,value:t.values.audienceIds},e.audiences.map((function(e){return u.createElement("option",{key:e.masterId,value:e.masterId},e.name)}))),u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Audiences")))}function hh(e){return u.createElement(va,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.audienceIds;return e.saveAudiences(r,n)},enableReinitialize:!0},u.createElement(mh,{audiences:e.audiences}))}var gh=function(e){return function(t){if(!e)return t.appLink.action===a.Subjects.EDIT_AUDIENCE;switch(e){case Ud.Playlists:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_PLAYLISTS;case Ud.Series:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_SERIES;case Ud.Videos:return t.appLink.action===a.Subjects.EDIT_AUDIENCE_VIDEOS}}};function yh(e){var t=e.presentation,n=e.audienceId,r=e.memberType;return t?u.createElement(u.Fragment,null,u.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:Qd(t.id,n),isItemActive:gh(r)}))):u.createElement(u.Fragment,null)}function vh(e){var t=e.item,n=e.getItemAppLink,r=e.actions;return u.createElement("tr",null,u.createElement("td",null,u.createElement(Sc,{appLink:n(t)},t.name)),r&&u.createElement("td",null,u.createElement("span",{className:"d-flex justify-content-end"},u.createElement(hl,{actions:r}))))}function bh(e){var t=e.items,n=e.memberType,r=e.getItemAppLink,a=e.getActions;if(!t.length)return u.createElement("div",{className:"py-5"},"No ".concat(n," in this audience."));var i="".concat(wl.toTitleCase(Xd.singularizeMemberType(n))," Name");return u.createElement(Ea.Table,{responsive:!0},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",null,i),m.isFunction(a)&&u.createElement("th",null))),u.createElement("tbody",null,t.map((function(e){return u.createElement(vh,{item:e,key:e.id,getItemAppLink:r,actions:m.isFunction(a)&&a(e)})}))))}function Sh(e){var t=e.item,n=e.getItemAppLink,r=e.actions,a=e.pinState;return u.createElement("tr",null,u.createElement("td",null,u.createElement(Sc,{appLink:n(t)},t.name)),a.isPinnable&&u.createElement("td",null,u.createElement(wc,{selected:parseInt(t.id)===parseInt(a.currentPinnedVideo),onToggle:function(e){return a.onChange(e,t.id)},id:t.id})),r&&u.createElement("td",null,u.createElement("span",{className:"d-flex justify-content-end"},u.createElement(hl,{actions:r}))))}function Eh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ch(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ah(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ah(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ih(e){var t=e.items,n=e.memberType,r=e.classification,a=e.getItemAppLink,i=e.getActions,o=e.updatePinnedVideo,s=Oh(u.useState(!1),2),c=s[0],l=s[1],p=function(e,t){var n=e.pinnedVideoMasterId||null,r=Eh(u.useState(n),2),a=r[0],i=r[1];return{currentPinnedVideo:a,onChange:function(e,t){i(e?t:null)},canSubmit:n!==a,isPinnable:t===Md.Videos}}(r,n);if(!t.length)return u.createElement("div",{className:"py-5"},"No ".concat(n," in this classification."));var f="".concat(wl.toTitleCase(Kd.singularizeMemberType(n))," Name");return u.createElement(u.Fragment,null,u.createElement(Ea.Table,{responsive:!0},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",null,f),p.isPinnable&&u.createElement("th",null,"Pinned"),m.isFunction(i)&&u.createElement("th",null))),u.createElement("tbody",null,t.map((function(e){return u.createElement(Sh,{item:e,key:e.id,getItemAppLink:a,actions:m.isFunction(i)&&i(e),pinState:p})})))),p.isPinnable&&u.createElement(du,{showSpinner:c,onClick:function(){l(!0),o(p.currentPinnedVideo,(function(){return l(!1)}))},disabled:!p.canSubmit||c},"Save"))}function Th(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lh=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e]}};function wh(e){var t,n,r,i,o,c,l=ea(),p=wa(l),f=null===(null===(t=e.classification)||void 0===t?void 0:t.id)||void 0===(null===(n=e.classification)||void 0===n?void 0:n.id),d=!f||!(!l.values.parentIds||!l.values.parentIds.length),m=Th(u.useState(d),2),h=m[0],g=m[1];u.useEffect((function(){return g(d)}),[null===(r=e.classification)||void 0===r?void 0:r.id,l.values.parentIds]),u.useEffect((function(){l.values.backboneClassificationIds.length&&!l.touched.backboneClassificationIds&&l.setFieldTouched("backboneClassificationIds",!0)}),[l.values.backboneClassificationIds]);var y=function(e){return l.setFieldValue("parentIds",rp.a.addOrRemove(l.values.parentIds.map((function(e){return e.toString()})),e.id.toString()))},v=function(e){return l.setFieldValue("backboneClassificationIds",rp.a.addOrRemove(l.values.backboneClassificationIds.map((function(e){return e.toString()})),e.id.toString()))},b=function(e){return"".concat(Ca.getCustomFormControlClassName(l.errors,l.touched,e)," h-auto py-2")};return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:l.values.name,placeholder:"Enter a name for this classification",autoFocus:!0}),u.createElement(La,{as:"select",label:"Type",name:"type",id:"type",value:l.values.type},ga.a.getEnumKeys(Bd).map((function(e){return u.createElement("option",{key:e,value:Bd[e]},e)}))),u.createElement(La,{label:"Coming Soon",name:"comingSoon",id:"comingSoon",type:"checkbox",checked:l.values.comingSoon}),u.createElement(La,{label:"Emphasize",name:"emphasize",id:"emphasize",type:"checkbox",checked:l.values.emphasize}),u.createElement(La,{label:"Can Be Preferred",name:"canBePreferred",id:"canBePreferred",type:"checkbox",checked:l.values.canBePreferred}),!f&&u.createElement(u.Fragment,null,u.createElement("label",null,"Total Followers:")," ",null===(o=null===(i=e.classification.followers)||void 0===i?void 0:i.data)||void 0===o?void 0:o.length),u.createElement(La,{name:"parentIds"},(function(){var t,n,r;return u.createElement("div",{className:b("parentIds")},u.createElement(Kl,{label:"Parent Classification(s)",tree:e.classificationTree,selectedIds:l.values.parentIds,onSelect:y,collapse:h,noSelectionMessage:"No parent selected, this will be a root classification.",isNodeDisabled:(n=e.classificationTree,r=null===(t=e.classification)||void 0===t?void 0:t.id,function(e){if(e.id===r)return!0;var t=_l.find(n,r);return!!_l.find(t,e.id)})}))})),u.createElement(La,{name:"backboneClassificationIds"},(function(){return u.createElement("div",{className:b("backboneClassificationIds")},u.createElement(Kl,{label:"Mapped Subject(s)",tree:e.subjectTree,selectedIds:l.values.backboneClassificationIds,onSelect:v,collapse:!f,getSelectedItemAppLink:Lh}))})),u.createElement(nl,{imageType:Ic.Covers,fieldName:"cover",application:s.SUBJECTS,uploadAction:a.Subjects.UPLOAD_IMAGE}),u.createElement(nl,{imageType:Ic.Banners,fieldName:"banner",application:s.SUBJECTS,uploadAction:a.Subjects.UPLOAD_IMAGE}),u.createElement("div",{className:"d-flex justify-content-between"},u.createElement(du,{showSpinner:l.isSubmitting,type:"submit",disabled:!p},f?"Create":"Save"),!f&&u.createElement(Ea.Button,{as:Sc,variant:"danger",appLink:{application:s.SUBJECTS,action:a.Subjects.DELETE_CLASSIFICATION,args:[e.presentationId,null===(c=e.classification)||void 0===c?void 0:c.id]}},"Delete")))}function kh(e){return u.createElement(va,{initialValues:e.classification,validationSchema:Hd,onSubmit:e.saveClassification},u.createElement(wh,{presentationId:e.presentationId,classificationTree:e.classificationTree,subjectTree:e.subjectTree,classification:e.classification}))}var xh=function(e){return function(t){if(!e)return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION;switch(e){case Md.Playlists:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;case Md.Series:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_SERIES;case Md.Videos:return t.appLink.action===a.Subjects.EDIT_CLASSIFICATION_VIDEOS}}};function _h(e){var t=e.presentation,n=e.classificationId,r=e.memberType;return t?u.createElement(u.Fragment,null,u.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:Zd(t.id,n),isItemActive:xh(r)}))):u.createElement(u.Fragment,null)}function Nh(e){var t=ea(),n=wa(t),r=function(e){return t.setFieldValue("classificationIds",rp.a.addOrRemove(t.values.classificationIds.map((function(e){return e.toString()})),e.id.toString()))},i="".concat(Ca.getCustomFormControlClassName(t.errors,t.touched,"classificationIds")," h-auto py-2");return u.createElement(ua,null,u.createElement(La,{name:"classificationIds"},(function(){return u.createElement("div",{className:i},u.createElement(Kl,{label:"Mapped Classification(s)",tree:e.classificationTree,selectedIds:t.values.classificationIds,onSelect:r,getSelectedItemAppLink:(n=e.presentationId,function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[n,e]}}),isNodeDisabled:e.isClassificationDisabled}));var n})),u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Classifications")))}function Ph(e){return u.createElement(va,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.classificationIds;return e.saveClassifications(r,n)},enableReinitialize:!0},u.createElement(Nh,{presentationId:e.presentationId,classificationTree:e.classificationTree,isClassificationDisabled:e.isClassificationDisabled}))}function Dh(e){var t=null===e.id||void 0===e.id,n=ea(),r=wa(n);return u.createElement(ua,null,u.createElement(La,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this level",autoFocus:!0}),u.createElement(du,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"))}function Rh(e){return u.createElement(va,{initialValues:e.level,validationSchema:qd,onSubmit:e.saveLevel},u.createElement(Dh,{id:e.level&&e.level.id}))}function Mh(e){var t=Kd.singularizeMemberType(e.memberType),n=ea(),r=wa(n);return u.createElement(ua,null,u.createElement(La,{label:"Backbone Audience(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return u.createElement("option",{key:e.id,value:e.id},e.name)}))),u.createElement("p",null,u.createElement("strong",null,"Note:")," When removing a ".concat(t," from a backbone audience, that backbone audience's mapped audiences "),u.createElement("strong",null,"will not")," be automatically removed from."),u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(du,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},"Save Backbone Audience")))}function Uh(e){return u.createElement(va,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.backboneAudienceIds;return e.saveLevels(r,!1,n)}},u.createElement(Mh,{levels:e.levels,memberType:e.memberType}))}var Fh=function(e){return function(t){return t.appLink.action===e}};function Vh(e){var t=e.levelId,n=e.activeAction,r=e.presentationId;return u.createElement(u.Fragment,null,u.createElement(Ea.Alert,{variant:"danger"},"Warning: You are editing the backbone audiences."),u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:Gd(t,r),isItemActive:Fh(n)})))}var Bh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function zh(e){return u.createElement(u.Fragment,null,e.audiences.map((function(t){return u.createElement("th",{key:t.masterId},u.createElement("span",{className:"d-inline-block"},u.createElement(wc,{selected:e.getIsAudienceSelected(t),onToggle:function(n){return e.onToggleAudience(t.masterId,n)}})),u.createElement(Sc,{appLink:e.getAudienceAppLink(t.masterId)},function(e,t){return t?e.name:"Audience: ".concat(e.name)}(t,e.showAudienceSubHeader)))})))}function Hh(e){var t=e.memberType,n=e.hasActions,r=e.audiences,a=Bh(e,["memberType","hasActions","audiences"]),i="".concat(wl.toTitleCase(Xd.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,s=o&&r.length>1,c=o?2:1,l=Object.assign({audiences:r,showAudienceSubHeader:s},a);return u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{rowSpan:c},i),o&&(s?u.createElement("th",{colSpan:r.length,className:"text-center"},"Audiences"):u.createElement(zh,Object.assign({},l))),n&&u.createElement("th",{rowSpan:c})),o&&s&&u.createElement("tr",null,u.createElement(zh,Object.assign({},l))))}function qh(e){var t=e.member,n=t.id,r=t.name,a=t.audiences,i=void 0===a?[]:a,o=e.getMemberAppLink,s=e.onToggleAudience,c=e.actions,l=m.isFunction(o)&&o(n);return i.length&&!m.isFunction(s)&&f.ErrorHelper.throw(new Ra.a("onToggleAudience must be passed to LevelMemberItem")),u.createElement("tr",null,u.createElement("td",null,l?u.createElement(Sc,{appLink:o(n)},r):r),!!i.length&&i.map((function(e){return u.createElement("td",{key:e.id},u.createElement(wc,{selected:e.selected,onToggle:function(t){return s(e.id,t,n)}}))})),c&&u.createElement("td",null,u.createElement("span",{className:"d-flex justify-content-end"},u.createElement(hl,{actions:c}))))}var Jh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function $h(e,t){return function(n){var r=n[e],a=Zl.length(r);return!!a&&a===t.length}}function Kh(e){var t=e.members,n=e.memberType,r=e.getActions,a=e.audiences,i=e.getAudienceAppLink,o=e.onToggleAudience,s=Jh(e,["members","memberType","getActions","audiences","getAudienceAppLink","onToggleAudience"]);if(!t.length)return u.createElement("div",{className:"py-5"},"No ".concat(n," in this level."));var c=m.isFunction(r),l={memberType:n,audiences:a,getAudienceAppLink:i,getIsAudienceSelected:$h(n,t),onToggleAudience:o,hasActions:c};return u.createElement(Ea.Table,{responsive:!0,bordered:!0},u.createElement(Hh,Object.assign({},l)),u.createElement("tbody",null,t.map((function(e,t){return u.createElement(qh,Object.assign({key:t,member:e,actions:c&&r(e.id),onToggleAudience:o},s))}))))}function Yh(e){var t=e.values,n=t.name,r=t.description,a=e.id,i=e.isSubmitting,o=!a;return u.createElement(ua,null,u.createElement(La,{label:"Name",type:"text",name:"name",id:"name",value:n,placeholder:"Enter a name for this presentation",autoFocus:!0}),u.createElement(La,{label:"Description",as:"textarea",name:"description",id:"description",value:r,placeholder:"Describe this presentation here"}),u.createElement(du,{showSpinner:i,type:"submit"},o?"Create":"Save"))}function Wh(e){var t=e.presentation,n=(t=void 0===t?{}:t).id,r=void 0===n?null:n,a=t.name,i=void 0===a?"":a,o=t.description,s=void 0===o?"":o,c=e.savePresentation;return u.createElement(ia,{initialValues:{name:i,description:s},validationSchema:Jd,onSubmit:c},(function(e){return u.createElement(Yh,Object.assign({id:r},e))}))}function Zh(e){var t=e.presentations,n=e.currentPresentationId,r=e.setCurrentPresentation,a=e.label,i=function(e){var n,a,i=(n=e,a=t,rp.a.first(a.filter((function(e){return e.id.toString()===n.toString()}))));r(i)};return u.useEffect((function(){t&&!n&&r(rp.a.first(t))}),[t]),u.createElement(u.Fragment,null,!!n&&u.createElement(u.Fragment,null,u.createElement(Ea.Form.Label,null,a),u.createElement(Ea.Form.Control,{as:"select",value:n,onChange:function(e){return i(e.target.value)},className:"cursor-pointer"},t.map((function(e){return u.createElement("option",{value:e.id,key:e.id},e.name)})))))}function Gh(e){return u.createElement(u.Fragment,null,u.createElement("h4",null,"".concat(wl.toTitleCase(e.memberType))),u.createElement(Ea.Table,{responsive:!0},u.createElement("tbody",null,e.objects&&e.objects.map((function(t){return u.createElement("tr",{key:t.id},u.createElement("td",null,u.createElement(Sc,{appLink:Kd.getMemberAppLink(e.memberType,t.id)},t.name)))})))),u.createElement(lg,{initialValues:{backboneClassificationIds:[]},subjectTree:e.subjectTree,saveSubjects:e.onClickAddToSubject,memberType:e.memberType,saveBtnText:"Add to backbone classification",subjectRequired:!0}))}function Qh(e){return function(e){if(Array.isArray(e))return Xh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eg(e){var t=Kd.singularizeMemberType(e.memberType),n=[].concat(Qh(e.objectClassifications),Qh(e.objectSubjectClassifications)).map((function(e){return e.id}));return u.createElement(u.Fragment,null,u.createElement("div",{className:"border-bottom pb-3 mb-3"},u.createElement("h6",null,"Backbone Classifications"),u.createElement("p",null,"Select which backbone classifications this ".concat(t," is mapped to.")),u.createElement(lg,{initialValues:{backboneClassificationIds:e.objectSubjects.map((function(e){return e.id}))},subjectTree:e.subjectTree,saveSubjects:e.saveSubjects,memberType:e.memberType,saveBtnText:"Save Backbone Classifications",allowMultiple:!0})),u.createElement("h6",null,"Classifications"),u.createElement("p",null,"Select a presentation to view its classifications and map them to this ".concat(t,".")),u.createElement("div",{className:"w-50 pb-3"},u.createElement(Zh,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),e.currentPresentation&&e.classificationTree&&e.classificationTree.children.length?u.createElement(u.Fragment,null,u.createElement("p",null,"Only classifications which are mapped to one of the backbone classifications selected above can be selected."),u.createElement(Ph,{initialValues:{classificationIds:e.objectClassifications.map((function(e){return e.id}))},presentationId:e.currentPresentation.id,classificationTree:e.classificationTree,saveClassifications:e.saveClassifications,isClassificationDisabled:function(e){return!n.includes(e.id)}})):u.createElement("p",null,"This presentation has no classifications."))}function tg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ng(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ng(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Zh.defaultProps={label:"Presentation"};function rg(e){var t=!e.id,n=ea(),r=wa(n),i=!t||!!n.values.parentId,o=tg(u.useState(i),2),c=o[0],l=o[1];u.useEffect((function(){return l(i)}),[e.id,n.values.parentId]);var p=function(e){var t=e.id===n.values.parentId?null:e.id;n.setFieldValue("parentId",t)},f="".concat(Ca.getCustomFormControlClassName(n.errors,n.touched,"parentId")," h-auto py-2");return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this backbone classification",autoFocus:!0}),u.createElement(La,{name:"parentId"},(function(){return u.createElement("div",{className:f},u.createElement(Kl,{label:"Parent Backbone Classification",tree:e.subjectTree,selectedIds:[n.values.parentId],onSelect:p,collapse:c,noSelectionMessage:"No parent selected, this will be a root backbone classification.",isNodeDisabled:(t=e.subjectTree,r=e.id,function(e){if(e.id===r)return!0;var n=_l.find(t,r);return!!_l.find(n,e.id)})}));var t,r})),u.createElement("div",{className:"d-flex justify-content-between"},u.createElement(du,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&u.createElement(Ea.Button,{as:Sc,variant:"danger",appLink:{application:s.SUBJECTS,action:a.Subjects.DELETE_SUBJECT,args:[e.id]}},"Delete")))}function ag(e){return u.createElement(va,{initialValues:e.subject,validationSchema:$d,onSubmit:e.saveSubject},u.createElement(rg,{id:e.subject&&e.subject.id,subjectTree:e.subjectTree}))}var ig=function(e){return function(t){return t.appLink.action===e}};function og(e){var t=e.subjectId,n=e.activeAction,r=e.presentationId;return u.createElement(u.Fragment,null,u.createElement(Ea.Alert,{variant:"danger"},"Warning: You are editing the backbone classifications."),u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:Wd(t,r),isItemActive:ig(n)})))}var sg=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e]}};function cg(e){var t=ea(),n=wa(t),r=function(n){var r=e.allowMultiple?rp.a.addOrRemove(t.values.backboneClassificationIds.map((function(e){return e.toString()})),n.id.toString()):[n.id];t.setFieldValue("backboneClassificationIds",r)},a="".concat(Ca.getCustomFormControlClassName(t.errors,t.touched,"backboneClassificationIds")," h-auto py-2");return u.createElement(ua,null,u.createElement(La,{name:"backboneClassificationIds"},(function(){return u.createElement("div",{className:a},u.createElement(Kl,{label:"Mapped Backbone Classification".concat(e.allowMultiple?"(s)":""),tree:e.subjectTree,selectedIds:t.values.backboneClassificationIds,onSelect:r,collapse:!!t.initialValues.backboneClassificationIds.length,getSelectedItemAppLink:sg}))})),u.createElement("div",{className:"d-flex justify-content-end"},u.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.saveBtnText)))}function lg(e){var t;return u.createElement(va,{initialValues:e.initialValues,validationSchema:(t=e.subjectRequired,ba.object().shape({backboneClassificationIds:t?ba.array().of(ba.string()).min(1,"A subject is required").required("A subject is required"):ba.array().of(ba.string())}).noUnknown()),onSubmit:function(t,n){var r=t.backboneClassificationIds;return e.saveSubjects(r,!1,n)}},u.createElement(cg,{subjectTree:e.subjectTree,memberType:e.memberType,allowMultiple:e.allowMultiple,saveBtnText:e.saveBtnText}))}cg.defaultProps={saveBtnText:"Save"};var ug=function(e){return u.createElement("div",{className:"border rounded p-2 mb-3"},u.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.classifications&&e.classifications.length?u.createElement("ul",{className:"list-unstyled mb-0"},e.classifications.map((function(t){return u.createElement("li",{key:t.id,className:"py-1"},u.createElement(Sc,{appLink:(n=e.presentation.id,r=t.id,{application:s.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[n,r]})},t.name));var n,r}))):u.createElement("p",null,u.createElement("em",null,"There are no classifications mapped to this backbone classification in this presentation.")))},pg=function(e){return u.createElement(u.Fragment,null,!!e.presentations&&!!e.classificationDictionary&&e.presentations.map((function(t){return u.createElement(ug,{key:t.id,presentation:t,classifications:e.classificationDictionary[t.id]})})))},fg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function dg(e){return u.createElement(u.Fragment,null,e.classifications.map((function(t){return u.createElement("th",{key:t.id},u.createElement("span",{className:"d-inline-block"},u.createElement(wc,{selected:e.getIsClassificationSelected(t),onToggle:function(n){return e.onToggleClassification(t.id,n)}})),u.createElement(Sc,{appLink:e.getClassificationAppLink(t.id)},function(e,t){return t?e.name:"Classification: ".concat(e.name)}(t,e.showClassificationSubHeader)))})))}function mg(e){var t=e.memberType,n=e.hasActions,r=e.classifications,a=fg(e,["memberType","hasActions","classifications"]),i="".concat(wl.toTitleCase(Kd.singularizeMemberType(t))," Name"),o=!!r&&!!r.length,s=o&&r.length>1,c=o?2:1,l=Object.assign({classifications:r,showClassificationSubHeader:s},a);return u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{rowSpan:c},i),o&&(s?u.createElement("th",{colSpan:r.length,className:"text-center"},"Classifications"):u.createElement(dg,Object.assign({},l))),n&&u.createElement("th",{rowSpan:c})),o&&s&&u.createElement("tr",null,u.createElement(dg,Object.assign({},l))))}function hg(e){var t=e.member,n=t.id,r=t.name,a=t.classifications,i=void 0===a?[]:a,o=e.getMemberAppLink,s=e.onToggleClassification,c=e.actions,l=m.isFunction(o)&&o(n);return i.length&&!m.isFunction(s)&&f.ErrorHelper.throw(new Ra.a("onToggleClassification must be passed to SubjectMemberItem")),u.createElement("tr",null,u.createElement("td",null,l?u.createElement(Sc,{appLink:o(n)},r):r),!!i.length&&i.map((function(e){return u.createElement("td",{key:e.id},u.createElement(wc,{selected:e.selected,onToggle:function(t){return s(e.id,t,n)}}))})),c&&u.createElement("td",null,u.createElement("span",{className:"d-flex justify-content-end"},u.createElement(hl,{actions:c}))))}var gg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function yg(e,t){return function(n){var r=n[e],a=Zl.length(r);return!!a&&a===t.length}}function vg(e){var t=e.members,n=e.memberType,r=e.getActions,a=e.classifications,i=e.getClassificationAppLink,o=e.onToggleClassification,s=gg(e,["members","memberType","getActions","classifications","getClassificationAppLink","onToggleClassification"]);if(!t.length)return u.createElement("div",{className:"py-5"},"No ".concat(n," in this backbone classification."));var c=m.isFunction(r),l={memberType:n,classifications:a,getClassificationAppLink:i,getIsClassificationSelected:yg(n,t),onToggleClassification:o,hasActions:c};return u.createElement(Ea.Table,{responsive:!0,bordered:!0},u.createElement(mg,Object.assign({},l)),u.createElement("tbody",null,t.map((function(e,t){return u.createElement(hg,Object.assign({key:t,member:e,actions:c&&r(e.id),onToggleClassification:o},s))}))))}function bg(e){var t=e.navItems,n=e.currentAppLink;return u.createElement(Ea.Container,null,u.createElement(Ea.Navbar,{className:"justify-content-between align-items-center"},u.createElement(Ea.Nav,null,!!t&&t.map((function(e,t){return u.createElement(Ea.Nav.Item,{key:t},u.createElement(Sc,{appLink:e.appLink,className:"nav-link".concat(El.isItemActive(e,n)?" text-primary":"")},e.label))})))))}function Sg(e,t){u.useEffect((function(){e.presentations&&!e.currentPresentation&&_d.getSetStateByKey(t,"currentPresentation")(rp.a.first(e.presentations))}),[e.presentations])}function Eg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Og(e){var t=X.useBasicFetch(sd(e.playlistId)),n=X.useBasicFetch(Ed.currentUser()),r=Eg(u.useState({}),2),i=r[0],o=r[1],s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};kd([ah.getObjectLevelsFetchOptions(e,Md.Playlists,r("playlistLevels"))],[e]),xd(ah.getObjectAudiencesFetchOptions(e,Md.Playlists,r("playlistAudiences")),[e,t.playlistLevels]),kd([ah.getPresentationsFetchOptions(r("presentations")),ah.getLevelsFetchOptions(r("levels"))],[]),xd(!!t.currentPresentation&&ah.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.playlistId,i,o),Sg(i,o);var c=!!(i.presentations&&i.levels&&i.presentationAudiences&&i.playlistLevels&&i.playlistAudiences);return u.createElement(u.Fragment,null,!!n.data&&u.createElement(Td,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_AUDIENCES,currentUser:n.data}),u.createElement(gl,{object:t.data}),!!c&&u.createElement(dh,{objectLevels:i.playlistLevels,objectAudiences:i.playlistAudiences,presentations:i.presentations,currentPresentation:i.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(o,"currentPresentation"),levels:i.levels,presentationAudiences:i.presentationAudiences,memberType:Md.Playlists,saveLevels:function(t,n,r){return s.updateObjectLevels(e.playlistId,t,Md.Playlists,n,r,r)},saveAudiences:function(t,n){return s.updateObjectAudiences(e.playlistId,i.currentPresentation.id,t,Md.Playlists,n,n)}}))}function Ag(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||Tg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ig(e){return function(e){if(Array.isArray(e))return jg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Tg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tg(e,t){if(e){if("string"==typeof e)return jg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jg(e,t):void 0}}function jg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lg(e){var t=X.useBasicFetch(sd(e.playlistId)),n=X.useBasicFetch(Ed.currentUser()),r=Ag(u.useState({}),2),i=r[0],o=r[1],s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};kd([ah.getSubjectTreeFetchOptions(r("subjectTree")),ah.getPresentationsFetchOptions(r("presentations"))],[]),kd([ah.getObjectSubjectsFetchOptions(e,Md.Playlists,r("playlistSubjects"))],[e]),xd(!!t.currentPresentation&&ah.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),u.useEffect((function(){return r("subjectClassifications")([])}),[t.playlistSubjects]);var a=function(e,t){return[].concat(Ig(t.subjectClassifications||[]),Ig(e))},i=t.playlistSubjects&&t.playlistSubjects.map((function(e){return ah.getSubjectClassificationFetchOptions(e.id,_d.getSetStateByKey(n,"subjectClassifications",a))}));kd(i,[t.playlistSubjects],!!i),xd(ah.getObjectClassificationsFetchOptions(e,Md.Playlists,r("playlistClassifications")),[e,t.playlistSubjects])}(e.playlistId,i,o),Sg(i,o);var c=!!(i.playlistSubjects&&i.subjectTree&&i.presentations&&i.classificationTree&&i.playlistClassifications&&i.subjectClassifications);return u.createElement(u.Fragment,null,!!n.data&&u.createElement(Td,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_SUBJECTS,currentUser:n.data}),u.createElement(gl,{object:t.data}),c&&u.createElement(eg,{objectSubjects:i.playlistSubjects,subjectTree:i.subjectTree,memberType:Md.Playlists,presentations:i.presentations,currentPresentation:i.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(o,"currentPresentation"),objectClassifications:i.playlistClassifications,objectSubjectClassifications:i.subjectClassifications,classificationTree:i.classificationTree,saveSubjects:function(t,n,r){return s.updateObjectSubjects(e.playlistId,t,Md.Playlists,n,r,r)},saveClassifications:function(t,n){return s.updateObjectClassifications(e.playlistId,i.currentPresentation.id,t,Md.Playlists,n,n)}}))}const wg={reorder(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};const r=rp.a.moveItem(e,t,n),a=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:a}}},updateState(e,t,n){const r=[],a=ga.a.deepClone(n),i=[e];let o=n[e];const s=!!o&&!!o.data&&o.data.length;for(;o&&Array.isArray(o.data);){r.push(...o.data);const t=o.pagination&&o.pagination.cursors&&o.pagination.cursors.next,a=!!t&&`${e}:${t}`;o=t&&n[a],o&&i.push(a)}if(!r.length)return n;const c=rp.a.findIndex(r,e=>e.id===t.sourceMemberId),l=[...r],u=l.splice(c,1),p=t.destinationMemberId?rp.a.findIndex(l,e=>e.id===t.destinationMemberId):l.length;return l.splice(p,0,u[0]),i.forEach(e=>{const t=l.splice(0,s);a[e].data=t}),a}};function kg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _g=function(e){return{application:s.VIDEOS,action:a.Videos.EDIT_VIDEO,args:[e.id]}};function Ng(e){var t,n,r=Object(g.useDispatch)(),i=qu(),o=X.useBasicFetch(sd(e.playlistId)),c=X.useBasicFetch(fd(e.playlistId)),l=X.useBasicFetch(Ed.currentUser()),p=kg(function(e){const[t,n]=Object(u.useState)();return Object(u.useEffect)(()=>{t&&(e.length!==t.length||function(e,t){let n=!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(e,t))&&n(null)},[e]),[t,n]}(null===(t=c.data)||void 0===t?void 0:t.data),2),f=p[0],d=p[1],m=f?{data:f,pagination:null}:c.data;return u.createElement(u.Fragment,null,!!l.data&&u.createElement(Td,{playlistId:e.playlistId,activeAction:a.Playlists.EDIT_PLAYLIST_VIDEOS,currentUser:l.data}),u.createElement(gl,{object:o.data}),!!m&&u.createElement(lu,{onSortEnd:function(t,n){if(t!==n){var a=wg.reorder(c.data.data,t,n),o=a.reorderRequest,s=a.reorderedItems;d(s);X.fetch(r,dd(e.playlistId,o,null,(function(){i.error("Failed to update playlist order."),d(null)})))}},videos:m,getVideoAppLink:_g,getVideoActions:(n=e.playlistId,function(e){return[{label:"Remove video",appLink:{application:s.PLAYLISTS,action:a.Playlists.REMOVE_VIDEO,args:[n.toString(),e.id.toString()]},className:"text-danger"}]}),emptyMessage:"There are no videos in this playlist."}))}function Pg(){var e=Object(g.useDispatch)(),t=qu(),n=X.useBasicFetch(Ed.currentUser());return u.createElement(u.Fragment,null,!!n.data&&u.createElement(Id,{savePlaylist:function(r,i){X.fetch(e,ld(r,n.data.id,(function(e){t.success("Successfully created playlist."),function(e){e&&e.id&&f.AppLinkHelper.trigger({application:s.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]})}(e)}),(function(){t.error("Failed to create playlist.")}),i))}}))}var Dg="rating,thumbnail,glance,herobanner",Rg=function(e){return{url:"/api/master/v2/objects/".concat(e,"?query=").concat(Dg),key:"videos:".concat(e)}},Mg=function(e){var t=e.slice().sort();return{key:"videos:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},Ug=function(e){return{url:"/ajax/hostedlibraries/rightsline/programs/".concat(e),key:"rightsline:videos:".concat(e),normalizeOptions:{namespace:"rightsline"}}},Fg=function(e,t,n,r,a){return{key:"videos:".concat(e),url:"/api/master/v2/objects/".concat(e),data:t,type:ee.a.PUT,success:n,error:r,always:a}};function Vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zg(e){var t=Object(g.useDispatch)(),n=qu(),r=X.useBasicFetch(sd(e.playlistId)),a=X.useBasicFetch(Rg(e.videoId)),i=Vg(u.useState(!1),2),o=i[0],s=i[1];var c=!!r.data&&!!a.data;return u.createElement($u,{title:"Remove Video",closePopup:e.closePopup,showLoadingSpinner:!c},!!c&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to remove ",u.createElement("strong",null,a.data.name)," from ",u.createElement("strong",null,r.data.name),"?")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){s(!0),X.fetch(t,md(e.playlistId,e.videoId,(function(){n.success("Successfully removed video from playlist")}),(function(){n.error("Failed to remove video from playlist")}),e.closePopup))},buttonText:"Yes, remove video",isSpinnerButton:!0,showSpinner:o}]})))}function Hg(e){return f.AppLinkHelper.trigger(function(e){return{application:s.PLAYLISTS,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}}(e))}function qg(e){var t=e?{application:s.PLAYLISTS,action:a.Playlists.SEARCH_PLAYLISTS,params:{query:e}}:{application:s.PLAYLISTS,action:a.Playlists.PLAYLISTS};f.AppLinkHelper.trigger(t)}function Jg(e){return u.createElement("div",{className:"pb-3 w-50"},u.createElement(ic,{initialQuery:e.query,placeholder:"Search for a playlist",onSuggestionSelected:Hg,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/playlists/instant/raw","?query=").concat(e)},activationLength:2,onSubmit:qg}))}var $g=s.PLAYLISTS,Kg=function(e){return{application:$g,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}};function Yg(e){var t=X.useBasicFetch(id(e.cursor));return u.createElement(u.Fragment,null,u.createElement(Jg,null),u.createElement(il,{collection:t&&t.data,collectionAppLink:{application:$g,action:a.Playlists.PLAYLISTS},newObjectAppLink:{application:$g,action:a.Playlists.NEW_PLAYLIST},getObjectAppLink:Kg,objectName:"Playlist"}))}var Wg=s.PLAYLISTS,Zg=function(e){return{application:Wg,action:a.Playlists.EDIT_PLAYLIST,args:[e.id]}};function Gg(e){var t=X.useBasicFetch(od(e.query,e.cursor));return u.createElement(u.Fragment,null,u.createElement(Jg,{query:e.query}),!!t.data&&(t.data.data.length?u.createElement(il,{collection:t.data,collectionAppLink:{application:Wg,action:a.Playlists.SEARCH_PLAYLISTS,params:{query:e.query}},newObjectAppLink:{application:Wg,action:a.Playlists.NEW_PLAYLIST},getObjectAppLink:Zg,objectName:"Playlist"}):u.createElement("p",null,"No playlists found, please try a different search query.")))}function Qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ey=function(e,t,n){return[{variant:"link",onClick:t,buttonText:"Cancel"},{variant:"danger",onClick:e,buttonText:"Yes, delete this audience",isSpinnerButton:!0,showSpinner:n}]};function ty(e){var t=e.id,n=e.routeToOnDelete,r=e.closePopup,a=Qg(u.useState(),2),i=a[0],o=a[1],s=Qg(u.useState(!1),2),c=s[0],p=s[1],d=Mu(l.SUBJECT);xd(ah.getAudienceFetchOptions(t,o),[t]);return u.createElement($u,{title:"Delete Audience",closePopup:r,showLoadingSpinner:!i},!!i&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,i.name),"?")),u.createElement(Yu,{buttons:ey((function(){p(!0);d.deleteAudience(t,(function(){r(),n&&f.AppLinkHelper.trigger(n)}),r)}),r,c)})))}function ny(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ry(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ry(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ry(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ay(e){var t=e.presentationId,n=e.audienceId,r=ny(u.useState(),2),a=r[0],i=r[1],o=ny(u.useState(),2),s=o[0],c=o[1],p=ny(u.useState(),2),f=p[0],d=p[1],m=Mu(l.SUBJECT);xd(ah.getAudienceFetchOptions(n,i),[n]),xd(ah.getLevelsFetchOptions(c),[]),xd(ah.getPresentationFetchOptions(t,d),[t]);return u.createElement(u.Fragment,null,u.createElement(yh,{presentation:f,audienceId:n}),!!f&&u.createElement("h6",null,"Presentation: ".concat(f.name)),!!a&&!!s&&u.createElement(ph,{audience:a,levels:s,saveAudience:function(e,r){return m.updateAudience(n,Object.assign(Object.assign({},e),{presentationId:t}),r,r)},presentationId:t}))}function iy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sy=function(e){return{application:s.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e]}};function cy(e){var t=e.presentationId,n=iy(u.useState(),2),r=n[0],i=n[1],o=iy(u.useState(),2),c=o[0],p=o[1],d=Mu(l.SUBJECT);xd(ah.getLevelsFetchOptions(i),[]),xd(ah.getPresentationFetchOptions(t,p),[t]);return u.createElement(u.Fragment,null,u.createElement("div",{className:"pb-2"},u.createElement(Ec,{appLink:sy(t),backToName:"audiences"})),!!c&&u.createElement("h6",null,"Presentation: ".concat(c.name)),!!r&&u.createElement(ph,{levels:r,presentationId:t,saveAudience:function(e,n){return d.createAudience(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]})}}(t,n),n)}}))}var ly=n(207),uy=n.n(ly);function py(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dy(e){var t=e.presentationId,n=e.selectedAudienceId,r=py(u.useState(),2),i=r[0],o=r[1];xd(ah.getAudiencesFetchOptions(t,o),[]);var c=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[t,e.masterId]}},l={application:s.SUBJECTS,action:a.Subjects.NEW_AUDIENCE,args:[t]};return u.createElement("div",{className:"".concat(uy.a.navContainer," h-auto pr-2 border-right")},u.createElement("h5",{className:"border-bottom pb-2"},"Audiences"),u.createElement(Sc,{appLink:l,className:"d-inline-block pb-2"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Audience")),u.createElement("div",{className:"border-top pt-1"},u.createElement("ul",{className:"list-unstyled"},i&&i.map((function(e){return u.createElement("li",{className:"position-relative py-1"},u.createElement(Sc,{className:(null==n?void 0:n.toString())===e.masterId.toString()?"text-primary font-weight-500":"",appLink:c(e)},e.name))})))))}function my(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gy(e){var t=e.presentationId,n=e.audienceId,r=e.memberType,a=my(u.useState(),2),i=a[0],o=a[1],s=my(u.useState(),2)[1],c=my(u.useState(),2),l=c[0],p=c[1];xd(ah.getPresentationFetchOptions(t,o),[]),xd(ah.getAudienceFetchOptions(n,s),[n]),xd(ah.getAudienceMembersFetchOptions(n,r,p),[n,r]);var f={items:l&&l.data,memberType:r,getItemAppLink:function(e){return Xd.getMemberAppLink(r,e.id)},getActions:function(e){return Xd.getMemberActions(n,Rd.Audience,r,e.id)}},d={presentation:i,audienceId:n},m=Cl(f);return u.createElement(u.Fragment,null,u.createElement(yh,Object.assign({},d,{memberType:r})),m&&u.createElement(bh,Object.assign({},f)))}function yy(e){return{application:s.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]}}function vy(e){return[{label:"Add child",getAppLink:function(t){return Object.assign(Object.assign({},yy(e)),{args:[e],params:{parentId:t.id}})}},{label:"Delete classification",getAppLink:function(t){return{application:s.SUBJECTS,action:a.Subjects.DELETE_CLASSIFICATION,args:[e,t.id]}},className:"text-danger"}]}var by=n(208),Sy=n.n(by);function Ey(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oy(e){var t=e.presentationId,n=e.selectedClassificationId,r=Ey(u.useState(),2),i=r[0],o=r[1],c=Ey(u.useState(),2),l=c[0],p=c[1];return function(e,t,n){kd([ah.getClassificationTreeFetchOptions(e,t),ah.getPresentationFetchOptions(e,n)],[e])}(t,o,p),u.createElement("div",{className:"".concat(Sy.a.navContainer," h-auto pr-2 border-right")},!!l&&u.createElement("h6",{className:"border-bottom pb-2"},"Classifications (".concat(l.name,")")),u.createElement(Sc,{appLink:yy(t),className:"d-inline-block pb-2"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Classification")),!!i&&u.createElement("div",{className:"border-top pt-1"},u.createElement(zl,{tree:i,getAppLink:function(e){return function(e,t){return{application:s.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,t.id]}}(t,e)},selectedIds:[n],actions:vy(t)})))}function Ay(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ty(e){var t=e.classificationId,n=e.routeToOnDelete,r=e.closePopup,a=Ay(u.useState(),2),i=a[0],o=a[1],s=Ay(u.useState(!1),2),c=s[0],p=s[1];xd(ah.getClassificationFetchOptions(t,o),[]);var d=Mu(l.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){p(!0);d.deleteClassification(t,(function(){r(),n&&f.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this classification",isSpinnerButton:!0,showSpinner:c}];return u.createElement($u,{title:"Delete Classification",closePopup:r,showLoadingSpinner:!i},!!i&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,i.name),"?")),u.createElement(Yu,{buttons:m})))}function jy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ly(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ly(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ly(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wy(e){var t=e.presentationId,n=e.classificationId,r=jy(u.useState(),2),a=r[0],i=r[1],o=jy(u.useState(),2),s=o[0],c=o[1],p=jy(u.useState(),2),f=p[0],d=p[1],m=jy(u.useState(),2),h=m[0],g=m[1],y=Mu(l.SUBJECT),v=ah.getClassificationFetchOptions(n,i),b=ah.getPresentationFetchOptions(t,c),S=ah.getClassificationTreeFetchOptions(t,d);xd(ah.getSubjectTreeFetchOptions(g),[]),xd(v,[n]),kd([b,S],[t]);return u.createElement("div",null,u.createElement(_h,{presentation:s,classificationId:n}),!!a&&!!f&&!!h&&u.createElement(kh,{classification:a,presentationId:t,subjectTree:h,classificationTree:f,saveClassification:function(e,t){var r=Object.assign({pinnedVideoMasterId:(null==a?void 0:a.pinnedVideoMasterId)||null},e);return y.updateClassification(n,r,t,t)}}))}function ky(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _y(e){var t=e.presentationId,n=e.classificationId,r=e.memberType,a=ky(u.useState(),2),i=a[0],o=a[1],s=ky(u.useState(),2),c=s[0],p=s[1],f=ky(u.useState(),2),d=f[0],m=f[1];xd(ah.getPresentationFetchOptions(t,o),[]),xd(ah.getClassificationFetchOptions(n,p),[n]),xd(ah.getClassificationMembersFetchOptions(n,r,m),[n,r]);var h=Mu(l.SUBJECT),g={items:d&&d.data,memberType:r,classification:c,updatePinnedVideo:function(e,t){var r=Object.assign(Object.assign({},c),{pinnedVideoMasterId:e});h.updateClassification(n,r,t)},getItemAppLink:function(e){return Kd.getMemberAppLink(r,e.id)},getActions:function(e){return Kd.getMemberActions(n,Rd.Classification,r,e.id)}},y={presentation:i,classificationId:n},v=Cl(g);return u.createElement(u.Fragment,null,u.createElement(_h,Object.assign({},y,{memberType:r})),v&&u.createElement(Ih,Object.assign({},g)))}function Ny(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Py(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Py(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Py(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dy(e){var t=e.presentationId,n=e.parentId,r=Ny(u.useState(),2),i=r[0],o=r[1],c=Ny(u.useState(),2),p=c[0],d=c[1],m=Mu(l.SUBJECT),h=ah.getClassificationTreeFetchOptions(t,o);xd(ah.getSubjectTreeFetchOptions(d),[]),xd(h,[t]);return u.createElement("div",null,u.createElement("h4",{className:"py-2"},"Create New Classification"),!!p&&!!i&&u.createElement(kh,{classification:n?{parentIds:[n]}:{},presentationId:t,subjectTree:p,classificationTree:i,saveClassification:function(e,n){return m.createClassification(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),n&&n.id&&f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]})}}(t,n),n)}}))}var Ry=function(e){return{key:"series:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=thumbnail,tallPoster,banner,rating")}},My=function(e){var t=e.slice().sort();return{key:"series:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},Uy=function(e,t,n,r){return{url:"/api/master/v2/series",key:"series",data:e,type:ee.a.POST,success:t,error:n,always:r}},Fy=function(e,t,n,r,a){return{url:"/api/master/v2/objects/".concat(e),key:"update:series:".concat(e),data:t,type:ee.a.PUT,success:n,error:r,always:a}};function Vy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return By(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return By(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function By(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zy(e){var t=Vy(u.useState(),2),n=t[0],r=t[1],a=Vy(u.useState(!1),2),i=a[0],o=a[1],s=X.useBasicFetch(function(e,t){switch(e){case Md.Playlists:return sd(t);case Md.Series:return Ry(t);case Md.Videos:return Rg(t)}}(e.memberType,e.memberId)),c=Mu(l.SUBJECT);xd(ah.getClassificationFetchOptions(e.classificationId,r),[e.classificationId]);var p=!!n&&!!s.data,f="Remove ".concat(wl.toTitleCase(Kd.singularizeMemberType(e.memberType)));return u.createElement($u,{title:f,closePopup:e.closePopup,showLoadingSpinner:!p},p&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to remove ",u.createElement("strong",null,s.data.name)," from ",u.createElement("strong",null,n.name),"?"),u.createElement("p",null,"This will not remove it from the backbone subject.")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),c.removeObjectsFromClassification(e.classificationId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup),n.pinnedVideoMasterId===e.memberId&&c.updateClassification(e.classificationId,Object.assign(Object.assign({},n),{pinnedVideoMasterId:null}))},buttonText:"Yes, remove this ".concat(Kd.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function Hy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jy(e){var t=e.id,n=Hy(u.useState(),2),r=n[0],i=n[1],o=Mu(l.SUBJECT);xd(ah.getLevelFetchOptions(t,i),[t]);return u.createElement(u.Fragment,null,u.createElement(Vh,{levelId:t,activeAction:a.Subjects.EDIT_LEVEL}),u.createElement("h4",{className:"py-2"},"Edit Level"),!!r&&u.createElement(Rh,{level:r,saveLevel:function(e,n){return o.updateLevel(t,e,n,n)}}))}function $y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ky(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ky(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ky(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yy(){var e=$y(u.useState(),2),t=e[0],n=e[1];return xd(ah.getLevelsFetchOptions(n),[]),u.useEffect((function(){t&&f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[rp.a.first(t).id]},{replace:!0})}),[t]),u.createElement(u.Fragment,null)}function Wy(){var e=Mu(l.SUBJECT);return u.createElement(u.Fragment,null,u.createElement("h4",{className:"py-2"},"Create New Level"),u.createElement(Rh,{saveLevel:function(t,n){return e.createLevel(t,function(e){return function(t){e(),t&&t.id&&f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[t.id]})}}(n),n)}}))}var Zy=n(209),Gy=n.n(Zy);function Qy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ev(e){var t=e.selectedLevelId,n=Qy(u.useState(),2),r=n[0],i=n[1];xd(ah.getLevelsFetchOptions(i),[]);var o=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e.id]}},c={application:s.SUBJECTS,action:a.Subjects.NEW_LEVEL};return u.createElement("div",{className:"".concat(Gy.a.navContainer," h-auto pr-2 border-right")},u.createElement("h5",{className:"border-bottom pb-2"},"Backbone Audiences"),u.createElement(Sc,{appLink:c,className:"d-inline-block pb-2"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Backbone Audience")),u.createElement("div",{className:"border-top pt-1"},u.createElement("ul",{className:"list-unstyled"},r&&r.map((function(e){return u.createElement("li",{className:"position-relative py-1"},u.createElement(Sc,{className:(null==t?void 0:t.toString())===e.id.toString()?"text-primary font-weight-500":"",appLink:o(e)},e.name))})))))}var tv=function(e){return u.createElement("div",{className:"border rounded p-2 mb-3"},u.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.audiences&&e.audiences.length?u.createElement("ul",{className:"list-unstyled mb-0"},e.audiences.map((function(t){return u.createElement("li",{key:t.masterId,className:"py-1"},u.createElement(Sc,{appLink:(n=e.presentation.id,r=t.masterId,{application:s.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[n,r]})},t.name));var n,r}))):u.createElement("p",null,u.createElement("em",null,"There are no audiences mapped to this level in this presentation.")))},nv=function(e){return u.createElement(u.Fragment,null,!!e.presentations&&!!e.audienceDictionary&&e.presentations.map((function(t){return u.createElement(tv,{key:t.id,presentation:t,audiences:e.audienceDictionary[t.id]})})))};function rv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return av(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return av(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function av(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iv(e){var t=e.levelId,n=rv(u.useState({}),2),r=n[0];return function(e,t){var n=function(e){return _d.getSetStateByKey(t,e)};xd(ah.getLevelAudiencesFetchOptions(e,n("audiences")),[e]),xd(ah.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),u.createElement(u.Fragment,null,u.createElement(Vh,{levelId:t,activeAction:a.Subjects.LEVEL_AUDIENCES}),u.createElement(nv,{presentations:r.presentations,audienceDictionary:rp.a.groupBy(r.audiences,"presentationId")}))}function ov(e,t){return _d.getSetStateByKey(e,t)}function sv(e){switch(e){case Ud.Playlists:return a.Subjects.EDIT_LEVEL_PLAYLISTS;case Ud.Series:return a.Subjects.EDIT_LEVEL_SERIES;case Ud.Videos:return a.Subjects.EDIT_LEVEL_VIDEOS}}function cv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uv(e){var t=cv(u.useState({}),2),n=t[0],r=t[1],i=n.presentations,o=n.audiences,c=n.memberIds,p=n.membersWithAudiences,d=X.useBasicFetch(Array.isArray(c)&&c.length?function(e,t){switch(e){case Ud.Playlists:return cd(t);case Ud.Series:return My(t);case Ud.Videos:return Mg(t)}}(e.memberType,c):null),m=Mu(l.SUBJECT);function h(t){f.AppLinkHelper.trigger({application:s.SUBJECTS,action:e.action,args:[e.levelId],params:{presentationId:t}})}!function(e,t,n){var r=e.presentationId,a=e.levelId,i=e.memberType;xd(ah.getPresentationsFetchOptions(ov(n,"presentations")),[]),xd(ah.getLevelMemberIdsFetchOptions(a,i,ov(n,"memberIds")),[a,i]),xd(!!r&&ah.getLevelAudiencesFetchOptions(a,ov(n,"audiences"),r,i),[a,i,r],!!r)}(e,0,r),function(e,t,n,r){var a=n.audiences;u.useEffect((function(){ov(r,"membersWithAudiences")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,audiences:n.map((function(n){return{id:n.masterId,selected:(r=t,a=n,!!a[e]&&!!a[e].data.filter((function(e){return e.id===r.id})).length)};var r,a}))}}))}(t.memberType,e,a))}),[e,a])}(d.data,e,n,r),u.useEffect((function(){!e.presentationId&&(null==i?void 0:i.length)&&h(rp.a.first(i).id)}),[e.presentationId]);var g,y,v=!!e.presentationId&&!!o;return u.createElement(u.Fragment,null,u.createElement(Vh,{levelId:e.levelId,presentationId:e.presentationId,activeAction:sv(e.memberType)}),u.createElement(Ea.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each audience in this level.")+" Change the selected presentation to view different audiences."),u.createElement("div",{className:"w-50 py-2"},!!i&&u.createElement(Zh,{presentations:i,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),v&&u.createElement(Kh,{members:p||[],memberType:e.memberType,getMemberAppLink:function(t){return Xd.getMemberAppLink(e.memberType,t)},getActions:function(t){return Xd.getMemberActions(e.levelId,Rd.Level,e.memberType,t)},audiences:o,getAudienceAppLink:e.presentationId&&(g=e.memberType,y=e.presentationId,function(e){var t,n=s.SUBJECTS,r=[y,e];switch(g){case Ud.Playlists:t=a.Subjects.EDIT_AUDIENCE_PLAYLISTS;break;case Ud.Series:t=a.Subjects.EDIT_AUDIENCE_SERIES;break;case Ud.Videos:t=a.Subjects.EDIT_AUDIENCE_VIDEOS}return{application:n,action:t,args:r}}),onToggleAudience:function(t,n,r){return function(e,t,n,r,a,i,o){(o?e.addObjectsToAudience.bind(e):e.removeObjectsFromAudience.bind(e))(i,n,t,r,a)}(m,e.memberType,r?[r]:c,e.levelId,e.presentationId,t,n)}}))}function pv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dv(e){var t=pv(u.useState(),2),n=t[0],r=t[1],a=pv(u.useState(!1),2),i=a[0],o=a[1],s=X.useBasicFetch(function(e,t){switch(e){case Ud.Playlists:return sd(t);case Ud.Series:return Ry(t);case Ud.Videos:return Rg(t)}}(e.memberType,e.memberId)),c=Mu(l.SUBJECT);xd(ah.getLevelFetchOptions(e.levelId,r),[e.levelId]);var p=!!n&&!!s.data,f="Remove ".concat(wl.toTitleCase(Xd.singularizeMemberType(e.memberType)));return u.createElement($u,{title:f,closePopup:e.closePopup,showLoadingSpinner:!p},p&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to remove ",u.createElement("strong",null,s.data.name)," from ",u.createElement("strong",null,n.name),"?"),u.createElement("p",null,"Please ensure that it is not in any audiences before removing.")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),c.removeObjectsFromLevel(e.levelId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Xd.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function mv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gv(e){var t=e.id,n=mv(u.useState(),2),r=n[0],a=n[1],i=Mu(l.SUBJECT);xd(ah.getPresentationFetchOptions(t,a),[t]);var o={presentation:r,savePresentation:function(e,n){var r=n.setSubmitting;return i.updatePresentation(t,e,(function(){return r(!1)}),(function(){return r(!1)}))}},s=Cl(o);return u.createElement(u.Fragment,null,u.createElement("h4",{className:"py-2"},"Edit Presentation"),!!s&&u.createElement(Wh,Object.assign({},o)))}function yv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bv=function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_PRESENTATION,args:[e.id]}},Sv={application:s.SUBJECTS,action:a.Subjects.NEW_PRESENTATION};function Ev(){var e=yv(u.useState(),2),t=e[0],n=e[1];return xd(ah.getPresentationsFetchOptions(n),[]),u.createElement("div",null,u.createElement("div",{className:"d-flex justify-content-between mb-2"},u.createElement("h5",{className:"d-inline-block m-0"},"Select a presentation to edit:"),u.createElement(Sc,{appLink:Sv,className:"d-block"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Presentation"))),u.createElement(bl,{objects:t,getAppLink:bv}))}function Cv(){var e=Mu(l.SUBJECT);return u.createElement(u.Fragment,null,u.createElement("h4",{className:"py-2"},"Create New Presentation"),u.createElement(Wh,{savePresentation:function(t,n){var r=n.setSubmitting;e.createPresentation(t,(function(e){return function(e,t){t(!1),e&&e.id&&f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_PRESENTATION,args:[e.id]})}(e,r)}),(function(){return r(!1)}))}}))}function Ov(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Av(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Av(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Av(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iv(e){var t=e.objectType,n=e.getAppLink,r=Ov(u.useState(),2),a=r[0],i=r[1];return xd(ah.getPresentationsFetchOptions(i),[]),u.createElement("div",null,u.createElement("h5",null,u.createElement(Ba,{namespace:"subjects.selectPresentation",phrase:"heading",options:{objectType:t}})),u.createElement(bl,{objects:a,getAppLink:n}))}function Tv(e,t){return _d.getSetStateByKey(e,t)}function jv(e,t,n,r,i){var o=r.selectedSubject,c=function(){return Tv(i,"showConfirmationPopup")(!1)};t.addObjectsToSubject(o.id,e.map((function(e){return e.id})),n.memberType,r.addToClassifications,(function(){c(),f.AppLinkHelper.trigger(function(e,t){var n={application:s.SUBJECTS,args:[e]};switch(t){case Md.Playlists:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_PLAYLISTS});case Md.Series:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_SERIES});case Md.Videos:return Object.assign(Object.assign({},n),{action:a.Subjects.EDIT_SUBJECT_VIDEOS})}}(o.id,n.memberType))}),c)}function Lv(e,t,n){if(t&&n){var r=1===t.length?"this ".concat(Kd.singularizeMemberType(e)):"these ".concat(e);return"Add ".concat(r," to ").concat(n.name)}}function wv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xv(e,t){return function(n,r,a){a(),Tv(t,"selectedSubject")(_l.find(e.subjectTree,rp.a.first(n))),Tv(t,"addToClassifications")(r),Tv(t,"showConfirmationPopup")(!0)}}function _v(e){var t=wv(u.useState({}),2),n=t[0],r=t[1],a=X.useBasicFetch(function(e,t){switch(e){case Md.Playlists:return cd(t);case Md.Series:return My(t);case Md.Videos:return Mg(t)}}(e.memberType,e.objectIds)),i=Mu(l.SUBJECT);!function(e,t){xd(ah.getSubjectTreeFetchOptions(Tv(t,"subjectTree")),[])}(0,r);var o;return u.createElement(u.Fragment,null,!!a.data&&!!n.subjectTree&&u.createElement(Gh,{memberType:e.memberType,objects:a.data,subjectTree:n.subjectTree,onClickAddToSubject:xv(n,r)}),n.showConfirmationPopup&&u.createElement(Zu,{title:Lv(e.memberType,a.data,n.selectedSubject),onClickConfirm:function(){return jv(a.data,i,e,n,r)},closePopup:function(){return e=!1,Tv(r,"showConfirmationPopup")(e);var e}},u.createElement("p",null,"The following ".concat(e.memberType," will be added to "),u.createElement("strong",null,n.selectedSubject.name),n.addToClassifications?" and its mapped classifications:":":"),u.createElement("ul",null,a.data.map((function(e){return u.createElement("li",{key:e.id},e.name)}))),!n.addToClassifications&&u.createElement("p",null,"".concat(1===a.data.length?"It":"They"," will not be added to its mapped classifications.")),u.createElement("p",null,"".concat((o=e.memberType,wl.toTitleCase(Kd.singularizeMemberType(o)))," to classification mappings can be managed from the "),u.createElement("strong",null,"Edit Subject ".concat(wl.toTitleCase(e.memberType)," ")),"page.")))}function Nv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dv(e){var t=e.subjectId,n=e.routeToOnDelete,r=e.closePopup,a=Nv(u.useState(),2),i=a[0],o=a[1],s=Nv(u.useState(!1),2),c=s[0],p=s[1];xd(ah.getSubjectFetchOptions(t,o),[]);var d=Mu(l.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){p(!0);d.deleteSubject(t,(function(){r(),n&&f.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this backbone classification",isSpinnerButton:!0,showSpinner:c}];return u.createElement($u,{title:"Delete Subject",closePopup:r,showLoadingSpinner:!i},!!i&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,i.name),"?"),u.createElement("p",null,"Subjects that have mapped classifications cannot be deleted.")),u.createElement(Yu,{buttons:m})))}function Rv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uv(e){var t=e.subjectId,n=Rv(u.useState(),2),r=n[0],i=n[1],o=Rv(u.useState(),2),s=o[0],c=o[1],p=Mu(l.SUBJECT),f=ah.getSubjectFetchOptions(t,i);xd(ah.getSubjectTreeFetchOptions(c),[]),xd(f,[t]);return u.createElement(u.Fragment,null,u.createElement(og,{subjectId:t,activeAction:a.Subjects.EDIT_SUBJECT}),!!r&&!!s&&u.createElement(ag,{subject:r,subjectTree:s,saveSubject:function(e,n){return p.updateSubject(t,e,n,n)}}))}function Fv(e,t){return _d.getSetStateByKey(e,t)}function Vv(e){switch(e){case Md.Playlists:return a.Subjects.EDIT_SUBJECT_PLAYLISTS;case Md.Series:return a.Subjects.EDIT_SUBJECT_SERIES;case Md.Videos:return a.Subjects.EDIT_SUBJECT_VIDEOS}}function Bv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hv(e){var t=Bv(u.useState({}),2),n=t[0],r=t[1],i=n.presentations,o=n.classifications,c=n.memberIds,p=n.membersWithClassifications,d=X.useBasicFetch(Array.isArray(c)&&function(e,t){switch(e){case Md.Playlists:return cd(t);case Md.Series:return My(t);case Md.Videos:return Mg(t)}}(e.memberType,c)),m=Mu(l.SUBJECT);function h(t){f.AppLinkHelper.trigger({application:s.SUBJECTS,action:e.action,args:[e.subjectId],params:{presentationId:t}})}!function(e,t,n){var r=e.subjectId,a=e.memberType,i=e.presentationId;xd(ah.getPresentationsFetchOptions(Fv(n,"presentations")),[]),xd(ah.getSubjectMemberIdsFetchOptions(r,a,Fv(n,"memberIds")),[r,a]),xd(!!i&&ah.getSubjectClassificationFetchOptions(r,Fv(n,"classifications"),i,a),[r,a,i],!!i)}(e,0,r),function(e,t,n,r){var a=n.classifications;u.useEffect((function(){Fv(r,"membersWithClassifications")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,classifications:n.map((function(n){return{id:n.id,selected:(r=t,a=n,!!a[e]&&!!a[e].data.filter((function(e){return e.id===r.id})).length)};var r,a}))}}))}(t.memberType,e,a))}),[e,a])}(d.data,e,n,r),u.useEffect((function(){!e.presentationId&&(null==i?void 0:i.length)&&h(rp.a.first(i).id)}),[e.presentationId]);var g,y,v=!!e.presentationId&&!!o;return u.createElement(u.Fragment,null,u.createElement(og,{subjectId:e.subjectId,presentationId:e.presentationId,activeAction:Vv(e.memberType)}),u.createElement(Ea.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each classification in this backbone classification.")+" Change the selected presentation to view different classifications."),u.createElement("div",{className:"w-50 py-2"},!!i&&u.createElement(Zh,{presentations:i,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),v&&u.createElement(vg,{members:p||[],memberType:e.memberType,getMemberAppLink:function(t){return Kd.getMemberAppLink(e.memberType,t)},getActions:function(t){return Kd.getMemberActions(e.subjectId,Rd.Subject,e.memberType,t)},classifications:o,getClassificationAppLink:e.presentationId&&(g=e.memberType,y=e.presentationId,function(e){var t,n=s.SUBJECTS,r=[y,e];switch(g){case Md.Playlists:t=a.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;break;case Md.Series:t=a.Subjects.EDIT_CLASSIFICATION_SERIES;break;case Md.Videos:t=a.Subjects.EDIT_CLASSIFICATION_VIDEOS}return{application:n,action:t,args:r}}),onToggleClassification:function(t,n,r){return function(e,t,n,r,a,i,o){(o?e.addObjectsToClassification.bind(e):e.removeObjectsFromClassification.bind(e))(i,n,t,r,a)}(m,e.memberType,r?[r]:c,e.subjectId,e.presentationId,t,n)}}))}function qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $v(e){var t=e.parentId,n=qv(u.useState(),2),r=n[0],i=n[1],o=Mu(l.SUBJECT);xd(ah.getSubjectTreeFetchOptions(i),[]);var c={application:s.SUBJECTS,action:a.Subjects.PRESENTATIONS};return u.createElement(u.Fragment,null,u.createElement("div",{className:"pb-2 border-bottom"},u.createElement(Ec,{backToName:"Presentations",appLink:c})),u.createElement("h4",{className:"py-2"},"Create New Subject"),!!r&&u.createElement(ag,{subject:{parentId:t},subjectTree:r,saveSubject:function(e,t){return o.createSubject(e,function(e){return function(t){e(),t&&t.id&&f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[t.id]})}}(t),t)}}))}function Kv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wv(e){var t=Kv(u.useState(),2),n=t[0],r=t[1],a=Kv(u.useState(!1),2),i=a[0],o=a[1],s=X.useBasicFetch(function(e,t){switch(e){case Md.Playlists:return sd(t);case Md.Series:return Ry(t);case Md.Videos:return Rg(t)}}(e.memberType,e.memberId)),c=Mu(l.SUBJECT);xd(ah.getSubjectFetchOptions(e.subjectId,r),[e.subjectId]);var p=!!n&&!!s.data,f="Remove ".concat(wl.toTitleCase(Kd.singularizeMemberType(e.memberType)));return u.createElement($u,{title:f,closePopup:e.closePopup,showLoadingSpinner:!p},p&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to remove ",u.createElement("strong",null,s.data.name)," from ",u.createElement("strong",null,n.name),"?"),u.createElement("p",null,"Please ensure that it is not in any classifications before removing.")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),c.removeObjectsFromSubject(e.subjectId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Kd.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function Zv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qv(e){var t=e.subjectId,n=Zv(u.useState({}),2),r=n[0];return function(e,t){var n=function(e){return _d.getSetStateByKey(t,e)};xd(ah.getSubjectClassificationFetchOptions(e,n("classifications")),[e]),xd(ah.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),u.createElement(u.Fragment,null,u.createElement(og,{subjectId:t,activeAction:a.Subjects.SUBJECT_CLASSIFICATIONS}),u.createElement(pg,{presentations:r.presentations,classificationDictionary:rp.a.groupBy(r.classifications,"presentationId")}))}var Xv=n(210),eb=n.n(Xv);function tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rb(e){var t=e.selectedSubjectId,n=tb(u.useState(),2),r=n[0],i=n[1];xd(ah.getSubjectTreeFetchOptions(i),[]);var o=u.useCallback((function(e){return{application:s.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[e.id]}}),[]),c={application:s.SUBJECTS,action:a.Subjects.NEW_SUBJECT},l=[{label:"Add child",getAppLink:function(e){return Object.assign(Object.assign({},c),{params:{parentId:e.id}})}},{label:"Delete backbone classification",getAppLink:function(e){return{application:s.SUBJECTS,action:a.Subjects.DELETE_SUBJECT,args:[e.id]}},className:"text-danger"}];return u.createElement("div",{className:"".concat(eb.a.navContainer," h-auto pr-2 border-right")},u.createElement("h5",{className:"border-bottom pb-2"},"Backbone Classifications"),u.createElement(Sc,{appLink:c,className:"d-inline-block pb-2"},u.createElement(Qs,{svgName:$s.Plus,size:Gs.Small}),u.createElement("span",null,"New Backbone Classification")),!!r&&u.createElement("div",{className:"border-top pt-1"},u.createElement(zl,{tree:r,getAppLink:o,selectedIds:[t],actions:l})))}function ab(e){var t=e.currentAppLink;return u.createElement(bg,{navItems:Yd(),currentAppLink:t})}function ib(e){return(ib="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ob(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cb(e,t,n){return t&&sb(e.prototype,t),n&&sb(e,n),e}function lb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ub(e,t)}function ub(e,t){return(ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=db(e);if(t){var a=db(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return fb(this,n)}}function fb(e,t){return!t||"object"!==ib(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function db(e){return(db=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mb=function(e){lb(n,e);var t=pb(n);function n(){return ob(this,n),t.apply(this,arguments)}return cb(n,[{key:"channelName",get:function(){return s.PLAYLISTS}},{key:"appRoutes",get:function(){return{"manage/playlists(/)":"index","manage/playlists/new(/)":"newPlaylist","manage/playlists/search(/)":"searchPlaylists","manage/playlists/:id(/)":"editPlaylist","manage/playlists/:id/videos(/)":"editPlaylistVideos","manage/playlists/:id/classifications(/)":"editPlaylistSubjects","manage/playlists/:id/audiences(/)":"editPlaylistAudiences"}}},{key:"appLinks",get:function(){return["deletePlaylist","removeVideo","uploadImage","removeFromSubject"]}}]),n}(f.AppRouter),hb=function(e){lb(n,e);var t=pb(n);function n(){return ob(this,n),t.apply(this,arguments)}return cb(n,[{key:"initialize",value:function(){var e=this;ga.a.values(l).forEach((function(t){return Ru.getInstance(t,e)}))}},{key:"index",value:function(e){this.layout.showChildView(E,u.createElement(Yg,{cursor:null==e?void 0:e.cursor}))}},{key:"searchPlaylists",value:function(e){this.layout.showChildView(E,u.createElement(Gg,{query:null==e?void 0:e.query,cursor:null==e?void 0:e.cursor}))}},{key:"newPlaylist",value:function(){this.layout.showChildView(E,u.createElement(Pg,null))}},{key:"editPlaylist",value:function(e){this.layout.showChildView(E,u.createElement(jd,{key:e,playlistId:e}))}},{key:"editPlaylistVideos",value:function(e){this.layout.showChildView(E,u.createElement(Ng,{key:e,playlistId:e}))}},{key:"editPlaylistSubjects",value:function(e){this.layout.showChildView(E,u.createElement(Lg,{key:e,playlistId:e}))}},{key:"editPlaylistAudiences",value:function(e){this.layout.showChildView(E,u.createElement(Og,{key:e,playlistId:e}))}},{key:"deletePlaylist",value:function(e){var t=Object.assign({playlistId:e},this.getPopupProps());this.layout.showChildView(C,u.createElement(yd,Object.assign({},t)))}},{key:"removeVideo",value:function(e,t){var n=Object.assign({playlistId:e,videoId:t},this.getPopupProps());this.layout.showChildView(C,u.createElement(zg,Object.assign({},n)))}},{key:"removeFromSubject",value:function(e,t){var n=Object.assign({subjectId:t,memberId:e,memberType:Md.Playlists},this.getPopupProps());this.layout.showChildView(C,u.createElement(Wv,Object.assign({},n)))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(Qf,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(O,u.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Playlists Application"}},{key:"channelName",get:function(){return s.PLAYLISTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:Xf}}}}],[{key:"router",get:function(){return mb}}]),n}(f.Application),gb=function(e){var t=e.children;return u.createElement(Uc,null,t)};const yb={ratings:()=>({url:"/api/domain/v2/me/ratings",key:"ratings"})};var vb=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ba.string().trim().max(350,"Description is too long").default(""),rating:ba.object().shape({id:ba.string()}).default({}).noUnknown(),tallPoster:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),banner:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown()}).noUnknown(),bb=function(e,t){var n=s.SERIES,r=a.Series,i=[{label:"Edit Series Details",appLink:{application:n,action:r.EDIT_SERIES,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_SERIES_VIDEOS,args:[t]}}];return ad(e)&&i.push.apply(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_SERIES_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_SERIES_AUDIENCES,args:[t]}}]),i};function Sb(e){var t=ea(),n=wa(t);return u.createElement(ua,null,u.createElement(La,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this series",autoFocus:!0}),u.createElement(La,{label:"Description",as:"textarea",name:"description",id:"description",maxLength:350,value:t.values.description,placeholder:"Describe this series here",showCharacterCounter:!0}),u.createElement(Sl,{ratings:e.ratings}),u.createElement(nl,{imageType:Ic.TallPosters,fieldName:"tallPoster",application:s.SERIES,uploadAction:a.Series.UPLOAD_IMAGE}),u.createElement(nl,{imageType:Ic.Banners,fieldName:"banner",application:s.SERIES,uploadAction:a.Playlists.UPLOAD_IMAGE}),u.createElement("div",{className:"d-flex justify-content-between align-items-center"},u.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&u.createElement(hl,{actions:e.actions})))}function Eb(e){return u.createElement(va,{initialValues:e.series,validationSchema:vb,onSubmit:e.saveSeries},u.createElement(Sb,{id:e.series&&e.series.id,ratings:e.ratings}))}function Cb(e){return u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:bb(e.currentUser,e.seriesId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function Ob(e){var t,n=Object(g.useDispatch)(),r=qu(),i=X.useBasicFetch(Ry(e.seriesId)),o=X.useBasicFetch(yb.ratings()),c=X.useBasicFetch(Ed.currentUser());return u.createElement(u.Fragment,null,!!c.data&&u.createElement(Cb,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES,currentUser:c.data}),!!i.data&&!!o.data&&u.createElement(Eb,{series:i.data,saveSeries:function(t,a){X.fetch(n,Fy(e.seriesId,t,(function(){r.success("Successfully updated series.")}),(function(){r.error("Failed to update series.")}),a))},ratings:o.data}),u.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit series page ",u.createElement(Sc,{className:"info-link",appLink:(t=e.seriesId,{application:s.SERIES,action:a.Series.LEGACY_EDIT_SERIES,args:[t]})},"here"),"."))}function Ab(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ib(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ib(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ib(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tb(e){var t=Ab(u.useState({}),2),n=t[0],r=t[1],i=X.useBasicFetch(Ry(e.seriesId)),o=X.useBasicFetch(Ed.currentUser()),s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};xd(ah.getObjectLevelsFetchOptions(e,Md.Series,r("seriesLevels")),[e]),xd(ah.getObjectAudiencesFetchOptions(e,Md.Series,r("seriesAudiences")),[e,t.seriesLevels]),kd([ah.getPresentationsFetchOptions(r("presentations")),ah.getLevelsFetchOptions(r("levels"))],[]),xd(!!t.currentPresentation&&ah.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.seriesId,n,r),Sg(n,r);var c=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.seriesLevels&&n.seriesAudiences);return u.createElement(u.Fragment,null,!!o.data&&u.createElement(Cb,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES_AUDIENCES,currentUser:o.data}),u.createElement(gl,{object:i.data}),!!c&&u.createElement(dh,{objectLevels:n.seriesLevels,objectAudiences:n.seriesAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:Md.Series,saveLevels:function(t,n,r){return s.updateObjectLevels(e.seriesId,t,Md.Series,n,r,r)},saveAudiences:function(t,r){return s.updateObjectAudiences(e.seriesId,n.currentPresentation.id,t,Md.Series,r,r)}}))}function jb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||wb(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lb(e){return function(e){if(Array.isArray(e))return kb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||wb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wb(e,t){if(e){if("string"==typeof e)return kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kb(e,t):void 0}}function kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xb(e){var t=jb(u.useState({}),2),n=t[0],r=t[1],i=X.useBasicFetch(Ry(e.seriesId)),o=X.useBasicFetch(Ed.currentUser()),s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};kd([ah.getSubjectTreeFetchOptions(r("subjectTree")),ah.getPresentationsFetchOptions(r("presentations"))],[]),xd(ah.getObjectSubjectsFetchOptions(e,Md.Series,r("seriesSubjects")),[e]),xd(!!t.currentPresentation&&ah.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),u.useEffect((function(){return r("subjectClassifications")([])}),[t.seriesSubjects]);var a=function(e,t){return[].concat(Lb(t.subjectClassifications||[]),Lb(e))},i=t.seriesSubjects&&t.seriesSubjects.map((function(e){return ah.getSubjectClassificationFetchOptions(e.id,_d.getSetStateByKey(n,"subjectClassifications",a))}));kd(i,[t.seriesSubjects],!!i),xd(ah.getObjectClassificationsFetchOptions(e,Md.Series,r("seriesClassifications")),[e,t.seriesSubjects])}(e.seriesId,n,r),Sg(n,r);var c=!!(n.seriesSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.seriesClassifications&&n.subjectClassifications);return u.createElement(u.Fragment,null,!!o.data&&u.createElement(Cb,{seriesId:e.seriesId,activeAction:a.Series.EDIT_SERIES_SUBJECTS,currentUser:o.data}),u.createElement(gl,{object:i.data}),c&&u.createElement(eg,{objectSubjects:n.seriesSubjects,subjectTree:n.subjectTree,memberType:Md.Series,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(r,"currentPresentation"),objectClassifications:n.seriesClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return s.updateObjectSubjects(e.seriesId,t,Md.Series,n,r,r)},saveClassifications:function(t,r){return s.updateObjectClassifications(e.seriesId,n.currentPresentation.id,t,Md.Series,r,r)}}))}function _b(){var e=Object(g.useDispatch)(),t=qu(),n=X.useBasicFetch(yb.ratings());return u.createElement(u.Fragment,null,!!n.data&&u.createElement(Eb,{saveSeries:function(n,r){var i=function(){t.error("Failed to create series.")},o=function(e){t.success("Successfully created series."),function(e){f.AppLinkHelper.trigger({application:s.SERIES,action:a.Series.EDIT_SERIES,args:[e.id]})}(e)};X.fetch(e,Uy(n,(function(t){var n={permissions:rd()};X.fetch(e,Fy(t.id,n,o,i,r))}),i))},ratings:n.data}))}function Nb(e){return(Nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Db(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rb(e,t,n){return t&&Db(e.prototype,t),n&&Db(e,n),e}function Mb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ub(e,t)}function Ub(e,t){return(Ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bb(e);if(t){var a=Bb(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Vb(this,n)}}function Vb(e,t){return!t||"object"!==Nb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bb(e){return(Bb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zb=function(e){Mb(n,e);var t=Fb(n);function n(){return Pb(this,n),t.apply(this,arguments)}return Rb(n,[{key:"channelName",get:function(){return s.SERIES}},{key:"appRoutes",get:function(){return{"manage/series/new(/)":"newSeries","manage/series/:id(/)":"editSeries","manage/series/:id/videos(/)":"editSeriesVideos","manage/series/:id/classifications(/)":"editSeriesSubjects","manage/series/:id/audiences(/)":"editSeriesAudiences","manage/legacy/series/:id(/)":"legacyEditSeries"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(f.AppRouter),Hb=function(e){Mb(n,e);var t=Fb(n);function n(){return Pb(this,n),t.apply(this,arguments)}return Rb(n,[{key:"initialize",value:function(){var e=this;ga.a.values(l).forEach((function(t){return Ru.getInstance(t,e)}))}},{key:"newSeries",value:function(){this.layout.showChildView(E,u.createElement(_b,null))}},{key:"editSeries",value:function(e){this.layout.showChildView(E,u.createElement(Ob,{seriesId:e}))}},{key:"editSeriesVideos",value:function(e){this.legacyEditSeries(e)}},{key:"editSeriesSubjects",value:function(e){this.layout.showChildView(E,u.createElement(xb,{seriesId:e}))}},{key:"editSeriesAudiences",value:function(e){this.layout.showChildView(E,u.createElement(Tb,{seriesId:e}))}},{key:"legacyEditSeries",value:function(e){f.LocationUtils.Redirect("/manage/legacy/series/".concat(e),!0)}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(Qf,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(O,u.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Series Application"}},{key:"channelName",get:function(){return s.SERIES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:gb}}}}],[{key:"router",get:function(){return zb}}]),n}(f.Application);function qb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(e){var t=qb(u.useState(),2),n=t[0],r=t[1],a=qb(u.useState(!1),2),i=a[0],o=a[1],s=X.useBasicFetch(function(e,t){switch(e){case Ud.Playlists:return sd(t);case Ud.Series:return Ry(t);case Ud.Videos:return Rg(t)}}(e.memberType,e.memberId)),c=Mu(l.SUBJECT);xd(ah.getAudienceFetchOptions(e.audienceId,r),[e.audienceId]);var p=!!n&&!!s.data,f="Remove ".concat(wl.toTitleCase(Xd.singularizeMemberType(e.memberType)));return u.createElement($u,{title:f,closePopup:e.closePopup,showLoadingSpinner:!p},p&&u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("p",null,"Are you sure you want to remove ",u.createElement("strong",null,s.data.name)," from ",u.createElement("strong",null,n.name),"?"),u.createElement("p",null,"This will not remove it from the backbone level.")),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),c.removeObjectsFromAudience(e.audienceId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Xd.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:i}]})))}function Kb(e){return(Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zb(e,t,n){return t&&Wb(e.prototype,t),n&&Wb(e,n),e}function Gb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qb(e,t)}function Qb(e,t){return(Qb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tS(e);if(t){var a=tS(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return eS(this,n)}}function eS(e,t){return!t||"object"!==Kb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tS(e){return(tS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nS=function(e){Gb(n,e);var t=Xb(n);function n(){return Yb(this,n),t.apply(this,arguments)}return Zb(n,[{key:"channelName",get:function(){return s.SUBJECTS}},{key:"appRoutes",get:function(){return{"manage/subjects(/)":"subjects","manage/subjects/add-objects(/)":"addSubjectMembers","manage/subjects/new(/)":"newSubject","manage/subjects/:id/edit(/)":"editSubject","manage/subjects/:id/edit/playlists(/)":"editSubjectPlaylists","manage/subjects/:id/edit/series(/)":"editSubjectSeries","manage/subjects/:id/edit/videos(/)":"editSubjectVideos","manage/subjects/:id/classifications(/)":"subjectClassifications","manage/subjects/classifications(/)":"classifications","manage/subjects/presentations/:id/classifications(/)":"presentationClassifications","manage/subjects/presentations/:id/classifications/new(/)":"newClassification","manage/subjects/presentations/:id/classifications/:id/edit(/)":"editClassification","manage/subjects/presentations/:id/classifications/:id/edit/playlists(/)":"editClassificationPlaylists","manage/subjects/presentations/:id/classifications/:id/edit/series(/)":"editClassificationSeries","manage/subjects/presentations/:id/classifications/:id/edit/videos(/)":"editClassificationVideos","manage/subjects/levels(/)":"levels","manage/subjects/levels/new(/)":"newLevel","manage/subjects/levels/:id(/)":"level","manage/subjects/levels/:id/edit(/)":"editLevel","manage/subjects/levels/:id/edit/playlists(/)":"editLevelPlaylists","manage/subjects/levels/:id/edit/series(/)":"editLevelSeries","manage/subjects/levels/:id/edit/videos(/)":"editLevelVideos","manage/subjects/levels/:id/audiences(/)":"levelAudiences","manage/subjects/audiences(/)":"audiences","manage/subjects/presentations/:id/audiences(/)":"presentationAudiences","manage/subjects/presentations/:id/audiences/new(/)":"newAudience","manage/subjects/presentations/:id/audiences/:id/edit(/)":"editAudience","manage/subjects/presentations/:id/audiences/:id/edit/playlists(/)":"editAudiencePlaylists","manage/subjects/presentations/:id/audiences/:id/edit/series(/)":"editAudienceSeries","manage/subjects/presentations/:id/audiences/:id/edit/videos(/)":"editAudienceVideos","manage/subjects/presentations(/)":"presentations","manage/subjects/presentations/new":"newPresentation","manage/subjects/presentations/:id(/)":"editPresentation"}}},{key:"appLinks",get:function(){return["deleteClassification","removeClassificationMember","deleteSubject","removeSubjectMember","deleteAudience","removeLevelMember","removeAudienceMember","uploadImage"]}}]),n}(f.AppRouter),rS=function(e){Gb(n,e);var t=Xb(n);function n(){return Yb(this,n),t.apply(this,arguments)}return Zb(n,[{key:"initialize",value:function(){var e=this;this.subjectDataService=Ru.getInstance(l.SUBJECT,this),ga.a.values(l).forEach((function(t){return Ru.getInstance(t,e)}))}},{key:"subjects",value:function(){this.subjectDataService.getSubjectTree((function(e){var t=!!e.children&&e.children[0];t?f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_SUBJECT,args:[t.id]},{replace:!0}):f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.NEW_SUBJECT},{replace:!0})}))}},{key:"newSubject",value:function(e){var t={parentId:e.parentId};this.layout.showChildView(E,u.createElement($v,Object.assign({key:e.parentId},t))),this.renderSubjectsLeftNav()}},{key:"editSubject",value:function(e){this.layout.showChildView(E,u.createElement(Uv,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"editSubjectPlaylists",value:function(e,t){var n={subjectId:e,memberType:Md.Playlists,action:a.Subjects.EDIT_SUBJECT_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(Hv,Object.assign({key:"".concat(e,":playlists")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectSeries",value:function(e,t){var n={subjectId:e,memberType:Md.Series,action:a.Subjects.EDIT_SUBJECT_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(Hv,Object.assign({key:"".concat(e,":series")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectVideos",value:function(e,t){var n={subjectId:e,memberType:Md.Videos,action:a.Subjects.EDIT_SUBJECT_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(Hv,Object.assign({key:"".concat(e,":videos")},n))),this.renderSubjectsLeftNav(e)}},{key:"subjectClassifications",value:function(e){this.layout.showChildView(E,u.createElement(Qv,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"addSubjectMembers",value:function(e){var t=e.memberType,n=e.objectIds;if(t&&n){var r={memberType:t,objectIds:Array.isArray(n)?n:[n]};this.layout.showChildView(E,u.createElement(_v,Object.assign({},r))),this.hideLeftNav()}}},{key:"removeSubjectMember",value:function(e,t,n){var r=Object.assign({subjectId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(C,u.createElement(Wv,Object.assign({},r)))}},{key:"deleteSubject",value:function(e){var t=e.toString()===this.currentLeftNavId.toString()?{application:s.SUBJECTS,action:a.Subjects.NEW_SUBJECT}:null,n=Object.assign({subjectId:e,routeToOnDelete:t||null},this.getPopupProps());this.layout.showChildView(C,u.createElement(Dv,Object.assign({},n)))}},{key:"classifications",value:function(){var e={objectType:"classifications",getAppLink:function(e){return{application:s.SUBJECTS,action:a.Subjects.PRESENTATION_CLASSIFICATIONS,args:[e.id]}}};this.layout.showChildView(E,u.createElement(Iv,Object.assign({},e))),this.hideLeftNav()}},{key:"presentationClassifications",value:function(e){this.subjectDataService.getClassificationTree(e,(function(t){var n=!!t.children&&t.children[0];n?f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]},{replace:!0}):f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]},{replace:!0})}))}},{key:"newClassification",value:function(e,t){var n={presentationId:e,parentId:t.parentId};this.layout.showChildView(E,u.createElement(Dy,Object.assign({key:t.parentId},n))),this.renderClassificationLeftNav(e)}},{key:"editClassification",value:function(e,t){var n={presentationId:e,classificationId:t};this.layout.showChildView(E,u.createElement(wy,Object.assign({key:t},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationPlaylists",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Md.Playlists};this.layout.showChildView(E,u.createElement(_y,Object.assign({key:"".concat(t,":playlists")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationSeries",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Md.Series};this.layout.showChildView(E,u.createElement(_y,Object.assign({key:"".concat(t,":series")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationVideos",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:Md.Videos};this.layout.showChildView(E,u.createElement(_y,Object.assign({key:"".concat(t,":videos")},n))),this.renderClassificationLeftNav(e,t)}},{key:"removeClassificationMember",value:function(e,t,n){var r=Object.assign({classificationId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(C,u.createElement(zy,Object.assign({},r)))}},{key:"deleteClassification",value:function(e,t){var n=t===this.currentLeftNavId?{application:s.SUBJECTS,action:a.Subjects.NEW_CLASSIFICATION,args:[e]}:null,r=Object.assign({classificationId:t,routeToOnDelete:n||null},this.getPopupProps());this.layout.showChildView(C,u.createElement(Ty,Object.assign({},r)))}},{key:"levels",value:function(){this.layout.showChildView(E,u.createElement(Yy,null)),this.renderLevelsLeftNav()}},{key:"newLevel",value:function(){this.layout.showChildView(E,u.createElement(Wy,null)),this.renderLevelsLeftNav()}},{key:"level",value:function(e){f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_LEVEL,args:[e]},{replace:!0})}},{key:"editLevel",value:function(e){this.layout.showChildView(E,u.createElement(Jy,{key:e,id:e})),this.renderLevelsLeftNav(e)}},{key:"levelAudiences",value:function(e){this.layout.showChildView(E,u.createElement(iv,{key:e,levelId:e})),this.renderLevelsLeftNav(e)}},{key:"editLevelPlaylists",value:function(e,t){var n={levelId:e,memberType:Ud.Playlists,action:a.Subjects.EDIT_LEVEL_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(uv,Object.assign({key:"".concat(e,":playlists")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelSeries",value:function(e,t){var n={levelId:e,memberType:Ud.Series,action:a.Subjects.EDIT_LEVEL_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(uv,Object.assign({key:"".concat(e,":series")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelVideos",value:function(e,t){var n={levelId:e,memberType:Ud.Videos,action:a.Subjects.EDIT_LEVEL_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(E,u.createElement(uv,Object.assign({key:"".concat(e,":videos")},n))),this.renderLevelsLeftNav(e)}},{key:"removeLevelMember",value:function(e,t,n){var r=Object.assign({levelId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(C,u.createElement(dv,Object.assign({},r)))}},{key:"audiences",value:function(){var e={objectType:"audiences",getAppLink:function(e){return{application:s.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e.id]}}};this.layout.showChildView(E,u.createElement(Iv,Object.assign({},e))),this.hideLeftNav()}},{key:"removeAudienceMember",value:function(e,t,n){var r=Object.assign({audienceId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(C,u.createElement($b,Object.assign({},r)))}},{key:"presentationAudiences",value:function(e){this.subjectDataService.getAudiences(e,(function(t){var n=!!t&&t[0];n?f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]},{replace:!0}):f.AppLinkHelper.trigger({application:s.SUBJECTS,action:a.Subjects.NEW_AUDIENCE,args:[e]},{replace:!0})}))}},{key:"newAudience",value:function(e){this.layout.showChildView(E,u.createElement(cy,{presentationId:e})),this.hideLeftNav()}},{key:"editAudience",value:function(e,t){var n={presentationId:e,audienceId:t};this.layout.showChildView(E,u.createElement(ay,Object.assign({key:t},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudiencePlaylists",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Ud.Playlists};this.layout.showChildView(E,u.createElement(gy,Object.assign({key:"".concat(t,":playlists")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceSeries",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Ud.Series};this.layout.showChildView(E,u.createElement(gy,Object.assign({key:"".concat(t,":series")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceVideos",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:Ud.Videos};this.layout.showChildView(E,u.createElement(gy,Object.assign({key:"".concat(t,":videos")},n))),this.renderAudienceLeftNav(e,t)}},{key:"deleteAudience",value:function(e,t){var n={application:s.SUBJECTS,action:a.Subjects.PRESENTATION_AUDIENCES,args:[e]},r=Object.assign({id:t,routeToOnDelete:n},this.getPopupProps());this.layout.showChildView(C,u.createElement(ty,Object.assign({},r)))}},{key:"presentations",value:function(){this.layout.showChildView(E,u.createElement(Ev,null)),this.hideLeftNav()}},{key:"newPresentation",value:function(){this.layout.showChildView(E,u.createElement(Cv,null))}},{key:"editPresentation",value:function(e){this.layout.showChildView(E,u.createElement(gv,{key:e,id:e})),this.hideLeftNav()}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(Qf,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(O,u.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"renderClassificationLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedClassificationId:t};this.layout.showChildView(S,u.createElement(Oy,Object.assign({},n)))}},{key:"renderSubjectsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(S,u.createElement(rb,{selectedSubjectId:e}))}},{key:"renderAudienceLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedAudienceId:t};this.layout.showChildView(S,u.createElement(dy,Object.assign({},n)))}},{key:"renderLevelsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(S,u.createElement(ev,{selectedLevelId:e}))}},{key:"setCurrentLeftNavItem",value:function(e){this.currentLeftNavId=e||null}},{key:"hideLeftNav",value:function(){this.setCurrentLeftNavItem(),this.layout.hideLeftNav()}},{key:"getTopNav",value:function(e){return u.createElement(ab,{currentAppLink:e})}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Subjects Application"}},{key:"channelName",get:function(){return s.SUBJECTS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:Uc,getTopNavView:this.getTopNav}}}}],[{key:"router",get:function(){return nS}}]),n}(f.Application);const aS={theme:e=>({url:"/api/domain/v1/themes/"+e,key:"themes:"+e}),themeImages:(e,t)=>({url:xc.urlBuilder("/api/domain/v1/themes",{name:e,type:t}),key:`themes:${e}:${t}`}),themes(e){let t="/api/domain/v1/themes",n="themes";return e&&(t+="?type="+e,n+=":type:"+e),{url:t,key:n}},createTheme:(e,t,n,r)=>({url:"/api/domain/v1/themes",key:"theme",data:e,type:ee.a.POST,invalidationKeys:"themes",success:t,error:n,always:r}),updateTheme:(e,t,n,r,a)=>({url:"/api/domain/v1/themes/"+e,key:"update:theme:"+e,data:t,type:ee.a.PUT,success:n,error:r,always:a}),deleteTheme:(e,t,n,r)=>({url:"/api/domain/v1/themes/"+e,key:"delete:theme:"+e,type:ee.a.DELETE,invalidationKeys:"themes",success:t,error:n,always:r})};var iS,oS=function(e){return{application:s.THEMES,action:a.Themes.EDIT_THEME,args:[e.id]}};function sS(){var e=X.useBasicFetch(aS.themes());return e.data?u.createElement(vl,{objects:e.data,getObjectAppLink:oS,newObjectAppLink:{application:s.THEMES,action:a.Themes.NEW_THEME},objectName:"Theme"}):u.createElement(u.Fragment,null)}!function(e){e.Glance="glance"}(iS||(iS={}));var cS=[{key:"topLeft",label:"Top Left"},{key:"topRight",label:"Top Right"},{key:"bottomLeft",label:"Bottom Left"},{key:"bottomRight",label:"Bottom Right"}];function lS(){var e=ea();return u.createElement("div",{className:"form-group"},cS.map((function(t){var n="data.".concat(t.key);return u.createElement(nl,{label:t.label,imageType:Ic.HeroBanners,fieldName:n,application:s.THEMES,uploadAction:a.Videos.UPLOAD_IMAGE,setSelectedImage:function(t){e.setFieldValue(n,{fileId:t.id,url:t.url,fileIdType:jc.ImageAPIv2})}})})))}var uS=ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),pS=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),type:ba.mixed().required("Type is required"),data:ba.mixed().when("type",{is:iS.Glance,then:ba.object().shape({topLeft:uS,topRight:uS,bottomLeft:uS,bottomRight:uS}).noUnknown(),otherwise:ba.mixed().strip(!0)}).default({})}).noUnknown();function fS(e){var t=ea(),n=function(e){switch(e){case iS.Glance:return lS;default:return}}(t.values.type);return u.createElement(ua,null,u.createElement(La,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this theme",autoFocus:!0}),u.createElement(La,{as:"select",label:"Type",name:"type",id:"type",value:t.values.type},u.createElement("option",{value:null},"Select a type..."),ga.a.getEnumKeys(iS).map((function(e){return u.createElement("option",{key:e,value:iS[e]},e)}))),!!n&&u.createElement(n,null),u.createElement("div",{className:"d-flex justify-content-between align-items-center"},u.createElement(za,{isNew:e.isNew}),!!e.actions&&u.createElement(hl,{actions:e.actions})))}function dS(e){var t;return u.createElement(va,{initialValues:e.theme,validationSchema:pS,onSubmit:e.saveTheme},u.createElement(fS,{isNew:!(null===(t=e.theme)||void 0===t?void 0:t.id),actions:e.actions}))}function mS(){var e=Object(g.useDispatch)();return u.createElement(dS,{saveTheme:function(t,n){X.fetch(e,aS.createTheme(t,(function(e){n(),f.AppLinkHelper.trigger({application:s.THEMES,action:a.Themes.EDIT_THEME,args:[e.id]})}),null,n))}})}function hS(e){var t=Object(g.useDispatch)(),n=qu(),r=X.useBasicFetch(aS.theme(e.id));return r.data?u.createElement(dS,{theme:r.data,saveTheme:function(r,a){X.fetch(t,aS.updateTheme(e.id,r,(function(){n.success("Successfully updated theme")}),(function(){n.error("Failed to update theme")}),a))},actions:[{label:"Delete theme",className:"btn btn-danger",button:!0,appLink:{application:s.THEMES,action:a.Themes.DELETE_THEME,args:[e.id]}}]}):u.createElement(u.Fragment,null)}function gS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vS(e){var t=Object(g.useDispatch)(),n=qu(),r=gS(u.useState(!1),2),i=r[0],o=r[1],c=X.useBasicFetch(aS.theme(e.id));return u.createElement($u,{title:"Delete Theme",closePopup:e.closePopup,showLoadingSpinner:!c.data},u.createElement(u.Fragment,null,u.createElement("p",null,"Are you sure you want to delete ",u.createElement("strong",null,c.data.name),"?"),u.createElement(Yu,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){o(!0),X.fetch(t,aS.deleteTheme(e.id,(function(){n.success("Successfully deleted theme"),f.AppLinkHelper.trigger({application:s.THEMES,action:a.Themes.THEMES})}),(function(){n.error("Failed to delete theme")})))},buttonText:"Yes, delete this theme",isSpinnerButton:!0,showSpinner:i}]})))}var bS=function(e){var t=e.children;return u.createElement(Uc,null,t)};function SS(e){return(SS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ES(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function OS(e,t,n){return t&&CS(e.prototype,t),n&&CS(e,n),e}function AS(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IS(e,t)}function IS(e,t){return(IS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LS(e);if(t){var a=LS(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return jS(this,n)}}function jS(e,t){return!t||"object"!==SS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function LS(e){return(LS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wS=function(e){AS(n,e);var t=TS(n);function n(){return ES(this,n),t.apply(this,arguments)}return OS(n,[{key:"channelName",get:function(){return s.THEMES}},{key:"appRoutes",get:function(){return{"manage/themes(/)":"themes","manage/themes/new(/)":"newTheme","manage/themes/:id(/)":"editTheme"}}},{key:"appLinks",get:function(){return["deleteTheme","uploadImage"]}}]),n}(f.AppRouter),kS=function(e){AS(n,e);var t=TS(n);function n(){return ES(this,n),t.apply(this,arguments)}return OS(n,[{key:"themes",value:function(){this.layout.showChildView(E,u.createElement(sS,null))}},{key:"newTheme",value:function(){this.layout.showChildView(E,u.createElement(mS,null))}},{key:"editTheme",value:function(e){this.layout.showChildView(E,u.createElement(hS,{id:e}))}},{key:"deleteTheme",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(vS,{id:e,closePopup:function(){return t.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(Qf,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"name",get:function(){return"Themes Application"}},{key:"channelName",get:function(){return s.THEMES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:bS}}}}],[{key:"router",get:function(){return wS}}]),n}(Pu),xS=function(e){var t=e.children;return u.createElement(Uc,null,t)},_S=function(e,t){var n=s.VIDEOS,r=a.Videos,i=[{label:"Edit Video Details",appLink:{application:n,action:r.EDIT_VIDEO,args:[t]}}];return ad(e)?[].concat(i,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_VIDEO_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_VIDEO_AUDIENCES,args:[t]}},{label:"Aliases",appLink:{application:n,action:r.EDIT_VIDEO_ALIASES,args:[t]}}]):i};function NS(e){var t,n=_S(e.currentUser,e.videoId);return n.length<2?u.createElement(u.Fragment,null):u.createElement("div",{className:"py-2"},u.createElement(Pl,{tabs:n,isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}))}var PS,DS=ba.object().shape({name:ba.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:ba.string().trim().default(""),status:ba.mixed().required("Status is required"),productionYear:ba.number().min(1900),rating:ba.object().shape({id:ba.string()}).default({}).noUnknown(),thumbnail:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),heroBanner:ba.object().shape({fileId:ba.string(),fileIdType:ba.mixed(),url:ba.string()}).default({}).noUnknown(),glance:ba.object().shape({theme:ba.string(),format:ba.mixed(),content:ba.string(),type:ba.mixed()}).default({}).noUnknown()}).noUnknown();!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(PS||(PS={}));var RS,MS=n(52),US=n.n(MS);function FS(e){var t,n,r,a,i,o,s=ea();return u.createElement("div",{className:"form-group p-2 border"},u.createElement("div",{className:"border-bottom mb-2"},u.createElement("label",null,"Summary")),u.createElement(La,{as:"select",label:"Theme",name:"glance.theme",id:"type",value:null===(t=s.values.glance)||void 0===t?void 0:t.theme},u.createElement("option",{value:null},"Select a theme..."),e.themes.map((function(e){return u.createElement("option",{key:e.id,value:e.name},e.name)}))),u.createElement(La,{as:"select",label:"Format",name:"glance.format",id:"type",value:null===(n=s.values.glance)||void 0===n?void 0:n.format},u.createElement("option",{value:null},"Select a format..."),ga.a.getEnumKeys(RS).map((function(e){return u.createElement("option",{key:e,value:RS[e]},e)}))),u.createElement(La,{label:"Content",as:"textarea",name:"glance.content",id:"content",value:null===(r=s.values.glance)||void 0===r?void 0:r.content}),(null===(a=s.values.glance)||void 0===a?void 0:a.format)===RS.Markdown&&(null===(i=s.values.glance)||void 0===i?void 0:i.content)&&u.createElement("div",{className:"form-group"},u.createElement("label",null,"Content Preview"),u.createElement("div",{className:"border rounded py-2",dangerouslySetInnerHTML:{__html:MS(null===(o=s.values.glance)||void 0===o?void 0:o.content)}})))}function VS(e){switch(e){case PS.Published:return"badge-success";case PS.Archived:return"badge-danger";case PS.Draft:return"badge-warning";case PS.Pending:return"badge-info";case PS.Rejected:return"badge-dark";default:return"badge-secondary"}}function BS(e){var t=ea(),n=!!e.rightslineId,r=ad(e.currentUser);return u.createElement(ua,null,n&&u.createElement(La,{label:"Rightsline ID",name:"rightslineId",id:"rightslineId",value:e.rightslineId,disabled:!0}),u.createElement(La,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this video",disabled:n,autoFocus:!0}),u.createElement("div",{className:"form-group"},u.createElement("label",null,"Status"),u.createElement("div",null,u.createElement("span",{className:"badge ".concat(VS(t.values.status))},PS[t.values.status]))),u.createElement(La,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this video here",disabled:n,showCharacterCounter:!0}),u.createElement(La,{label:"Production Year",type:"number",name:"productionYear",id:"productionYear",value:t.values.productionYear,disabled:n}),u.createElement(Sl,{ratings:e.ratings,disabled:n}),u.createElement(nl,{imageType:Ic.Thumbnails,fieldName:"thumbnail",application:s.VIDEOS,uploadAction:a.Videos.UPLOAD_IMAGE}),u.createElement(nl,{imageType:Ic.HeroBanners,fieldName:"heroBanner",application:s.VIDEOS,uploadAction:a.Videos.UPLOAD_IMAGE}),r&&u.createElement(FS,{themes:e.themes}),u.createElement(za,{isNew:!e.id}))}function zS(e,t){if(e)return t?Object.assign(Object.assign({},e),t):e}function HS(e){return u.createElement(va,{initialValues:zS(e.video,e.rightslineVideo),validationSchema:DS,onSubmit:e.saveVideo,allowInitialSubmit:!!e.rightslineVideo},u.createElement(BS,{id:e.video&&e.video.id,ratings:e.ratings,themes:e.themes,currentUser:e.currentUser,rightslineId:e.rightslineId}))}function qS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return JS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $S(e){var t,n=Object(g.useDispatch)(),r=qS(u.useState(!1),2),i=r[0],o=r[1],c=X.useBasicFetch(Rg(e.videoId)),l=X.useBasicFetch(Ug(e.videoId)),p=X.useBasicFetch(yb.ratings()),f=X.useBasicFetch(aS.themes(iS.Glance)),d=X.useBasicFetch(Ed.currentUser());var m,h=!!c.data&&!!p.data&&!!f.data&&!!d.data&&l.isComplete;return u.createElement(u.Fragment,null,!!d.data&&u.createElement(NS,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO,currentUser:d.data}),!!l.data&&u.createElement("div",{className:"pt-3 text-right"},u.createElement(Ea.Button,{variant:"outline-dark",size:"sm",onClick:function(){l.isFetching||(o(!0),X.fetch(n,Ug(e.videoId)))}},"Sync from Rightsline")),h&&u.createElement(HS,{video:c.data,saveVideo:function(t,r){X.fetch(n,Fg(e.videoId,t,null,null,r))},ratings:p.data,themes:f.data,currentUser:d.data,rightslineId:null===(t=l.data)||void 0===t?void 0:t.rightslineId,rightslineVideo:i&&l.data}),u.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit video page ",u.createElement(Sc,{className:"info-link",appLink:(m=e.videoId,{application:s.VIDEOS,action:a.Videos.LEGACY_EDIT_VIDEO,args:[m]})},"here"),"."))}function KS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WS(e){var t=KS(u.useState({}),2),n=t[0],r=t[1],i=X.useBasicFetch(Rg(e.videoId)),o=X.useBasicFetch(Ed.currentUser()),s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};xd(ah.getObjectLevelsFetchOptions(e,Md.Videos,r("videoLevels")),[e]),xd(ah.getObjectAudiencesFetchOptions(e,Md.Videos,r("videoAudiences")),[e,t.videoLevels]),kd([ah.getPresentationsFetchOptions(r("presentations")),ah.getLevelsFetchOptions(r("levels"))],[]),xd(!!t.currentPresentation&&ah.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.videoId,n,r),Sg(n,r);var c=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.videoLevels&&n.videoAudiences);return u.createElement(u.Fragment,null,!!o.data&&u.createElement(NS,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_AUDIENCES,currentUser:o.data}),u.createElement(gl,{object:i.data}),!!c&&u.createElement(dh,{objectLevels:n.videoLevels,objectAudiences:n.videoAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:Md.Videos,saveLevels:function(t,n,r){return s.updateObjectLevels(e.videoId,t,Md.Videos,n,r,r)},saveAudiences:function(t,r){return s.updateObjectAudiences(e.videoId,n.currentPresentation.id,t,Md.Videos,r,r)}}))}function ZS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||QS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GS(e){return function(e){if(Array.isArray(e))return XS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||QS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QS(e,t){if(e){if("string"==typeof e)return XS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XS(e,t):void 0}}function XS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eE(e){var t=ZS(u.useState({}),2),n=t[0],r=t[1],i=X.useBasicFetch(Rg(e.videoId)),o=X.useBasicFetch(Ed.currentUser()),s=Mu(l.SUBJECT);!function(e,t,n){var r=function(e){return _d.getSetStateByKey(n,e)};kd([ah.getSubjectTreeFetchOptions(r("subjectTree")),ah.getPresentationsFetchOptions(r("presentations"))],[]),xd(ah.getObjectSubjectsFetchOptions(e,Md.Videos,r("videoSubjects")),[e]),xd(!!t.currentPresentation&&ah.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),u.useEffect((function(){return r("subjectClassifications")([])}),[t.videoSubjects]);var a=function(e,t){return[].concat(GS(t.subjectClassifications||[]),GS(e))},i=t.videoSubjects&&t.videoSubjects.map((function(e){return ah.getSubjectClassificationFetchOptions(e.id,_d.getSetStateByKey(n,"subjectClassifications",a))}));kd(i,[t.videoSubjects],!!i),xd(ah.getObjectClassificationsFetchOptions(e,Md.Videos,r("videoClassifications")),[e,t.videoSubjects])}(e.videoId,n,r),Sg(n,r);var c=!!(n.videoSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.videoClassifications&&n.subjectClassifications);return u.createElement(u.Fragment,null,!!o.data&&u.createElement(NS,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_SUBJECTS,currentUser:o.data}),u.createElement(gl,{object:i.data}),c&&u.createElement(eg,{objectSubjects:n.videoSubjects,subjectTree:n.subjectTree,memberType:Md.Videos,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:_d.getSetStateByKey(r,"currentPresentation"),objectClassifications:n.videoClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return s.updateObjectSubjects(e.videoId,t,Md.Videos,n,r,r)},saveClassifications:function(t,r){return s.updateObjectClassifications(e.videoId,n.currentPresentation.id,t,Md.Videos,r,r)}}))}!function(e){e.Markdown="text/markdown"}(RS||(RS={}));var tE=function(e){return{key:"aliases:".concat(e),url:"/api/master/v2/objects/".concat(e,"/aliases")}},nE=function(e,t,n,r){return{key:"create:alias",url:"/api/master/v2/objects/".concat(e,"/aliases"),type:ee.a.POST,invalidationKeys:"aliases:".concat(e),data:t,success:n,error:r}},rE=function(e,t,n,r){return{key:"delete:alias",url:"/api/domain/v2/objects/".concat(e,"/aliases/").concat(t),type:ee.a.DELETE,invalidationKeys:"aliases:".concat(e),success:n,error:r}};function aE(e){var t=Object(g.useDispatch)(),n=qu(),r=X.useBasicFetch(tE(e.videoId)),i=X.useBasicFetch(Ed.currentUser());return r.data?u.createElement(u.Fragment,null,!!i.data&&u.createElement(NS,{videoId:e.videoId,activeAction:a.Videos.EDIT_VIDEO_ALIASES,currentUser:i.data}),u.createElement(yu,{aliases:r.data.data,onSave:function(r,a){X.fetch(t,nE(e.videoId,r,(function(){n.success("Successfully created alias"),a()}),(function(){n.error("Something went wrong creating your alias")})))},onDelete:function(r){X.fetch(t,rE(e.videoId,r,(function(){n.success("Successfully deleted alias")}),(function(){n.error("Something went wrong deleting your alias")})))}})):u.createElement(u.Fragment,null,"Loading...")}function iE(e){return(iE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cE(e,t,n){return t&&sE(e.prototype,t),n&&sE(e,n),e}function lE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uE(e,t)}function uE(e,t){return(uE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dE(e);if(t){var a=dE(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return fE(this,n)}}function fE(e,t){return!t||"object"!==iE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dE(e){return(dE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mE=function(e){lE(n,e);var t=pE(n);function n(){return oE(this,n),t.apply(this,arguments)}return cE(n,[{key:"channelName",get:function(){return s.VIDEOS}},{key:"appRoutes",get:function(){return{"manage/videos/:id(/)":"editVideo","manage/videos/:id/audiences(/)":"editVideoAudiences","manage/videos/:id/classifications(/)":"editVideoSubjects","manage/videos/:id/aliases(/)":"editVideoAliases","tools/programlookup/:id":"legacyEditVideo"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(f.AppRouter),hE=function(e){lE(n,e);var t=pE(n);function n(){return oE(this,n),t.apply(this,arguments)}return cE(n,[{key:"initialize",value:function(){var e=this;ga.a.values(l).forEach((function(t){return Ru.getInstance(t,e)}))}},{key:"editVideo",value:function(e){this.layout.showChildView(E,u.createElement($S,{videoId:e}))}},{key:"editVideoAudiences",value:function(e){this.layout.showChildView(E,u.createElement(WS,{videoId:e}))}},{key:"editVideoSubjects",value:function(e){this.layout.showChildView(E,u.createElement(eE,{videoId:e}))}},{key:"editVideoAliases",value:function(e){this.layout.showChildView(E,u.createElement(aE,{videoId:e}))}},{key:"legacyEditVideo",value:function(e){f.LocationUtils.Redirect("/tools/programlookup/".concat(e))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(C,u.createElement(Qf,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"name",get:function(){return"Videos Application"}},{key:"channelName",get:function(){return s.VIDEOS}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT,options:{provider:xS,alertRegion:O}}}}],[{key:"router",get:function(){return mE}}]),n}(Pu);const gE="UPDATE_VIEW_MODEL";var yE;!function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage"}(yE||(yE={}));class vE{constructor(e){this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=e.type,this.hasSupport&&(this.storage=window[this.type])}get(e){if(!this.hasSupport)return;const t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}set(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();const r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){const t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){const t=`${this.cachePrefix}${e}`,n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){const t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){const e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return(new Date).getTime()}hasBrowserSupport(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}const bE=class extends vE{static get Instance(){return this.instance||(this.instance=new this({type:yE.LocalStorage}))}}.Instance,SE=class extends vE{static get Instance(){return this.instance||(this.instance=new this({type:yE.SessionStorage}))}}.Instance;const EE=(e,t,n)=>{const r=(a=null==n?void 0:n.storage)?a===yE.SessionStorage?SE:bE:null;var a;const i=Object(g.useDispatch)(),o=Object(g.useSelector)(t=>t.viewModelData[e]);function s(t,n){r&&function(t,n){if(!r)return;const a=r.get(e);if("string"==typeof t&&void 0!==n)return void r.set(e,Object.assign(Object.assign({},a),{dataOrKey:n}));r.set(e,t)}(t,n),i({type:gE,payload:{viewModelKey:e,dataOrKey:t,keyData:n}})}return void 0!==t&&void 0===o?s(t):r&&void 0===o&&s(r.get(e)),[o,s]};var CE="release:notes:config",OE=[{id:"798",name:"Monorepo"},{id:"109",name:"Online"},{id:"822",name:"Lite"},{id:"534",name:"Library Editor"},{id:"62",name:"Curator"}];function AE(e){var t=ea(),n=wa(t),r="798"===t.values.project;return p.a.useEffect((function(){e.getMilestones(t.values.project),r&&e.getBranchNames(t.values.project)}),[t.values.project]),p.a.useEffect((function(){t.setFieldValue("milestone",rp.a.first(e.milestones))}),[e.milestones]),p.a.useEffect((function(){t.setFieldValue("branchName",rp.a.first(e.branchNames))}),[e.branchNames]),p.a.createElement(ua,null,p.a.createElement(La,{as:"select",label:"Project",name:"project",id:"project",value:t.values.project},OE.map((function(e){return p.a.createElement("option",{key:e.id,value:e.id},e.name)}))),p.a.createElement(La,{as:"select",label:"Milestone",name:"milestone",id:"milestone",value:t.values.milestone,disabled:!e.milestones.length},e.milestones.map((function(e){return p.a.createElement("option",{key:e,value:e},e)}))),r&&p.a.createElement(La,{as:"select",label:"Branch Name",name:"branchName",id:"branchName",value:t.values.branchName,disabled:!e.branchNames.length},e.branchNames.map((function(e){return p.a.createElement("option",{key:e,value:e},e)}))),p.a.createElement("div",{className:"d-flex justify-content-between"},p.a.createElement(du,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Generate")))}var IE="U_Jxes3Htv-xiaDX5wfn",TE="https://gitlab.cvinternal.net/api/v4",jE=function(e,t){return{key:"milestones:".concat(e),url:xc.urlBuilder("".concat(TE,"/projects/").concat(e,"/milestones"),{private_token:IE}),normalize:!1,formatData:function(e){return e.map((function(e){return e.title}))},success:t}},LE=function(e,t){return{key:"branch:names:".concat(e),url:xc.urlBuilder("".concat(TE,"/projects/").concat(e,"/repository/branches"),{private_token:IE,per_page:50}),normalize:!1,formatData:function(e){return e.map((function(e){return e.name}))},success:t}},wE=function(e,t,n,r){return{key:"merge:requests:".concat(e,":").concat(t,":").concat(n),url:xc.urlBuilder("".concat(TE,"/projects/").concat(e,"/merge_requests"),{private_token:IE,milestone:t,state:"merged",per_page:50,page:n}),success:r}},kE=function(e,t,n){return{key:"file:paths:".concat(t,":").concat(e),url:xc.urlBuilder("".concat(TE,"/projects/").concat(e,"/search"),{scope:"blobs",search:t,private_token:IE}),normalize:!1,formatData:function(e){return e.filter((function(e){return e.filename.includes(t)}))},success:n}},xE=function(e,t,n,r){return{key:"file:".concat(e,":").concat(t,":").concat(n),url:xc.urlBuilder("".concat(TE,"/projects/").concat(e,"/repository/files/").concat(encodeURIComponent(t),"/raw"),{ref:n,private_token:IE}),normalize:!1,formatData:function(e){return JSON.parse(e)},success:r}},_E=ba.object().shape({project:ba.string().required("Project is required").default(""),milestone:ba.string().required("Milestone is required").default(""),branchName:ba.string().when("project",(function(e,t){return"798"===e?t.required("Branch name is required"):t})).default("")}).noUnknown();function NE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return PE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var DE={project:rp.a.first(OE).id};function RE(){var e=NE(p.a.useState([]),2),t=e[0],n=e[1],r=NE(p.a.useState([]),2),i=r[0],o=r[1],c=NE(EE(CE),2)[1],l=Object(g.useDispatch)();return p.a.createElement(p.a.Fragment,null,p.a.createElement("h4",{className:"py-2"},"Generate Release Notes"),p.a.createElement(va,{initialValues:DE,onSubmit:function(e){c(e),f.AppLinkHelper.trigger({application:s.RELEASE_NOTES,action:a.ReleaseNotes.GENERATOR})},validationSchema:_E},p.a.createElement(AE,{getMilestones:function(e){n([]),X.fetch(l,jE(e,n))},milestones:t,getBranchNames:function(e){o([]),X.fetch(l,LE(e,o))},branchNames:i})))}var ME=n(211),UE=/#*/;function FE(e){return e=e.replace("-"," "),e="## "+(e=(e=wl.toTitleCase(e)).replace(UE,"").trim())}function VE(e){var t=e.toLowerCase();return"## notes"===t||"## dependencies"===t}function BE(e){return e=e.replace("-"," "),e=wl.toTitleCase(e)}function zE(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return HE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HE(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function HE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qE=["# online","# curator","# library editor","# lite","# styles","# tooling","# analytics","# common","# shared","# player"];function JE(e){for(var t={name:"",changes:""},n=0;t.name||n<e.length;n++){var r=e[n];if(!r)break;if("#"===r){var a=e.indexOf("\n",n),i=e.slice(n,a);qE.includes(i.toLowerCase().trim())&&(t.name=wl.toTitleCase(i.replace("#","").trim()),e=e.slice(a),n=-1)}}for(var o=0;!t.changes&&o<e.length;o++){if(o+1===e.length){t.changes=e,e="";break}if("#"===e[o]&&"#"!==e[o+1]){var s=e.indexOf("\n",o),c=e.slice(o,s);qE.includes(c.toLowerCase().trim())&&(t.changes=e.slice(0,o),e=e.slice(o),o=-1)}}return{section:t,remainingDescription:e}}function $E(e){var t,n={},r=zE(e);try{for(r.s();!(t=r.n()).done;)for(var a=t.value;a;){var i=JE(a),o=i.section;if(a=i.remainingDescription,!o.name)break;n[o.name]||(n[o.name]=[]),n[o.name].push(o.changes)}}catch(e){r.e(e)}finally{r.f()}var s={};return Object.keys(n).forEach((function(e){var t,r;s[e]=(t=n[e],r={},t.forEach((function(e){for(var t=e.split("");t&&t.length;){for(var n=0;n<t.length&&t.length!==n+1;n++)if("#"===t[n]&&"#"===t[n+1]){var a=t.indexOf("\n",n),i=BE(t.slice(n,a).join(""));r[i]||(r[i]="");for(var o=a;o<t.length;o++){if(t.length===o+1){var s=t.slice(a+1).join("");r[i]+=s,t=[];break}if("#"===t[o]&&"#"===t[o+1]){var c=t.slice(a+1,o).join("");if(!c.length){t=t.slice(o),n=-1;break}r[i]+=c,t=t.slice(o),n=-1;break}}r[i]+="\n"}break}})),Object.keys(r).reduce((function(e,t){return e+=t+"\n",e+=r[t]+"\n"}),""))})),Object.keys(s).reduce((function(e,t){return e+="\n",e+="\n# ".concat(t),e+="\n".concat(s[t])}),"")}var KE=n(212),YE=n.n(KE);function WE(e){return function(e){if(Array.isArray(e))return QE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||GE(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||GE(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GE(e,t){if(e){if("string"==typeof e)return QE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QE(e,t):void 0}}function QE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XE(){var e=ZE(p.a.useState(!0),2),t=e[0],n=e[1],r=ZE(p.a.useState(1),2),i=r[0],o=r[1],c=ZE(p.a.useState([]),2),l=c[0],u=c[1],d=ZE(p.a.useState([]),2),m=d[0],h=d[1],y=ZE(p.a.useState(!0),2),v=y[0],b=y[1],S=ZE(p.a.useState(""),2),E=S[0],C=S[1],O=ZE(p.a.useState("Copy"),2),A=O[0],I=O[1],T=ZE(EE(CE),1)[0],j=T&&"798"===T.project,L=Object(g.useDispatch)();return p.a.useEffect((function(){if(T){var e=T.project,t=T.milestone;X.fetch(L,wE(e,t,i,(function(e){u([].concat(WE(l),WE(e))),50===e.length?o(i+1):n(!1)})))}}),[i]),p.a.useEffect((function(){if(!(t||j&&v)){var e=l.map((function(e){return e.description.replace("\r\n","\n").replace("\r","")})),n=j?function(e,t){var n=function(e){var t="# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n| @clickview/player | <player-version> |\n";return e.forEach((function(e){var n=e.name,r=e.version;r&&(t=t.replace("<".concat(n.replace("@clickview/",""),"-version>"),r))})),t}(t),r=$E(e);return"".concat(n,"\n").concat(r)}(e,m):function(e){var t={};return e.forEach((function(e){for(var n=e.split("");;){var r=!1;if(!n||!n.length)break;for(var a=0;a<n.length&&n.length!==a+1;a++)if("#"===n[a]){var i=n.indexOf("\n",a),o=FE(n.slice(a,i).join(""));t[o]||(VE(o)?r=!0:t[o]="");for(var s=i;s<n.length;s++){if(n.length===s+1){if(r){r=!1,n=[];break}var c=n.slice(i+1).join("");t[o]+=c,n=[];break}if("#"===n[s]){if(r){r=!1,n=n.slice(s),a=-1;break}var l=n.slice(i+1,s).join("");if(!l.length){n=n.slice(s),a=-1;break}t[o]+=l,n=n.slice(s),a=-1;break}}t[o]?t[o]+="\n":delete t[o]}break}})),Object.keys(t).reduce((function(e,n){return t[n]?(e+=n+"\n",e+=t[n]+"\n"):e}),"")}(e);C(n)}}),[t,v]),p.a.useEffect((function(){if(T&&j){var e=[];X.fetch(L,kE(T.project,"package.json",(function(t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=GE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;X.fetch(L,xE(T.project,a.path,T.branchName,(function(n){e.push(n),e.length===t.length&&(h(e),b(!1))})))}}catch(e){r.e(e)}finally{r.f()}})))}}),[]),T?p.a.createElement(p.a.Fragment,null,E?p.a.createElement("div",{className:"position-relative border rounded p-3"},p.a.createElement(ME,{onCopy:function(){return I("Copied")},text:E},p.a.createElement("button",{className:"btn btn-white ".concat(YE.a.copyBtn)},A)),p.a.createElement("div",{dangerouslySetInnerHTML:{__html:US()(E)}})):t?"Fetching merge requests..":"Merging descriptions.."):(f.AppLinkHelper.trigger({application:s.RELEASE_NOTES,action:a.ReleaseNotes.FORM}),p.a.createElement(p.a.Fragment,null))}function eC(e){return(eC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rC(e,t,n){return t&&nC(e.prototype,t),n&&nC(e,n),e}function aC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iC(e,t)}function iC(e,t){return(iC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cC(e);if(t){var a=cC(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return sC(this,n)}}function sC(e,t){return!t||"object"!==eC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cC(e){return(cC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lC,uC=function(e){aC(n,e);var t=oC(n);function n(){return tC(this,n),t.apply(this,arguments)}return rC(n,[{key:"channelName",get:function(){return s.RELEASE_NOTES}},{key:"appRoutes",get:function(){return{"developer/release-notes(/)":"index","developer/release-notes/generate(/)":"form","developer/release-notes/generator(/)":"generator"}}}]),n}(f.AppRouter),pC=function(e){aC(n,e);var t=oC(n);function n(){return tC(this,n),t.apply(this,arguments)}return rC(n,[{key:"index",value:function(){f.AppLinkHelper.trigger({application:s.RELEASE_NOTES,action:a.ReleaseNotes.GENERATOR},{replace:!0})}},{key:"form",value:function(){this.layout.showChildView(E,u.createElement(RE,null))}},{key:"generator",value:function(){this.layout.showChildView(E,u.createElement(XE,null))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return pc.Radio.channel(B.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(O,u.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Release Notes Application"}},{key:"channelName",get:function(){return s.RELEASE_NOTES}},{key:"layoutOptions",get:function(){return{name:o.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return uC}}]),n}(f.Application);!function(e){e.Fifo="FifoMemoryCache"}(lC||(lC={}));class fC extends _a.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return lC.Fifo}removeCacheKey(e){this.cachedkeys=d.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||Na.c.throw(new Ra.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(e,t){if(this.has(e))return this.get(e);const n=t();return this.set(e,n),n}remove(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}invalidate(e,t){const n=d.object(this.cachedkeys,this.cachedkeys);let r=[];d.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),a=d.filter(n,e=>t.test(e));r.push(...a)}),r.length&&(r=d.uniq(r),d.each(r,e=>{delete this.cache[e],d.isFunction(t)&&t(e)}),this.cachedkeys=d.without(this.cachedkeys,...r))}}var dC,mC=n(17);!function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(dC||(dC={}));const hC={type:dC.Unknown,message:"",code:0};var gC;!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(gC||(gC={}));const yC={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=""+n.errorCode;return n.errorSubCode&&(r+="."+n.errorSubCode),e[r]||e[t]}};class vC extends mC.Object{constructor(e){super(e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return gC.Ajax}parseUrl(e){const t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}makeHttps(e){const t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}base(e,t,n,r={}){n||(n=ee.a.GET);const a=d.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===ee.a.POST||n===ee.a.PUT?JSON.stringify(t):t),a.forceHttps&&(i.url=this.makeHttps(i.url)),a.traditional&&(i.traditional=a.traditional);const o=$.ajax(i);return d.keys(this.successMiddleware).length&&o.done(d.values(this.successMiddleware)),d.keys(this.errorMiddleware).length&&o.fail(d.values(this.errorMiddleware)),o}create(e,t,n){const{channel:r,successEvent:a,errorEvent:i}=n;this.base(e,t,ee.a.POST).done((e,t,n)=>r.trigger(a,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:a}=t;this.base(e,null,ee.a.GET).done((e,t,a)=>{n.trigger(r,e,t,a)}).fail((e,t,r)=>{n.trigger(a,e,t,r)})}update(e,t,n){const{channel:r,successEvent:a,errorEvent:i}=n;this.base(e,t,ee.a.PUT).done((e,t,n)=>r.trigger(a,e,t,n)).fail((e,t,n)=>r.trigger(i,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:a}=t;this.base(e,null,ee.a.DELETE).done((e,t,a)=>n.trigger(r,e,t,a)).fail((e,t,r)=>n.trigger(a,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e){const t=e.responseJSON,n=hC;switch(n.code=e.status,n.message=yC.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=dC.BadRequest;break;case 401:n.type=dC.Unauthorized;break;case 403:n.type=dC.Forbidden;break;case 404:n.type=dC.NotFound;break;case 500:n.type=dC.InternalServer}return n}}function bC(e={},t){switch(t.type){case gE:return function(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),{[t.payload.viewModelKey]:Object.assign(Object.assign({},e[t.payload.viewModelKey]),{[t.payload.dataOrKey]:t.payload.keyData})}):Object.assign(Object.assign({},e),{[t.payload.viewModelKey]:t.payload.dataOrKey})}(e,t)}return e}const SC="LanguageDataService",EC="locale",CC="phrases",OC="language:data:service";class AC extends Nd{get name(){return SC}get channelName(){return OC}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:EC,expiryTime:Dd.STANDARD,bootstrapName:vd,callback:n=>{t.locale=n,t.phrases&&d.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:CC,expiryTime:Dd.STANDARD,bootstrapName:bd,callback:n=>{t.phrases=n,t.locale&&d.isFunction(e)&&e(t)}})}}n.d(t,"Layouts",(function(){return o})),n.d(t,"AppChannels",(function(){return s})),n.d(t,"DataChannels",(function(){return c})),n.d(t,"Actions",(function(){return a})),n.d(t,"DataPrefixes",(function(){return i})),n.d(t,"DataServices",(function(){return l})),n.d(t,"CuratorLayoutView",(function(){return D})),n.d(t,"LayoutComponent",(function(){return V})),n.d(t,"CuratorAppNavService",(function(){return Q})),n.d(t,"CompaniesApplication",(function(){return _u})),n.d(t,"CustomersApplication",(function(){return vp})),n.d(t,"DomainOptionsApplication",(function(){return mf})),n.d(t,"PeopleApplication",(function(){return Jf})),n.d(t,"PlaylistsApplication",(function(){return hb})),n.d(t,"SeriesApplication",(function(){return Hb})),n.d(t,"SubjectDataService",(function(){return nh})),n.d(t,"SubjectDataServiceHelper",(function(){return ah})),n.d(t,"SubjectsApplication",(function(){return rS})),n.d(t,"ThemesApplication",(function(){return kS})),n.d(t,"VideosApplication",(function(){return hE})),n.d(t,"DomainOptionsApplication",(function(){return mf})),n.d(t,"ReleaseNotesApplication",(function(){return pC})),n.d(t,"Core",(function(){return f})),n.d(t,"InstanceManager",(function(){return Ru})),n.d(t,"FifoMemoryCache",(function(){return fC})),n.d(t,"AjaxDataProvider",(function(){return vC})),n.d(t,"AlertList",(function(){return Ip})),n.d(t,"AlertType",(function(){return Uu})),n.d(t,"BaseAlertService",(function(){return Hu})),n.d(t,"LanguageService",(function(){return Fa})),n.d(t,"Flight",(function(){return X})),n.d(t,"CacheDurations",(function(){return Dd})),n.d(t,"ViewModelReducer",(function(){return bC})),n.d(t,"LanguageDataService",(function(){return AC}))}])}));
17
+ */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case p:case a:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case y:case u:return e;default:return t}}case o:return t}}}function C(e){return O(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=y,t.Portal=o,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||O(e)===f},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===S||e.$$typeof===E||e.$$typeof===b)},t.typeOf=O},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=f(o),c=f(n(37)),s=f(n(278)),u=f(n(279)),l=n(287);function f(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return m.call(r),r.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},r.justPressedUpDown=!1,r.justMouseEntered=!1,r.pressedSuggestion=null,r}return function(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,e),i(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,i=n.onSuggestionHighlighted,o=n.highlightFirstSuggestion;if(!(0,s.default)(r,e.suggestions)&&r.length>0&&o)this.highlightFirstSuggestion();else if(i){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&i({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(i){var o=i.valueBeforeUpDown;return null===t?o=null:null===o&&void 0!==n&&(o=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:o}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,i=n.multiSection,o=n.getSectionSuggestions;return i?o(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;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 r=this.props.inputProps,i=r.value,o=r.onChange;t!==i&&o(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,i=n.value;return t.length>0&&r(i)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,i=t.renderInputComponent,o=t.onSuggestionsFetchRequested,c=t.renderSuggestion,s=t.inputProps,f=t.multiSection,d=t.renderSectionTitle,m=t.id,h=t.getSectionSuggestions,y=t.theme,v=t.getSuggestionValue,b=t.alwaysRenderSuggestions,g=t.highlightFirstSuggestion,S=this.state,E=S.isFocused,O=S.isCollapsed,C=S.highlightedSectionIndex,A=S.highlightedSuggestionIndex,j=S.valueBeforeUpDown,w=b?p:this.props.shouldRenderSuggestions,I=s.value,T=s.onFocus,k=s.onKeyDown,L=this.willRenderSuggestions(this.props),_=b||E&&!O&&L,x=_?n:[],P=r({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=w(I);e.setState({isFocused:!0,isCollapsed:!n}),T&&T(t),n&&o({value:I,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,i=w(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(r({},g?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!i})),i?o({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var i=t.keyCode;switch(i){case 40:case 38:if(O)w(I)&&(o({value:I,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var a=r.newHighlightedSectionIndex,c=r.newHighlightedItemIndex,s=void 0;s=null===c?null===j?I:j:e.getSuggestionValueByIndex(a,c),e.updateHighlightedSuggestion(a,c,I),e.maybeCallOnChange(t,s,40===i?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(_&&!b&&e.closeSuggestions(),null!=u){var l=v(u);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:l,suggestionIndex:A,sectionIndex:C,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:_&&t.preventDefault();var f=_&&!b;if(null===j){if(!f){e.maybeCallOnChange(t,"","escape"),w("")?o({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,j,"escape");f?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}k&&k(t)}}),N={query:this.getQuery()};return a.default.createElement(u.default,{multiSection:f,items:x,renderInputComponent:i,renderItemsContainer:this.renderSuggestionsContainer,renderItem:c,renderItemData:N,renderSectionTitle:d,getSectionItems:h,highlightedSectionIndex:C,highlightedItemIndex:A,inputProps:P,itemProps:this.itemProps,theme:(0,l.mapToAutowhateverTheme)(y),id:m,ref:this.storeAutowhateverRef})}}]),t}(o.Component);d.propTypes={suggestions:c.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:c.default.func,onSuggestionHighlighted:c.default.func,renderInputComponent:c.default.func,renderSuggestionsContainer:c.default.func,getSuggestionValue:c.default.func.isRequired,renderSuggestion:c.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:c.default.func,alwaysRenderSuggestions:c.default.bool,multiSection:c.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:c.default.bool,highlightFirstSuggestion:c.default.bool,theme:c.default.object,id:c.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return a.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:l.defaultTheme,id:"1"};var m=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.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var r=n.sectionIndex,i=n.itemIndex;e.updateHighlightedSuggestion(r,i),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var r=e.props,i=r.alwaysRenderSuggestions,o=r.onSuggestionSelected,a=r.onSuggestionsFetchRequested;o&&o(t,n),i?a({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,r=n.alwaysRenderSuggestions,i=n.focusInputOnSuggestionClick,o=e.getSuggestionIndices(e.findSuggestionElement(t.target)),a=o.sectionIndex,c=o.suggestionIndex,s=e.getSuggestion(a,c),u=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:u,suggestionIndex:c,sectionIndex:a,method:"click"}),r||e.closeSuggestions(),!0===i?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,r=t.shouldRenderSuggestions,i=n.value,o=n.onBlur,a=e.getHighlightedSuggestion(),c=r(i);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!c}),o&&o(e.blurEvent,{highlightedSuggestion:a})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,r=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:r,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";var r=n(277);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("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");throw c.name="Invariant Violation",c}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return 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){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(280).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),c=d(a),s=d(n(37)),u=d(n(281)),l=d(n(282)),f=d(n(284)),p=d(n(285));function d(e){return e&&e.__esModule?e:{default:e}}var m={},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,r=t.inputProps,o=t.highlightedSectionIndex,a=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var c="ArrowDown"===e.key?"next":"prev",s=n.sectionIterator[c]([o,a]),u=i(s,2),l=u[0],f=u[1];r.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:f});break;default:r.onKeyDown(e,{highlightedSectionIndex:o,highlightedItemIndex:a})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(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,e),o(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_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.ensureHighlightedItemIsVisible()}},{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,u.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,l.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,o=n.renderItem,a=n.renderItemData,s=n.renderSectionTitle,u=n.highlightedSectionIndex,l=n.highlightedItemIndex,d=n.itemProps;return i.map((function(n,i){var m="react-autowhatever-"+r+"-",h=m+"section-"+i+"-",y=0===i;return c.default.createElement("div",t(h+"container","sectionContainer",y&&"sectionContainerFirst"),c.default.createElement(f.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:h}),c.default.createElement(p.default,{items:e.sectionsItems[i],itemProps:d,renderItem:o,renderItemData:a,sectionIndex:i,highlightedItemIndex:u===i?l:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:m,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,r=n.id,i=n.renderItem,o=n.renderItemData,a=n.highlightedSectionIndex,s=n.highlightedItemIndex,u=n.itemProps;return c.default.createElement(p.default,{items:e,itemProps:u,renderItem:i,renderItemData:o,highlightedItemIndex:null===a?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+r+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,i=t.multiSection,o=t.renderInputComponent,a=t.renderItemsContainer,s=t.highlightedSectionIndex,u=t.highlightedItemIndex,l=this.state.isInputFocused,f=i?this.renderSections():this.renderItems(),p=null!==f,d=this.getItemId(s,u),m="react-autowhatever-"+n,h=r({role:"combobox","aria-haspopup":"listbox","aria-owns":m,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),y=o(r({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":m,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",l&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=a({containerProps:r({id:m,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:f});return c.default.createElement("div",h,y,v)}}]),t}(a.Component);h.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},h.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return c.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return c.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:m,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:m,inputProps:m,itemProps:m,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=h},function(e,t,n){"use strict";var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function i(e){var i=r(e,2),o=i[0],a=i[1];return n?null===a||a===t[o]-1?null===(o=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(o))?[null,null]:[o,0]:[o,a+1]:0===t||a===t-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:i,prev:function(e){var i=r(e,2),o=i[0],a=i[1];return n?null===a||0===a?null===(o=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(o))?[null,null]:[o,t[o]-1]:[o,a-1]:0===t||0===a?[null,null]:null===a?[null,t-1]:[null,a-1]},isLast:function(e){return null===i(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};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)}var o,a=n(283),c=(o=a)&&o.__esModule?o:{default:o},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=r(t,2),o=n[0],a=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var u=n.map((function(e){return o[e]})).filter(s);return"string"==typeof u[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,i(u)):u.join(" ")}:{key:e,style:c.default.apply(void 0,[{}].concat(i(u)))}}},e.exports=t.default},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter((function(t){return r.call(e,t)}))}e.exports=Object.assign||function(e,t){for(var n,r,a=i(e),c=1;c<arguments.length;c++){n=arguments[c],r=o(Object(n));for(var s=0;s<r.length;s++)a[r[s]]=n[r[s]]}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=s(i),a=s(n(37)),c=s(n(57));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,a=n(t);return a?o.default.createElement("div",r(i+"title","sectionTitle"),a):null}}]),t}(i.Component);f.propTypes={section:a.default.any.isRequired,renderSectionTitle:a.default.func.isRequired,theme:a.default.func.isRequired,sectionKeyPrefix:a.default.string.isRequired},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=l(o),c=l(n(37)),s=l(n(286)),u=l(n(57));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}var d=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.storeHighlightedItemReference=function(e){r.props.onHighlightedItemChange(null===e?null:e.item)},p(r,n)}return function(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,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,i=t.itemProps,o=t.renderItem,c=t.renderItemData,u=t.sectionIndex,l=t.highlightedItemIndex,f=t.getItemId,p=t.theme,d=t.keyPrefix,m=null===u?d:d+"section-"+u+"-",h="function"==typeof i;return a.default.createElement("ul",r({role:"listbox"},p(m+"items-list","itemsList")),n.map((function(t,n){var d=0===n,y=n===l,v=m+"item-"+n,b=h?i({sectionIndex:u,itemIndex:n}):i,g=r({id:f(u,n),"aria-selected":y},p(v,"item",d&&"itemFirst",y&&"itemHighlighted"),b);return y&&(g.ref=e.storeHighlightedItemReference),a.default.createElement(s.default,r({},g,{sectionIndex:u,isHighlighted:y,itemIndex:n,item:t,renderItem:o,renderItemData:c}))})))}}]),t}(o.Component);d.propTypes={items:c.default.array.isRequired,itemProps:c.default.oneOfType([c.default.object,c.default.func]),renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,sectionIndex:c.default.number,highlightedItemIndex:c.default.number,onHighlightedItemChange:c.default.func.isRequired,getItemId:c.default.func.isRequired,theme:c.default.func.isRequired,keyPrefix:c.default.string.isRequired},d.defaultProps={sectionIndex:null},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=u(o),c=u(n(37)),s=u(n(57));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}var p=function(e){function t(){var e,n,r;l(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.storeItemReference=function(e){null!==e&&(r.item=e)},r.onMouseEnter=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseEnter(e,{sectionIndex:n,itemIndex:i})},r.onMouseLeave=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseLeave(e,{sectionIndex:n,itemIndex:i})},r.onMouseDown=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onMouseDown(e,{sectionIndex:n,itemIndex:i})},r.onClick=function(e){var t=r.props,n=t.sectionIndex,i=t.itemIndex;r.props.onClick(e,{sectionIndex:n,itemIndex:i})},f(r,n)}return function(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,e),i(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,i=e.renderItem,o=e.renderItemData,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete c.sectionIndex,delete c.itemIndex,"function"==typeof c.onMouseEnter&&(c.onMouseEnter=this.onMouseEnter),"function"==typeof c.onMouseLeave&&(c.onMouseLeave=this.onMouseLeave),"function"==typeof c.onMouseDown&&(c.onMouseDown=this.onMouseDown),"function"==typeof c.onClick&&(c.onClick=this.onClick),a.default.createElement("li",r({role:"option"},c,{ref:this.storeItemReference}),i(n,r({isHighlighted:t},o)))}}]),t}(o.Component);p.propTypes={sectionIndex:c.default.number,isHighlighted:c.default.bool.isRequired,itemIndex:c.default.number.isRequired,item:c.default.any.isRequired,renderItem:c.default.func.isRequired,renderItemData:c.default.object.isRequired,onMouseEnter:c.default.func,onMouseLeave:c.default.func,onMouseDown:c.default.func,onClick:c.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},function(e,t,n){"use strict";t.__esModule=!0;var r=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}(n(289));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(e){return e.replace(/"/g,"&quot;")}function s(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,m=f.tagName,h=f.className,y=f.target,v=f.attributes,b="<"+m+' href="'+c(d)+'"';h&&(b+=' class="'+c(h)+'"'),y&&(b+=' target="'+c(y)+'"'),v&&(b+=" "+s(v)),b+=">"+a(p)+"</"+m+">",r.push(b)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(42),i=c(n(290)),o=c(n(291)),a=c(n(292));function c(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}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var s=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||t&&o.type!==t||r.push(o.toObject())}return r},t.inherits=r.inherits,t.options=i,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=s},function(e,t,n){"use strict";t.__esModule=!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},i={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=i,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:i[e])?o(t,n.type):o}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),i=n(58),o=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}(i);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),s="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),m=f(i.DOMAIN),h=f(),y=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,y),y.on(u,y);for(var v=0;v<a.length;v++){var b=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,b)}var g=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),E=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),O=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,g),l.push.apply(l,S),l.push.apply(l,E),l.push.apply(l,O);var C=g.pop(),A=S.pop(),j=E.pop(),w=O.pop(),I=f(i.DOMAIN),T=f(i.PROTOCOL),k=f(i.MAILTO);A.on("s",I).on(":",T),j.on("s",I).on(":",T),l.push(I),C.on(":",T),I.on(":",T),w.on(":",k);var L=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,L),p.on(c,d),d.on("-",h).on(c,d).on(s,m),m.on("-",h).on(s,m);for(var _=0;_<l.length;_++)l[_].on("-",h).on(s,m);h.on("-",h).on(c,m).on(s,m),p.defaultTransition=f(i.SYM);var x=p;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=p,a=null,c=0,s=null,u=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(u=0,s=o):u>=0&&u++,c++,i++;if(!(u<0)){i-=u,c-=u;var l=s.emit();r.push(new l(e.substr(i-c,c)))}}return r},t.start=x},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(189),i=n(293),o=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}(i),a=n(58);var c=function(e){return new r.TokenState(e)},s=c(),u=c(),l=c(),f=c(),p=c(),d=c(),m=c(),h=c(i.URL),y=c(),v=c(i.URL),b=c(i.URL),g=c(),S=c(),E=c(),O=c(),C=c(),A=c(i.URL),j=c(i.URL),w=c(i.URL),I=c(i.URL),T=c(),k=c(),L=c(),_=c(),x=c(),P=c(),N=c(i.EMAIL),R=c(),D=c(i.EMAIL),M=c(i.MAILTOEMAIL),U=c(),F=c(),V=c(),B=c(),z=c(i.NL);s.on(a.NL,z).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),s.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,h).on(a.NUM,d),p.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),d.on(a.DOT,m),x.on(a.DOT,P),m.on(a.TLD,h).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),P.on(a.TLD,N).on(a.DOMAIN,x).on(a.NUM,x).on(a.LOCALHOST,x),h.on(a.DOT,m),N.on(a.DOT,P),h.on(a.COLON,y).on(a.SLASH,b),y.on(a.NUM,v),v.on(a.SLASH,b),N.on(a.COLON,R),R.on(a.NUM,D);var H=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];b.on(a.OPENBRACE,S).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),g.on(a.OPENBRACE,S).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),S.on(a.CLOSEBRACE,b),E.on(a.CLOSEBRACKET,b),O.on(a.CLOSEANGLEBRACKET,b),C.on(a.CLOSEPAREN,b),A.on(a.CLOSEBRACE,b),j.on(a.CLOSEBRACKET,b),w.on(a.CLOSEANGLEBRACKET,b),I.on(a.CLOSEPAREN,b),T.on(a.CLOSEBRACE,b),k.on(a.CLOSEBRACKET,b),L.on(a.CLOSEANGLEBRACKET,b),_.on(a.CLOSEPAREN,b),S.on(H,A),E.on(H,j),O.on(H,w),C.on(H,I),S.on(q,T),E.on(q,k),O.on(q,L),C.on(q,_),A.on(H,A),j.on(H,j),w.on(H,w),I.on(H,I),A.on(q,A),j.on(q,j),w.on(q,w),I.on(q,I),T.on(H,A),k.on(H,j),L.on(H,w),_.on(H,I),T.on(q,T),k.on(q,k),L.on(q,L),_.on(q,_),b.on(H,b),g.on(H,b),b.on(q,g),g.on(q,g),l.on(a.TLD,M).on(a.DOMAIN,M).on(a.NUM,M).on(a.LOCALHOST,M),M.on(H,M).on(q,U),U.on(H,M).on(q,U);var J=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(J,F).on(a.AT,V),h.on(J,F).on(a.AT,V),m.on(J,F),F.on(J,F).on(a.AT,V).on(a.DOT,B),B.on(J,F),V.on(a.TLD,x).on(a.DOMAIN,x).on(a.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,r=[],o=[];n<t;){for(var a=s,c=null,u=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=c||a.next(e[n]));)c=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var m=f.emit();r.push(new m(e.slice(n-l,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},t.start=s},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(190),i=n(42),o=n(58);function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var s=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,i=[],c=0;r[c]instanceof o.PROTOCOL;)t=!0,i.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof o.SLASH;)n=!0,i.push(r[c].toString()),c++;for(;a(r[c]);)i.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)i.push(r[c].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=s,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){const{defaults:r}=n(38),{block:i}=n(193),{rtrim:o,splitCells:a,escape:c}=n(32);e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.rules=i.normal,this.options.pedantic?this.rules=i.pedantic:this.options.gfm&&(this.rules=i.gfm)}static get rules(){return i}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,r,s,u,l,f,p,d,m,h,y,v,b,g,S,E;for(e=e.replace(/^ +$/gm,"");e;)if((s=this.rules.newline.exec(e))&&(e=e.substring(s[0].length),s[0].length>1&&this.tokens.push({type:"space"})),s=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(s[0].length),t&&"paragraph"===t.type?t.text+="\n"+s[0].trimRight():(s=s[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?s:o(s,"\n")}))}else if(s=this.rules.fences.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"code",lang:s[2]?s[2].trim():s[2],text:s[3]||""});else if(s=this.rules.heading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});else if((s=this.rules.nptable.exec(e))&&(f={type:"table",header:a(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(s[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=a(f.cells[y],f.header.length);this.tokens.push(f)}else if(s=this.rules.hr.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"hr"});else if(s=this.rules.blockquote.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"blockquote_start"}),s=s[0].replace(/^ *> ?/gm,""),this.token(s,t),this.tokens.push({type:"blockquote_end"});else if(s=this.rules.list.exec(e)){for(e=e.substring(s[0].length),u=s[2],g=u.length>1,p={type:"list_start",ordered:g,start:g?+u:"",loose:!1},this.tokens.push(p),s=s[0].match(this.rules.item),d=[],n=!1,b=s.length,y=0;y<b;y++)f=s[y],h=f.length,f=f.replace(/^ *([*+-]|\d+\.) */,""),~f.indexOf("\n ")&&(h-=f.length,f=this.options.pedantic?f.replace(/^ {1,4}/gm,""):f.replace(new RegExp("^ {1,"+h+"}","gm"),"")),y!==b-1&&(l=i.bullet.exec(s[y+1])[0],(u.length>1?1===l.length:l.length>1||this.options.smartLists&&l!==u)&&(e=s.slice(y+1).join("\n")+e,y=b-1)),r=n||/\n\n(?!\s*$)/.test(f),y!==b-1&&(n="\n"===f.charAt(f.length-1),r||(r=n)),r&&(p.loose=!0),S=/^\[[ xX]\] /.test(f),E=void 0,S&&(E=" "!==f[1],f=f.replace(/^\[[ xX]\] +/,"")),m={type:"list_item_start",task:S,checked:E,loose:r},d.push(m),this.tokens.push(m),this.token(f,!1),this.tokens.push({type:"list_item_end"});if(p.loose)for(b=d.length,y=0;y<b;y++)d[y].loose=!0;this.tokens.push({type:"list_end"})}else if(s=this.rules.html.exec(e))e=e.substring(s[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===s[1]||"script"===s[1]||"style"===s[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0]});else if(t&&(s=this.rules.def.exec(e)))e=e.substring(s[0].length),s[3]&&(s[3]=s[3].substring(1,s[3].length-1)),v=s[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[v]||(this.tokens.links[v]={href:s[2],title:s[3]});else if((s=this.rules.table.exec(e))&&(f={type:"table",header:a(s[1].replace(/^ *| *\| *$/g,"")),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3]?s[3].replace(/\n$/,"").split("\n"):[]},f.header.length===f.align.length)){for(e=e.substring(s[0].length),y=0;y<f.align.length;y++)/^ *-+: *$/.test(f.align[y])?f.align[y]="right":/^ *:-+: *$/.test(f.align[y])?f.align[y]="center":/^ *:-+ *$/.test(f.align[y])?f.align[y]="left":f.align[y]=null;for(y=0;y<f.cells.length;y++)f.cells[y]=a(f.cells[y].replace(/^ *\| *| *\| *$/g,""),f.header.length);this.tokens.push(f)}else if(s=this.rules.lheading.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"heading",depth:"="===s[2].charAt(0)?1:2,text:s[1]});else if(t&&(s=this.rules.paragraph.exec(e)))e=e.substring(s[0].length),this.tokens.push({type:"paragraph",text:"\n"===s[1].charAt(s[1].length-1)?s[1].slice(0,-1):s[1]});else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.tokens.push({type:"text",text:s[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}}},function(e,t,n){const r=n(59),i=n(194),o=n(195),a=n(196),{defaults:c}=n(38),{merge:s,unescape:u}=n(32);e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||c,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new i}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,s({},this.options,{renderer:new a})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,r,i,o="";for(r="",t=0;t<this.token.header.length;t++)r+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(o+=this.renderer.tablerow(r),t=0;t<this.token.cells.length;t++){for(n=this.token.cells[t],r="",i=0;i<n.length;i++)r+=this.renderer.tablecell(this.inline.output(n[i]),{header:!1,align:this.token.align[i]});e+=this.renderer.tablerow(r)}return this.renderer.table(o,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,n=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,n)}case"list_item_start":{e="";const t=this.token.loose,n=this.token.checked,r=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(n)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(n)});else e+=this.renderer.checkbox(n);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,r,n)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=o(n(0)),i=o(n(297));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(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})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(){var e,n;u(this,t);for(var o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return h(d(n=f(this,(e=p(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=n.props,o=t.text,a=t.onCopy,c=t.children,s=t.options,u=r.default.Children.only(c),l=(0,i.default)(o,s);a&&a(o,l),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e)})),n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,["text","onCopy","options","children"]),i=r.default.Children.only(t);return r.default.cloneElement(i,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&l(n.prototype,o),a&&l(n,a),t}(r.default.PureComponent);t.CopyToClipboard=y,h(y,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(298),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,c,s,u,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){"use strict";n.r(t);n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269);var r={UPLOAD_IMAGE:"upload:image"},i={Subjects:Object.assign({SUBJECTS:"subjects",NEW_SUBJECT:"new:subject",EDIT_SUBJECT:"edit:subject",EDIT_SUBJECT_PLAYLISTS:"edit:subject:playlists",EDIT_SUBJECT_SERIES:"edit:subject:series",EDIT_SUBJECT_VIDEOS:"edit:subject:videos",SUBJECT_CLASSIFICATIONS:"subject:classifications",DELETE_SUBJECT:"delete:subject",ADD_SUBJECT_MEMBERS:"add:subject:members",REMOVE_SUBJECT_MEMBER:"remove:subject:member",CLASSIFICATIONS:"classifications",PRESENTATION_CLASSIFICATIONS:"presentation:classifications",NEW_CLASSIFICATION:"new:classification",EDIT_CLASSIFICATION:"edit:classification",EDIT_CLASSIFICATION_PLAYLISTS:"edit:classification:playlists",EDIT_CLASSIFICATION_SERIES:"edit:classification:series",EDIT_CLASSIFICATION_VIDEOS:"edit:classification:videos",DELETE_CLASSIFICATION:"delete:classification",REMOVE_CLASSIFICATION_MEMBER:"remove:classification:member",LEVELS:"levels",NEW_LEVEL:"new:level",EDIT_LEVEL:"edit:level",LEVEL_AUDIENCES:"level:audiences",EDIT_LEVEL_PLAYLISTS:"edit:level:playlists",EDIT_LEVEL_SERIES:"edit:level:series",EDIT_LEVEL_VIDEOS:"edit:level:videos",REMOVE_LEVEL_MEMBER:"remove:level:member",AUDIENCES:"audiences",PRESENTATION_AUDIENCES:"presentation:audiences",NEW_AUDIENCE:"new:audience",EDIT_AUDIENCE:"edit:audience",EDIT_AUDIENCE_PLAYLISTS:"edit:audience:playlists",EDIT_AUDIENCE_SERIES:"edit:audience:series",EDIT_AUDIENCE_VIDEOS:"edit:audience:videos",DELETE_AUDIENCE:"delete:audience",REMOVE_AUDIENCE_MEMBER:"remove:audience:member",PRESENTATIONS:"presentations",NEW_PRESENTATION:"new:presentation",EDIT_PRESENTATION:"edit:presentation"},r),Playlists:Object.assign({PLAYLISTS:"index",SEARCH_PLAYLISTS:"search:playlists",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",EDIT_PLAYLIST_VIDEOS:"edit:playlist:videos",EDIT_PLAYLIST_SUBJECTS:"edit:playlist:subjects",EDIT_PLAYLIST_AUDIENCES:"edit:playlist:audiences",DELETE_PLAYLIST:"delete:playlist",REMOVE_VIDEO:"remove:video",REMOVE_FROM_SUBJECT:"remove:from:subject"},r),Series:Object.assign({EDIT_SERIES:"edit:series",EDIT_SERIES_VIDEOS:"edit:series:videos",EDIT_SERIES_SUBJECTS:"edit:series:subjects",EDIT_SERIES_AUDIENCES:"edit:series:audiences",LEGACY_EDIT_SERIES:"legacy:edit:series"},r),Videos:Object.assign({EDIT_VIDEO:"edit:video",EDIT_VIDEO_AUDIENCES:"edit:video:audiences",EDIT_VIDEO_SUBJECTS:"edit:video:subjects",EDIT_VIDEO_ALIASES:"edit:video:aliases",LEGACY_EDIT_VIDEO:"legacy:edit:video"},r),DomainOptions:{DOMAIN_OPTIONS:"domain:options",NEW_DOMAIN_OPTION:"new:domain:option",EDIT_DOMAIN_OPTION:"edit:domain:option",DELETE_DOMAIN_OPTION:"delete:domain:option"},People:{PEOPLE:"people",NEW_PERSON:"new:person",EDIT_PERSON:"edit:person"},Companies:{COMPANIES:"companies",NEW_COMPANY:"new:company",EDIT_COMPANY:"edit:company"},Themes:Object.assign({THEMES:"themes",NEW_THEME:"new:theme",EDIT_THEME:"edit:theme",DELETE_THEME:"delete:theme"},r),ReleaseNotes:{FORM:"form",GENERATOR:"generator"},Customers:{EDIT_CUSTOMER_PRESENTATIONS:"edit:customer:presentations"}},o={SUBJECT:"subject",SUBJECTS:"subjects",UPDATE_SUBJECT:"update:subject",DELETE_SUBJECT:"delete:subject",UPDATE_OBJECT_SUBJECTS:"update:object:subjects",ADD_TO_SUBJECT:"add:to:subject",REMOVE_FROM_SUBJECT:"remove:from:subject",CLASSIFICATION:"classification",CLASSIFICATIONS:"classifications",UPDATE_CLASSIFICATION:"update:classification",DELETE_CLASSIFICATION:"delete:classification",UPDATE_OBJECT_CLASSIFICATIONS:"update:object:classifications",ADD_TO_CLASSIFICATION:"add:to:classification",REMOVE_FROM_CLASSIFICATION:"remove:from:classification",PRESENTATION:"presentation",PRESENTATIONS:"presentations",UPDATE_PRESENTATION:"update:presentation",LEVEL:"level",LEVELS:"levels",UPDATE_LEVEL:"update:level",ADD_TO_LEVEL:"add:to:level",REMOVE_FROM_LEVEL:"remove:from:level",UPDATE_OBJECT_LEVELS:"update:object:levels",AUDIENCE:"audience",AUDIENCES:"audiences",UPDATE_AUDIENCE:"update:audience",DELETE_AUDIENCE:"delete:audience",UPDATE_OBJECT_AUDIENCES:"update:object:audiences",ADD_TO_AUDIENCE:"add:to:audience",REMOVE_FROM_AUDIENCE:"remove:from:audience",PLAYLIST:"playlist",PLAYLISTS:"playlists",UPDATE_PLAYLIST:"update:playlist",DELETE_PLAYLIST:"delete:playlist",PLAYLIST_VIDEOS:"playlist:videos",REORDER_PLAYLIST_VIDEOS:"reorder:playlist:videos",REMOVE_PLAYLIST_VIDEO:"remove:playlist:video",VIDEO:"video",SERIES:"series",SERIES_BY_ID:"series:by:id",UPDATE_SERIES:"update:series",CURRENT_USER:"current:user",UPLOAD_IMAGE:"upload:image",LOCALE:"locale",PHRASES:"PHRASES"},a={CURATOR_LAYOUT:"CuratorLayout"},c={COMPANIES:"companies:application",CUSTOMERS:"customers:application",DOMAIN_OPTIONS:"domain:options:application",PEOPLE:"people:application",PLAYLISTS:"playlists:application",SERIES:"series:application",SUBJECTS:"subjects:application",THEMES:"themes:application",VIDEOS:"videos:application",RELEASE_NOTES:"release:notes:application"},s={IMAGE_UPLOAD:"image:upload:data:service",SUBJECT:"subject:data:service",LANGUAGE:"language:data:service"},u={SUBJECT:"SubjectDataService",LANGUAGE:"LanguageDataService"},l=n(0),f=n.n(l),p=n(29),d=n(1),m=function(e){return d.isFunction(e)},h=function(){return d.identity},y=n(53),v=n(6);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(o,e);var t,n,r,i=O(o);function o(){return g(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"isReactComponent",value:function(e){return l&&l.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),y.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return y.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return y.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return l.createElement(v.Provider,{store:this.options.store},e)}}])&&S(t.prototype,n),r&&S(t,r),o}(n(45).a),w="top:nav",I="left:nav",T="content",k="popup",L="alert",_=n(200),x=n.n(_),P=n(54),N=n.n(P);function R(e){return(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})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return(M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=B(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(o,e);var t,n,r,i=F(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).childComponents={},t}return t=o,r=[{key:"getCacheKey",value:function(e){var t="".concat(this.name),n=[];return Object.keys(e).forEach((function(t){n.push("".concat(t,":").concat(e[t]))})),n.length&&(n.sort(),t+=":".concat(n.join(":"))),t}}],(n=[{key:"regions",value:function(){return{layout:".layout-region"}}},{key:"getChildComponents",value:function(){return{topNav:{component:this.childComponents[w],className:N.a.topNavRegion},leftNav:{component:this.childComponents[I],className:"py-3 ".concat(N.a.leftNavRegion)},content:{component:this.childComponents[T],className:"position-relative container py-3"},popup:{component:this.childComponents[k]},alert:{component:this.childComponents[L]}}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"renderTopNav",value:function(){m(this.options.getTopNavView)&&(this.childComponents[w]=this.options.getTopNavView(p.AppLinkHelper.getCurrentAppLink()))}},{key:"hideLeftNav",value:function(){this.unsetRegion(I)}},{key:"closePopup",value:function(){this.unsetRegion(k)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderTopNav(),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());M(B(o.prototype),"showChildView",this).call(this,"layout",this.wrapWithStore(l.createElement(Y,Object.assign({},e))))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"CuratorLayoutView"}},{key:"template",get:function(){return x.a}},{key:"className",get:function(){return"container-fluid ".concat(N.a.curatorLayout)}}])&&D(t.prototype,n),r&&D(t,r),o}(j),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},q=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)},J=function(e,t){return"".concat(e).concat(t?" ".concat(t):"")},K=function(e){var t=e.topNav,n=e.leftNav,r=e.content,i=e.popup,o=e.alert;return l.createElement(l.Fragment,null,l.createElement("div",{className:"position-relative"},!!t.component&&l.createElement(q,{className:J("top-nav-region",t.className)},t.component),!!n.component&&l.createElement(q,{className:J("left-nav-region",n.className)},n.component),!!r.component&&l.createElement("div",{className:"content-container"},l.createElement(q,{className:J("content-region",r.className)},r.component))),!!i.component&&l.createElement(q,{className:J("popup-region",i.className)},i.component),!!o.component&&l.createElement(q,{className:J("alert-region",o.className)},o.component))},Y=function(e){var t=e.provider,n=H(e,["provider"]);return t?l.createElement(t,null,l.createElement(K,Object.assign({},n))):l.createElement(K,Object.assign({},n))},W=n(8);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var i=ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(o,e);var t,n,r,i=ne(o);function o(){return X(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){this.listenTo(W.a.SHELL,p.EventNames.ROUTING_END,this.updateNav)}},{key:"updateNav",value:function(){var e=this,t=p.AppLinkHelper.getCurrentAppLink().application;if(t!==this.currentApplication){this.currentApplication=t;var n=this.options.navItemMappings[t];if(n){var r=document.querySelector(this.options.navSelector);r&&r.children&&G(r.children).forEach((function(t){var r=t.querySelector("a");r&&(r.classList.remove(e.options.currentItemClassName),r.text===n&&r.classList.add(e.options.currentItemClassName))}))}}}},{key:"name",get:function(){return"CuratorAppNavService"}}])&&ee(t.prototype,n),r&&ee(t,r),o}(p.Service),ae=n(69),ce=n(7),se=function(e){var t="/api/master/v2/companies";return e?"".concat(t,"?cursor=").concat(e):t},ue=function(e){return"/api/master/v2/objects/".concat(e)},le=function(){return"/api/master/v2/companies"},fe=function(e){return"/api/master/v2/objects/".concat(e)},pe="companies",de="company",me="update:company",he=function(e){return{key:"".concat(pe).concat(e?":".concat(e):""),url:se(e)}},ye=function(e){return{key:"".concat(de,":").concat(e),url:ue(e)}},ve=function(e,t,n){return{key:de,url:le(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[pe]}},be=function(e,t,n){return{key:"".concat(me,":").concat(e),url:fe(e),data:t,type:ce.a.PUT,always:n}},ge=n(31),Se=n.n(ge),Ee=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Oe}(e)}(e)};var Oe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ce(e,t){return!1!==t.clone&&t.isMergeableObject(e)?je((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ae(e,t,n){return e.concat(t).map((function(e){return Ce(e,n)}))}function je(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ae,n.isMergeableObject=n.isMergeableObject||Ee;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=Ce(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=je(e[i],t[i],n):r[i]=Ce(t[i],n)})),r}(e,t,n):Ce(t,n)}je.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return je(e,n,t)}),{})};var we=je,Ie=n(15),Te=Ie.a.Symbol,ke=Object.prototype,Le=ke.hasOwnProperty,_e=ke.toString,xe=Te?Te.toStringTag:void 0;var Pe=function(e){var t=Le.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch(e){}var i=_e.call(e);return r&&(t?e[xe]=n:delete e[xe]),i},Ne=Object.prototype.toString;var Re=function(e){return Ne.call(e)},De=Te?Te.toStringTag:void 0;var Me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":De&&De in Object(e)?Pe(e):Re(e)};var Ue=function(e,t){return function(n){return e(t(n))}},Fe=Ue(Object.getPrototypeOf,Object);var Ve=function(e){return null!=e&&"object"==typeof e},Be=Function.prototype,ze=Object.prototype,He=Be.toString,qe=ze.hasOwnProperty,Je=He.call(Object);var $e=function(e){if(!Ve(e)||"[object Object]"!=Me(e))return!1;var t=Fe(e);if(null===t)return!0;var n=qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&He.call(n)==Je};var Ke=function(){this.__data__=[],this.size=0};var Ye=function(e,t){return e===t||e!=e&&t!=t};var We=function(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1},Ze=Array.prototype.splice;var Ge=function(e){var t=this.__data__,n=We(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)};var Qe=function(e){var t=this.__data__,n=We(t,e);return n<0?void 0:t[n][1]};var Xe=function(e){return We(this.__data__,e)>-1};var et=function(e,t){var n=this.__data__,r=We(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=Ke,tt.prototype.delete=Ge,tt.prototype.get=Qe,tt.prototype.has=Xe,tt.prototype.set=et;var nt=tt;var rt=function(){this.__data__=new nt,this.size=0};var it=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var ot=function(e){return this.__data__.get(e)};var at=function(e){return this.__data__.has(e)};var ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var st,ut=function(e){if(!ct(e))return!1;var t=Me(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lt=Ie.a["__core-js_shared__"],ft=(st=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+st:"";var pt=function(e){return!!ft&&ft in e},dt=Function.prototype.toString;var mt=function(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ht=/^\[object .+?Constructor\]$/,yt=Function.prototype,vt=Object.prototype,bt=yt.toString,gt=vt.hasOwnProperty,St=RegExp("^"+bt.call(gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Et=function(e){return!(!ct(e)||pt(e))&&(ut(e)?St:ht).test(mt(e))};var Ot=function(e,t){return null==e?void 0:e[t]};var Ct=function(e,t){var n=Ot(e,t);return Et(n)?n:void 0},At=Ct(Ie.a,"Map"),jt=Ct(Object,"create");var wt=function(){this.__data__=jt?jt(null):{},this.size=0};var It=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Tt=Object.prototype.hasOwnProperty;var kt=function(e){var t=this.__data__;if(jt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Tt.call(t,e)?t[e]:void 0},Lt=Object.prototype.hasOwnProperty;var _t=function(e){var t=this.__data__;return jt?void 0!==t[e]:Lt.call(t,e)};var xt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jt&&void 0===t?"__lodash_hash_undefined__":t,this};function Pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=wt,Pt.prototype.delete=It,Pt.prototype.get=kt,Pt.prototype.has=_t,Pt.prototype.set=xt;var Nt=Pt;var Rt=function(){this.size=0,this.__data__={hash:new Nt,map:new(At||nt),string:new Nt}};var Dt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mt=function(e,t){var n=e.__data__;return Dt(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ut=function(e){var t=Mt(this,e).delete(e);return this.size-=t?1:0,t};var Ft=function(e){return Mt(this,e).get(e)};var Vt=function(e){return Mt(this,e).has(e)};var Bt=function(e,t){var n=Mt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function zt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zt.prototype.clear=Rt,zt.prototype.delete=Ut,zt.prototype.get=Ft,zt.prototype.has=Vt,zt.prototype.set=Bt;var Ht=zt;var qt=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!At||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ht(r)}return n.set(e,t),this.size=n.size,this};function Jt(e){var t=this.__data__=new nt(e);this.size=t.size}Jt.prototype.clear=rt,Jt.prototype.delete=it,Jt.prototype.get=ot,Jt.prototype.has=at,Jt.prototype.set=qt;var $t=Jt;var Kt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Yt=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Wt=function(e,t,n){"__proto__"==t&&Yt?Yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Zt=Object.prototype.hasOwnProperty;var Gt=function(e,t,n){var r=e[t];Zt.call(e,t)&&Ye(r,n)&&(void 0!==n||t in e)||Wt(e,t,n)};var Qt=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?Wt(n,c,s):Gt(n,c,s)}return n};var Xt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var en=function(e){return Ve(e)&&"[object Arguments]"==Me(e)},tn=Object.prototype,nn=tn.hasOwnProperty,rn=tn.propertyIsEnumerable,on=en(function(){return arguments}())?en:function(e){return Ve(e)&&nn.call(e,"callee")&&!rn.call(e,"callee")},an=Array.isArray,cn=n(48),sn=/^(?:0|[1-9]\d*)$/;var un=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&sn.test(e))&&e>-1&&e%1==0&&e<t};var ln=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},fn={};fn["[object Float32Array]"]=fn["[object Float64Array]"]=fn["[object Int8Array]"]=fn["[object Int16Array]"]=fn["[object Int32Array]"]=fn["[object Uint8Array]"]=fn["[object Uint8ClampedArray]"]=fn["[object Uint16Array]"]=fn["[object Uint32Array]"]=!0,fn["[object Arguments]"]=fn["[object Array]"]=fn["[object ArrayBuffer]"]=fn["[object Boolean]"]=fn["[object DataView]"]=fn["[object Date]"]=fn["[object Error]"]=fn["[object Function]"]=fn["[object Map]"]=fn["[object Number]"]=fn["[object Object]"]=fn["[object RegExp]"]=fn["[object Set]"]=fn["[object String]"]=fn["[object WeakMap]"]=!1;var pn=function(e){return Ve(e)&&ln(e.length)&&!!fn[Me(e)]};var dn=function(e){return function(t){return e(t)}},mn=n(27),hn=mn.a&&mn.a.isTypedArray,yn=hn?dn(hn):pn,vn=Object.prototype.hasOwnProperty;var bn=function(e,t){var n=an(e),r=!n&&on(e),i=!n&&!r&&Object(cn.a)(e),o=!n&&!r&&!i&&yn(e),a=n||r||i||o,c=a?Xt(e.length,String):[],s=c.length;for(var u in e)!t&&!vn.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||un(u,s))||c.push(u);return c},gn=Object.prototype;var Sn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||gn)},En=Ue(Object.keys,Object),On=Object.prototype.hasOwnProperty;var Cn=function(e){if(!Sn(e))return En(e);var t=[];for(var n in Object(e))On.call(e,n)&&"constructor"!=n&&t.push(n);return t};var An=function(e){return null!=e&&ln(e.length)&&!ut(e)};var jn=function(e){return An(e)?bn(e):Cn(e)};var wn=function(e,t){return e&&Qt(t,jn(t),e)};var In=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Tn=Object.prototype.hasOwnProperty;var kn=function(e){if(!ct(e))return In(e);var t=Sn(e),n=[];for(var r in e)("constructor"!=r||!t&&Tn.call(e,r))&&n.push(r);return n};var Ln=function(e){return An(e)?bn(e,!0):kn(e)};var _n=function(e,t){return e&&Qt(t,Ln(t),e)},xn=n(202);var Pn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Nn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var Rn=function(){return[]},Dn=Object.prototype.propertyIsEnumerable,Mn=Object.getOwnPropertySymbols,Un=Mn?function(e){return null==e?[]:(e=Object(e),Nn(Mn(e),(function(t){return Dn.call(e,t)})))}:Rn;var Fn=function(e,t){return Qt(e,Un(e),t)};var Vn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Bn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Vn(t,Un(e)),e=Fe(e);return t}:Rn;var zn=function(e,t){return Qt(e,Bn(e),t)};var Hn=function(e,t,n){var r=t(e);return an(e)?r:Vn(r,n(e))};var qn=function(e){return Hn(e,jn,Un)};var Jn=function(e){return Hn(e,Ln,Bn)},$n=Ct(Ie.a,"DataView"),Kn=Ct(Ie.a,"Promise"),Yn=Ct(Ie.a,"Set"),Wn=Ct(Ie.a,"WeakMap"),Zn=mt($n),Gn=mt(At),Qn=mt(Kn),Xn=mt(Yn),er=mt(Wn),tr=Me;($n&&"[object DataView]"!=tr(new $n(new ArrayBuffer(1)))||At&&"[object Map]"!=tr(new At)||Kn&&"[object Promise]"!=tr(Kn.resolve())||Yn&&"[object Set]"!=tr(new Yn)||Wn&&"[object WeakMap]"!=tr(new Wn))&&(tr=function(e){var t=Me(e),n="[object Object]"==t?e.constructor:void 0,r=n?mt(n):"";if(r)switch(r){case Zn:return"[object DataView]";case Gn:return"[object Map]";case Qn:return"[object Promise]";case Xn:return"[object Set]";case er:return"[object WeakMap]"}return t});var nr=tr,rr=Object.prototype.hasOwnProperty;var ir=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&rr.call(e,"index")&&(n.index=e.index,n.input=e.input),n},or=Ie.a.Uint8Array;var ar=function(e){var t=new e.constructor(e.byteLength);return new or(t).set(new or(e)),t};var cr=function(e,t){var n=t?ar(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sr=/\w*$/;var ur=function(e){var t=new e.constructor(e.source,sr.exec(e));return t.lastIndex=e.lastIndex,t},lr=Te?Te.prototype:void 0,fr=lr?lr.valueOf:void 0;var pr=function(e){return fr?Object(fr.call(e)):{}};var dr=function(e,t){var n=t?ar(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var mr=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return ar(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return cr(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dr(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return ur(e);case"[object Set]":return new r;case"[object Symbol]":return pr(e)}},hr=Object.create,yr=function(){function e(){}return function(t){if(!ct(t))return{};if(hr)return hr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var vr=function(e){return"function"!=typeof e.constructor||Sn(e)?{}:yr(Fe(e))};var br=function(e){return Ve(e)&&"[object Map]"==nr(e)},gr=mn.a&&mn.a.isMap,Sr=gr?dn(gr):br;var Er=function(e){return Ve(e)&&"[object Set]"==nr(e)},Or=mn.a&&mn.a.isSet,Cr=Or?dn(Or):Er,Ar={};Ar["[object Arguments]"]=Ar["[object Array]"]=Ar["[object ArrayBuffer]"]=Ar["[object DataView]"]=Ar["[object Boolean]"]=Ar["[object Date]"]=Ar["[object Float32Array]"]=Ar["[object Float64Array]"]=Ar["[object Int8Array]"]=Ar["[object Int16Array]"]=Ar["[object Int32Array]"]=Ar["[object Map]"]=Ar["[object Number]"]=Ar["[object Object]"]=Ar["[object RegExp]"]=Ar["[object Set]"]=Ar["[object String]"]=Ar["[object Symbol]"]=Ar["[object Uint8Array]"]=Ar["[object Uint8ClampedArray]"]=Ar["[object Uint16Array]"]=Ar["[object Uint32Array]"]=!0,Ar["[object Error]"]=Ar["[object Function]"]=Ar["[object WeakMap]"]=!1;var jr=function e(t,n,r,i,o,a){var c,s=1&n,u=2&n,l=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),void 0!==c)return c;if(!ct(t))return t;var f=an(t);if(f){if(c=ir(t),!s)return Pn(t,c)}else{var p=nr(t),d="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(cn.a)(t))return Object(xn.a)(t,s);if("[object Object]"==p||"[object Arguments]"==p||d&&!o){if(c=u||d?{}:vr(t),!s)return u?zn(t,_n(c,t)):Fn(t,wn(c,t))}else{if(!Ar[p])return o?t:{};c=mr(t,p,s)}}a||(a=new $t);var m=a.get(t);if(m)return m;a.set(t,c),Cr(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):Sr(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var h=l?u?Jn:qn:u?keysIn:jn,y=f?void 0:h(t);return Kt(y||t,(function(i,o){y&&(i=t[o=i]),Gt(c,o,e(i,n,r,o,t,a))})),c};var wr=function(e){return jr(e,4)};var Ir=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var Tr=function(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==Me(e)};function kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(kr.Cache||Ht),n}kr.Cache=Ht;var Lr=kr;var _r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/\\(\\)?/g,Pr=function(e){var t=Lr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(_r,(function(e,n,r,i){t.push(r?i.replace(xr,"$1"):n||e)})),t}));var Nr=function(e){if("string"==typeof e||Tr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Rr=Te?Te.prototype:void 0,Dr=Rr?Rr.toString:void 0;var Mr=function e(t){if("string"==typeof t)return t;if(an(t))return Ir(t,e)+"";if(Tr(t))return Dr?Dr.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Ur=function(e){return null==e?"":Mr(e)};var Fr=function(e){return an(e)?Ir(e,Nr):Tr(e)?[e]:Pn(Pr(Ur(e)))};var Vr=function(e,t){},Br=n(60),zr=n(61),Hr=n.n(zr);var qr=function(e){return jr(e,5)};function Jr(){return(Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Kr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wr=function(e){return"function"==typeof e},Zr=function(e){return null!==e&&"object"==typeof e},Gr=function(e){return String(Math.floor(Number(e)))===e},Qr=function(e){return"[object String]"===Object.prototype.toString.call(e)},Xr=function(e){return 0===l.Children.count(e)},ei=function(e){return Zr(e)&&Wr(e.then)};function ti(e,t,n,r){void 0===r&&(r=0);for(var i=Fr(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function ni(e,t,n){for(var r=wr(e),i=r,o=0,a=Fr(t);o<a.length-1;o++){var c=a[o],s=ti(e,a.slice(0,o+1));if(s&&(Zr(s)||Array.isArray(s)))i=i[c]=wr(s);else{var u=a[o+1];i=i[c]=Gr(u)&&Number(u)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function ri(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],c=e[a];Zr(c)?n.get(c)||(n.set(c,!0),r[a]=Array.isArray(c)?[]:{},ri(c,t,n,r[a])):r[a]=t}return r}var ii=Object(l.createContext)(void 0),oi=ii.Provider,ai=ii.Consumer;function ci(){var e=Object(l.useContext)(ii);return e||Vr(!1),e}function si(e,t){switch(t.type){case"SET_VALUES":return Jr({},e,{values:t.payload});case"SET_TOUCHED":return Jr({},e,{touched:t.payload});case"SET_ERRORS":return Jr({},e,{errors:t.payload});case"SET_STATUS":return Jr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Jr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Jr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Jr({},e,{values:ni(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Jr({},e,{touched:ni(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Jr({},e,{errors:ni(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Jr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Jr({},e,{touched:ri(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Jr({},e,{isSubmitting:!1});default:return e}}var ui={},li={};function fi(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,i=void 0===r||r,o=e.validateOnMount,a=void 0!==o&&o,c=e.isInitialValid,s=e.enableReinitialize,u=void 0!==s&&s,f=e.onSubmit,p=Kr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),d=Jr({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:f},p),m=Object(l.useRef)(d.initialValues),h=Object(l.useRef)(d.initialErrors||ui),y=Object(l.useRef)(d.initialTouched||li),v=Object(l.useRef)(d.initialStatus),b=Object(l.useRef)(!1),g=Object(l.useRef)({});Object(l.useEffect)((function(){0}),[]),Object(l.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var S=Object(l.useReducer)(si,{values:d.initialValues,errors:d.initialErrors||ui,touched:d.initialTouched||li,status:d.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=S[0],O=S[1],C=Object(l.useCallback)((function(e,t){return new Promise((function(n,r){var i=d.validate(e,t);null==i?n(ui):ei(i)?i.then((function(e){n(e||ui)}),(function(e){r(e)})):n(i)}))}),[d.validate]),A=Object(l.useCallback)((function(e,t){var n=d.validationSchema,r=Wr(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var i=function e(t){var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=String(r);!0===Array.isArray(t[i])?n[i]=t[i].map((function(t){return!0===Array.isArray(t)||$e(t)?e(t):""!==t?t:void 0})):$e(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){i.then((function(){e(ui)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return ni(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;ti(t,a.path)||(t=ni(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[d.validationSchema]),j=Object(l.useCallback)((function(e,t){return new Promise((function(n){return n(g.current[e].validate(t))}))}),[]),w=Object(l.useCallback)((function(e){var t=Object.keys(g.current).filter((function(e){return Wr(g.current[e].validate)})),n=t.length>0?t.map((function(t){return j(t,ti(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=ni(e,t[r],n)),e}),{})}))}),[j]),I=Object(l.useCallback)((function(e){return Promise.all([w(e),d.validationSchema?A(e):{},d.validate?C(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return we.all([t,n,r],{arrayMerge:di})}))}),[d.validate,d.validationSchema,w,C,A]),T=hi((function(e){return void 0===e&&(e=E.values),Object(Br.unstable_runWithPriority)(Br.LowPriority,(function(){return I(e).then((function(e){return b.current&&O({type:"SET_ERRORS",payload:e}),e}))}))})),k=hi((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),I(e).then((function(e){return b.current&&(O({type:"SET_ISVALIDATING",payload:!1}),Se()(E.errors,e)||O({type:"SET_ERRORS",payload:e})),e}))}));Object(l.useEffect)((function(){a&&!0===b.current&&T(d.initialValues)}),[d.initialValues,a,T]);var L=Object(l.useCallback)((function(e){var t=e&&e.values?e.values:m.current,n=e&&e.errors?e.errors:h.current?h.current:d.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:d.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:d.initialStatus;m.current=t,h.current=n,y.current=r,v.current=i,O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})}),[d.initialErrors,d.initialStatus,d.initialTouched]);Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(m.current,d.initialValues)&&(m.current=d.initialValues,L())}),[u,d.initialValues,L]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(h.current,d.initialErrors)&&(h.current=d.initialErrors||ui,O({type:"SET_ERRORS",payload:d.initialErrors||ui}))}),[u,d.initialErrors]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(y.current,d.initialTouched)&&(y.current=d.initialTouched||li,O({type:"SET_TOUCHED",payload:d.initialTouched||li}))}),[u,d.initialTouched]),Object(l.useEffect)((function(){u&&!0===b.current&&!Se()(v.current,d.initialStatus)&&(v.current=d.initialStatus,O({type:"SET_STATUS",payload:d.initialStatus}))}),[u,d.initialStatus,d.initialTouched]);var _=hi((function(e){if(Wr(g.current[e].validate)){var t=ti(E.values,e),n=g.current[e].validate(t);return ei(n)?(O({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()})),x=Object(l.useCallback)((function(e,t){var n=t.validate;g.current[e]={validate:n}}),[]),P=Object(l.useCallback)((function(e){delete g.current[e]}),[]),N=hi((function(e){return O({type:"SET_TOUCHED",payload:e}),i?T(E.values):Promise.resolve()})),R=Object(l.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),D=hi((function(e){return O({type:"SET_VALUES",payload:e}),n?T(e):Promise.resolve()})),M=Object(l.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=hi((function(e,t,r){return void 0===r&&(r=!0),O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),n&&r?T(ni(E.values,e,t)):Promise.resolve()})),F=Object(l.useCallback)((function(e,t){var n,r=t,i=e;if(!Qr(e)){e.persist&&e.persist();var o=e.target,a=o.type,c=o.name,s=o.id,u=o.value,l=o.checked,f=(o.outerHTML,o.options),p=o.multiple;r=t||(c||s),i=/number|range/.test(a)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(ti(E.values,r),l,u):p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):u}r&&U(r,i)}),[U,E.values]),V=Object(l.useCallback)((function(e){if(Qr(e))return function(t){return F(t,e)};F(e)}),[F]),B=hi((function(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),i&&n?T(E.values):Promise.resolve()})),z=Object(l.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));B(o,!0)}),[B]),H=Object(l.useCallback)((function(e){if(Qr(e))return function(t){return z(t,e)};z(e)}),[z]),q=Object(l.useCallback)((function(e){Wr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),J=Object(l.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),$=Object(l.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),K={resetForm:L,validateForm:k,validateField:_,setErrors:R,setFieldError:M,setFieldTouched:B,setFieldValue:U,setStatus:J,setSubmitting:$,setTouched:N,setValues:D,setFormikState:q},Y=hi((function(){return f(E.values,K)})),W=hi((function(){return O({type:"SUBMIT_ATTEMPT"}),k().then((function(e){if(0===Object.keys(e).length){var t=Y();if(void 0===t)return;return Promise.resolve(t).then((function(){b.current&&O({type:"SUBMIT_SUCCESS"})})).catch((function(e){if(b.current)throw O({type:"SUBMIT_FAILURE"}),e}))}b.current&&O({type:"SUBMIT_FAILURE"})}))})),Z=hi((function(e){e&&e.preventDefault&&Wr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Wr(e.stopPropagation)&&e.stopPropagation(),W()})),G=hi((function(e){if(e&&e.preventDefault&&Wr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Wr(e.stopPropagation)&&e.stopPropagation(),d.onReset){var t=d.onReset(E.values,K);ei(t)?t.then(L):L()}else L()})),Q=Object(l.useCallback)((function(e){return{value:ti(E.values,e),error:ti(E.errors,e),touched:!!ti(E.touched,e),initialValue:ti(m.current,e),initialTouched:!!ti(y.current,e),initialError:ti(h.current,e)}}),[E.errors,E.touched,E.values]),X=Object(l.useCallback)((function(e){var t=Zr(e),n=t?e.name:e,r=ti(E.values,n),i={name:n,value:r,onChange:V,onBlur:H};if(t){var o=e.type,a=e.value,c=e.as,s=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===c&&s&&(i.value=i.value||[],i.multiple=!0)}return i}),[H,V,E.values]),ee=Object(l.useMemo)((function(){return!Se()(m.current,E.values)}),[E.values]),te=Object(l.useMemo)((function(){return void 0!==c?ee?E.errors&&0===Object.keys(E.errors).length:!1!==c&&Wr(c)?c(d):c:E.errors&&0===Object.keys(E.errors).length}),[c,ee,E.errors,d]);return Jr({},E,{initialValues:m.current,initialErrors:h.current,initialTouched:y.current,initialStatus:v.current,handleBlur:H,handleChange:V,handleReset:G,handleSubmit:Z,resetForm:L,setErrors:R,setFormikState:q,setFieldTouched:B,setFieldValue:U,setFieldError:M,setStatus:J,setSubmitting:$,setTouched:N,setValues:D,submitForm:W,validateForm:k,validateField:_,isValid:te,dirty:ee,unregisterField:P,registerField:x,getFieldProps:X,getFieldMeta:Q,validateOnBlur:i,validateOnChange:n,validateOnMount:a})}function pi(e){var t=fi(e),n=e.component,r=e.children,i=e.render;return Object(l.useEffect)((function(){0}),[]),Object(l.createElement)(oi,{value:t},n?Object(l.createElement)(n,t):i?i(t):r?Wr(r)?r(t):Xr(r)?null:l.Children.only(r):null)}function di(e,t,n){var r=e.slice();return t.forEach((function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?we(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=we(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var mi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function hi(e){var t=Object(l.useRef)(e);return mi((function(){t.current=e})),Object(l.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function yi(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,a=e.component,c=Kr(e,["validate","name","render","children","as","component"]),s=ci(),u=(s.validate,s.validationSchema,Kr(s,["validate","validationSchema"]));Object(l.useEffect)((function(){0}),[]);var f=u.registerField,p=u.unregisterField;Object(l.useEffect)((function(){return f(n,{validate:t}),function(){p(n)}}),[f,p,n,t]);var d=u.getFieldProps(Jr({name:n},c)),m=u.getFieldMeta(n),h={field:d,form:u};if(r)return r(Jr({},h,{meta:m}));if(Wr(i))return i(Jr({},h,{meta:m}));if(a){if("string"==typeof a){var y=c.innerRef,v=Kr(c,["innerRef"]);return Object(l.createElement)(a,Jr({ref:y},d,v),i)}return Object(l.createElement)(a,Jr({field:d,form:u},c),i)}var b=o||"input";if("string"==typeof b){var g=c.innerRef,S=Kr(c,["innerRef"]);return Object(l.createElement)(b,Jr({ref:g},d,S),i)}return Object(l.createElement)(b,Jr({},d,c),i)}var vi=Object(l.forwardRef)((function(e,t){var n=e.action,r=Kr(e,["action"]),i=n||"#",o=ci(),a=o.handleReset,c=o.handleSubmit;return Object(l.createElement)("form",Object.assign({onSubmit:c,ref:t,onReset:a,action:i},r))}));function bi(e){var t=function(t){return Object(l.createElement)(ai,null,(function(n){return n||Vr(!1),Object(l.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Hr()(t,e)}vi.displayName="Form";var gi=function(e,t,n){var r=Si(e);return r.splice(t,0,n),r},Si=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Jr({},e,{length:t+1}))}return[]},Ei=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name,a=i.validateOnChange,c=i.formik,s=c.setFormikState,u=c.validateForm;s((function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e;return Jr({},n,{values:ni(n.values,o,e(ti(n.values,o))),errors:r?ni(n.errors,o,i(ti(n.errors,o))):n.errors,touched:t?ni(n.touched,o,a(ti(n.touched,o))):n.touched})}),(function(){a&&u()}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(Si(t),[qr(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return gi(n,e,t)}),(function(t){return gi(t,e,null)}),(function(t){return gi(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=Si(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Yr(n)),n.pop=n.pop.bind(Yr(n)),n}$r(t,e);var n=t.prototype;return n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?Si(n):[];return t||(t=r[e]),Wr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,a=t.formik,c=(a.validate,a.validationSchema,Jr({},e,{form:Kr(a,["validate","validationSchema"]),name:o}));return n?Object(l.createElement)(n,c):r?r(c):i?"function"==typeof i?i(c):Xr(i)?null:l.Children.only(i):null},t}(l.Component);Ei.defaultProps={validateOnChange:!0};var Oi=bi(function(e){function t(){return e.apply(this,arguments)||this}$r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return ti(this.props.formik.errors,this.props.name)!==ti(e.formik.errors,this.props.name)||ti(this.props.formik.touched,this.props.name)!==ti(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,r=e.render,i=e.children,o=e.name,a=Kr(e,["component","formik","render","children","name"]),c=ti(n.touched,o),s=ti(n.errors,o);return c&&s?r?Wr(r)?r(s):null:i?Wr(i)?i(s):null:t?Object(l.createElement)(t,a,s):s:null},t}(l.Component));(function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.render,i=t.children,o=t.component,a=t.as;t.name;return r&&Vr(!1),o&&r&&Vr(!1),a&&i&&Wr(i)&&Vr(!1),o&&i&&Wr(i)&&Vr(!1),r&&i&&!Xr(i)&&Vr(!1),n}$r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e,t,n){return this.props.shouldUpdate?this.props.shouldUpdate(e,this.props):ti(this.context.values,this.props.name)!==ti(n.values,this.props.name)||ti(this.context.errors,this.props.name)!==ti(n.errors,this.props.name)||ti(this.context.touched,this.props.name)!==ti(n.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.context.isSubmitting!==n.isSubmitting},n.componentDidMount=function(){this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentDidUpdate=function(e){this.props.name!==e.name&&(this.context.unregisterField(e.name),this.context.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.context.registerField(this.props.name,{validate:this.props.validate})},n.componentWillUnmount=function(){this.context.unregisterField(this.props.name)},n.render=function(){var e=this.props,t=(e.validate,e.name),n=e.render,r=e.as,i=e.children,o=e.component,a=(e.shouldUpdate,Kr(e,["validate","name","render","as","children","component","shouldUpdate"])),c=this.context,s=(c.validate,c.validationSchema,Kr(c,["validate","validationSchema"])),u={value:"radio"===a.type||"checkbox"===a.type?a.value:ti(c.values,t),name:t,onChange:c.handleChange,onBlur:c.handleBlur},f={field:u,meta:{value:ti(c.values,t),error:ti(c.errors,t),touched:!!ti(c.touched,t),initialValue:ti(c.initialValues,t),initialTouched:!!ti(c.initialTouched,t),initialError:ti(c.initialErrors,t)},form:s};if(n)return n(f);if(Wr(i))return i(f);if(o){if("string"==typeof o){var p=a.innerRef,d=Kr(a,["innerRef"]);return Object(l.createElement)(o,Jr({ref:p},u,d),i)}return Object(l.createElement)(o,Jr({field:u,form:c},a),i)}var m=r||"input";if("string"==typeof m){var h=a.innerRef,y=Kr(a,["innerRef"]);return Object(l.createElement)(m,Jr({ref:h},u,y),i)}return Object(l.createElement)(m,Jr({},u,a),i)},t}(l.Component)).contextType=ii;var Ci=n(9),Ai=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ji(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,r=e.initialValues,i=e.onSubmit,o=e.resetOnSubmit,a=Ai(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit","resetOnSubmit"]),c=t&&e.validationSchema?e.validationSchema.cast(function e(t){var n=Ci.a.deepClone(t);return Object.keys(n).forEach((function(t){n.hasOwnProperty(t)&&(Ci.a.isObject(n[t])?n[t]=e(n[t]):null===n[t]&&delete n[t])})),n}(r)):r,s={allowInitialSubmit:e.allowInitialSubmit};return l.createElement(pi,Object.assign({enableReinitialize:!0},a,{initialValues:c,onSubmit:function(t,r){var a=r.setSubmitting,c=r.resetForm,s=n&&e.validationSchema?e.validationSchema.cast(t):t;i(s,(function(){o&&c(),a(!1)}))},initialStatus:s}),m(e.children)?function(t){return e.children(t)}:l.Children.count(e.children)?e.children:null)}ji.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0};var wi=n(2),Ii=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),Ti=n(3),ki=function(e,t,n,r){var i="form-control";return ti(t,n)&&ti(e,n)&&(i+=" is-invalid"),r&&(i+=" ".concat(r)),i};function Li(e){var t=ci().values[e.fieldName];return"string"!=typeof t?l.createElement(l.Fragment,null):l.createElement("div",{className:"float-right text-muted"},t.length,"/",e.limit)}var _i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function xi(e){var t=e.label,n=_i(e,["label"]);return l.createElement(Ti.Form.Group,null,l.createElement("div",{className:"custom-control custom-checkbox"},l.createElement(Ni,Object.assign({className:"custom-control-input"},n)),l.createElement(Ti.Form.Label,{className:"custom-control-label",htmlFor:n.id},t)))}var Pi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ni(e){var t=e.children,n=Pi(e,["children"]);return l.createElement(yi,Object.assign({},n),m(t)?function(e){return t(e)}:l.Children.count(t)?t:null)}function Ri(e){var t=e.label,n=e.className,r=e.showCharacterCounter,i=Pi(e,["label","className","showCharacterCounter"]),o=ci(),a=o.errors,c=o.touched;return"checkbox"===i.type?l.createElement(xi,Object.assign({},e)):l.createElement(Ti.Form.Group,null,!!t&&l.createElement(Ti.Form.Label,{htmlFor:i.id},t),l.createElement(Ni,Object.assign({className:ki(a,c,i.name,n)},i)),!!r&&!!i.maxLength&&l.createElement(Li,{fieldName:i.name,limit:i.maxLength}),l.createElement(Oi,{name:i.name},(function(e){return l.createElement(Ti.Form.Control.Feedback,{type:"invalid"},e)})))}function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ui(e){var t,n=Di(l.useState(!1),2),r=n[0],i=n[1];return l.useEffect((function(){var t;e.isValid&&(e.dirty||(null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit))?i(!0):i(!1)}),[e.isValid,null===(t=e.initialStatus)||void 0===t?void 0:t.allowInitialSubmit,e.dirty,e.values]),l.useEffect((function(){e.isSubmitting&&i(!1)}),[e.isSubmitting]),r}var Fi=n(203),Vi=n(49),Bi=n(22),zi=n(4),Hi="AlertService",qi="LanguageService",Ji=n(11),$i=n(34);function Ki(e){return(Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t){return(Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xi(e);if(t){var i=Xi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Qi(this,n)}}function Qi(e,t){return!t||"object"!==Ki(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xi(e){return(Xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zi(e,t)}(o,e);var t,n,r,i=Gi(o);function o(){return Yi(this,o),i.apply(this,arguments)}return t=o,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new Fi({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||zi.c.throw(new Ji.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!$i.a.isDevelopment){var i=window.trackJs;return i&&i.console.error("No phrase set for ".concat(r," in language config")),""}zi.c.throw(new Ji.a("No phrase set for ".concat(r," in language config.")))}if(!n||d.isEmpty(n)){var o=this.cache[r];if(o)return o;var a=this.polyglot.t(r);return this.cache[r]=a,a}var c=d.omit(n,"smartCount"),s={};for(var u in c)s[u]=Vi.sanitize(c[u]);d.isNumber(n.smartCount)&&(s.smart_count=n.smartCount);var l="".concat(r,":").concat(d.values(Object.assign({},s)).join(":")),f=this.cache[l];if(f)return f;var p=this.polyglot.t(r,s);return this.cache[l]=p,p}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return qi}}])&&Wi(t.prototype,n),r&&Wi(t,r),o}(Bi.a).Instance,to=l.createContext(""),no=l.memo((function(e){var t=e.phrase,n=e.namespace,r=e.options,i=l.useContext(to),o=n||i,a=eo.getPhrase(o,t,r);return l.createElement("span",{dangerouslySetInnerHTML:{__html:a}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&Ci.a.isEqual(e.options,t.options)}));function ro(e){var t=ci(),n=Ui(t);return l.useEffect((function(){function e(e){13===e.keyCode&&n&&t.validateForm().then((function(e){Object.keys(e).length||t.submitForm()}))}return window.addEventListener("keypress",e),function(){return window.removeEventListener("keypress",e)}}),[n]),l.createElement(Ti.Button,{variant:e.variant||"primary",type:"submit",disabled:!n},t.isSubmitting?l.createElement(Ti.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.submitText?l.createElement(l.Fragment,null,e.submitText):l.createElement(no,{namespace:"shared.formButtons",phrase:e.isNew?"create":"save"}))}function io(e){var t=ci();return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this company",autoFocus:!0}),l.createElement(ro,{isNew:e.isNew}))}function oo(e){return l.createElement(ji,{initialValues:e.company,validationSchema:Ii,onSubmit:e.saveCompany},l.createElement(io,{isNew:!(e.company&&e.company.id)}))}function ao(e){var t=Object(v.useDispatch)(),n=ae.useBasicFetch(ye(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(oo,{company:n.data,saveCompany:function(n,r){return ae.fetch(t,be(e.id,n,r))}}))}function co(){var e=Object(v.useDispatch)();return l.createElement(oo,{saveCompany:function(t,n){ae.fetch(e,ve(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:i.Companies.EDIT_COMPANY,args:[e.id]})}),n))}})}var so,uo=n(204);function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function po(e){return(po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(so||(so={}));var mo,ho={isNumber:function(e){return ho.isType(e,"number")},isString:function(e){return ho.isType(e,"string")},isType:function(e,t){return po(e)===t}},yo=n(21),vo=n.n(yo);function bo(e){return function(e){if(Array.isArray(e))return go(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return go(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eo(e,t){return Ci.a.isObject(e)&&e.hasOwnProperty(t)&&ho.isString(e[t])}function Oo(e,t,n){return function(r){var i=r.value;if(i.length||n(),!(i.length<e.activationLength)){if(e.local){var o=m(e.getLocalSuggestions)?e.getLocalSuggestions(i,e.local):(a=i,c=e.local,s=e.valueKey,(u=a.trim().toLowerCase()).length?c.filter((function(e){return!(!Eo(e,s)||!ho.isString(e[s]))&&e[s].trim().toLowerCase().includes(u)})):[]);t((function(e){return Object.assign(Object.assign({},e),So({},mo.Local,o))}))}var a,c,s,u;e.getRemoteUrl&&function(e,t,n,r){var i=m(e)&&e(t);i&&ae.ajaxRequest({resource:i,type:ce.a.GET,success:n,error:function(){},headers:r})}(e.getRemoteUrl,i,(function(n){return t((function(t){return Object.assign(Object.assign({},t),So({},mo.Remote,m(e.formatRemoteSuggestions)?e.formatRemoteSuggestions(n):n))}))}),e.requestHeaders)}}}function Co(e,t,n,r,i,o){var a=function(t){return e[t]||[]},c=t?a(mo.Recent):[],s=a(mo.Local),u=a(mo.Remote),l=[];c.length&&l.push({title:n,data:c});var f=[].concat(bo(s),bo(u));return f.length?(Number.isInteger(o)&&f.length>o&&(f=f.slice(0,o)),m(i)?l.push.apply(l,bo(i(f))):l.push({title:r,data:f}),l):l}function Ao(e){return e.data}function jo(e){if(e.title)return l.createElement("div",{className:"px-2 pb-1"},l.createElement("strong",null,e.title))}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote"}(mo||(mo={}));var wo={container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(vo.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"cursor-pointer py-1 px-2",suggestionHighlighted:vo.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(vo.a.sectionContainer)};function Io(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(wo,e)}var To,ko,Lo=n(35),_o=n(83),xo=n.n(_o),Po=n(84),No=n.n(Po),Ro=n(85),Do=n.n(Ro),Mo=n(86),Uo=n.n(Mo),Fo=(n(87),n(88),n(89)),Vo=n.n(Fo),Bo=n(90),zo=n.n(Bo),Ho=n(91),qo=n.n(Ho),Jo=n(92),$o=n.n(Jo),Ko=n(93),Yo=n.n(Ko),Wo=n(94),Zo=n.n(Wo),Go=n(95),Qo=n.n(Go),Xo=n(96),ea=n.n(Xo),ta=n(97),na=n.n(ta),ra=n(98),ia=n.n(ra),oa=n(99),aa=n.n(oa),ca=n(100),sa=n.n(ca),ua=n(101),la=n.n(ua),fa=n(102),pa=n.n(fa),da=n(103),ma=n.n(da),ha=n(104),ya=n.n(ha),va=n(105),ba=n.n(va),ga=n(106),Sa=n.n(ga),Ea=n(107),Oa=n.n(Ea),Ca=n(108),Aa=n.n(Ca),ja=n(109),wa=n.n(ja),Ia=n(110),Ta=n.n(Ia),ka=n(111),La=n.n(ka),_a=(n(112),n(113)),xa=n.n(_a),Pa=n(114),Na=n.n(Pa),Ra=n(115),Da=n.n(Ra),Ma=(n(116),n(117),n(118)),Ua=n.n(Ma),Fa=n(119),Va=n.n(Fa),Ba=n(120),za=n.n(Ba),Ha=n(121),qa=n.n(Ha),Ja=n(122),$a=n.n(Ja),Ka=n(123),Ya=n.n(Ka),Wa=(n(124),n(125)),Za=n.n(Wa),Ga=n(126),Qa=n.n(Ga),Xa=n(127),ec=n.n(Xa),tc=n(128),nc=n.n(tc),rc=n(129),ic=n.n(rc),oc=n(130),ac=n.n(oc),cc=n(131),sc=n.n(cc),uc=(n(132),n(133)),lc=n.n(uc),fc=n(134),pc=n.n(fc),dc=n(135),mc=n.n(dc),hc=n(136),yc=n.n(hc),vc=n(137),bc=n.n(vc),gc=n(138),Sc=n.n(gc),Ec=n(139),Oc=n.n(Ec),Cc=n(140),Ac=n.n(Cc),jc=n(141),wc=n.n(jc),Ic=n(142),Tc=n.n(Ic),kc=n(143),Lc=n.n(kc),_c=n(144),xc=n.n(_c),Pc=n(145),Nc=n.n(Pc),Rc=n(146),Dc=n.n(Rc),Mc=n(147),Uc=n.n(Mc),Fc=n(148),Vc=n.n(Fc),Bc=(n(149),n(150),n(151),n(152)),zc=n.n(Bc),Hc=(n(153),n(154),n(155),n(156),n(157)),qc=n.n(Hc),Jc=n(158),$c=n.n(Jc),Kc=(n(159),n(160),n(161),n(162)),Yc=n.n(Kc),Wc=n(163),Zc=n.n(Wc),Gc=n(164),Qc=n.n(Gc),Xc=n(165),es=n.n(Xc),ts=n(166),ns=n.n(ts),rs=n(167),is=n.n(rs),os=n(168),as=n.n(os),cs=(n(169),n(170),n(171),n(172)),ss=n.n(cs),us=n(173),ls=n.n(us),fs=[xo.a,Do.a,Uo.a,Vo.a,$o.a,Yo.a,Zo.a,Qo.a,qo.a,No.a,ea.a,na.a,ia.a,aa.a,sa.a,zo.a,la.a,pa.a,ma.a,ya.a,ba.a,Sa.a,La.a,Oa.a,Aa.a,wa.a,Ta.a,xa.a,za.a,Tc.a,xc.a,Lc.a,Vc.a,Nc.a,Dc.a,Uc.a,nc.a,ac.a,ic.a,Na.a,Da.a,Qa.a,ec.a,Za.a,Ua.a,qa.a,pc.a,mc.a,$a.a,Ya.a,yc.a,Va.a,lc.a,bc.a,Sc.a,sc.a,Oc.a,wc.a,Ac.a,qc.a,$c.a,zc.a,Qc.a,Zc.a,Yc.a,es.a,is.a,ns.a,as.a,ls.a,ss.a];function ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaption="close-caption",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects",e.Download="download",e.Print="print"}(To||(To={}));var ds;function ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}d.extend(Lo.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(ko=Lo.library).add.apply(ko,function(e){if(Array.isArray(e))return ps(e)}(ds=fs)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(ds)||function(e,t){if(e){if("string"==typeof e)return ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(e,t):void 0}}(ds)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var hs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return Lo.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return Lo.findIconDefinition({prefix:r,iconName:e})}}])&&ms(t.prototype,n),r&&ms(t,r),e}().Instance,ys=To,vs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function bs(e){var t=e.title,n=e.placement,r=e.trigger,i=e.children;return l.createElement(Ti.OverlayTrigger,{placement:n,overlay:l.createElement(Ti.Tooltip,{id:"".concat(t,"-").concat(vs())},t),trigger:r},i)}bs.defaultProps={trigger:["hover","click","focus"],placement:"top"};var gs;function Ss(e){var t=e.svgName,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,o=void 0===i?"span":i,a=e.size,c=void 0===a?gs.Standard:a,s=e.onClick,u=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,d=o,h={dangerouslySetInnerHTML:{__html:hs.getSvg(t)},className:"".concat(r," ").concat(c),onClick:m(s)?s:null};return u?l.createElement(bs,{title:u,placement:p},l.createElement(d,Object.assign({},h))):l.createElement(d,Object.assign({},h))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(gs||(gs={}));var Es=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Os(e,t,n,r){var i="form-control";return n||(i+=" ".concat(vo.a.inputWithoutHighlight)),"left"===e&&(i+=" ".concat(vo.a.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t)&&(i+=" ".concat(vo.a.inputWithRightIcon)),"right"===e&&t&&(i+=" ".concat(vo.a.inputWithTwoRightIcons)),r&&(i+="".concat(r)),i}function Cs(e){var t="d-inline-block svg-container";return m(e)?t+" cursor-pointer":t}function As(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,r=e.showClearInputIcon,i=e.onClickClearInput,o=e.highlightOnFocus,a=e.className,c=Es(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className"]),s=function(){return l.createElement("div",{className:"d-inline-block"},l.createElement(Ss,{svgName:ys.Search,size:gs.Standard,onClick:t,className:Cs(t)}))};return l.createElement("div",{className:"position-relative ".concat(vo.a.inputContainer)},"left"===n&&l.createElement("div",{className:"".concat(vo.a.iconContainer," ").concat(vo.a.leftIconContainer)},l.createElement(s,null)),l.createElement("input",Object.assign({className:Os(n,r,o,a)},c)),("right"===n||!!r)&&l.createElement("div",{className:"".concat(vo.a.iconContainer," ").concat(vo.a.rightIconContainer)},!!r&&l.createElement((function(){return l.createElement("div",{className:"d-inline-block text-muted ".concat(vo.a.clearButton)},l.createElement(Ss,{svgName:ys.Close,size:gs.Standard,onClick:i,className:Cs(i)}))}),null),"right"===n&&l.createElement(s,null)))}function js(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ws(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ws(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ws(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Is=m;function Ts(e){return e.renderAsForm?l.createElement("form",{onSubmit:e.onSubmit},e.children):l.createElement(l.Fragment,null,e.children)}function ks(e){var t,n,r,i=(t=e.initialSuggestions,n=e.recentSearches,So(r={},mo.Recent,n),So(r,mo.Local,t),So(r,mo.Remote,[]),r),o=js(l.useState(e.initialQuery||""),2),a=o[0],c=o[1],s=js(l.useState(i),2),u=s[0],f=s[1],p=function(e){var t=lo(Object(l.useState)(window.matchMedia(e).matches),2),n=t[0],r=t[1];return Object(l.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&r(t.matches);var i=function(){return r(t.matches)};return t.addListener(i),function(){return t.removeListener(i)}}),[e]),n}(so.XS);l.useEffect((function(){var t=e.initialQuery||"";a!==t&&c(t)}),[e.initialQuery]);var d=function(){f(i)},m=function(t){t.preventDefault(),Is(e.onSubmit)&&e.onSubmit(a)};return l.createElement(Ts,{onSubmit:m,renderAsForm:!!e.renderAsForm},l.createElement(uo,Object.assign({suggestions:Co(u,!a,e.recentSearchHeading||eo.getPhrase("shared.searchBar","recentSearchHeading"),e.suggestionsHeading,e.getSections,e.suggestionLimit),onSuggestionsFetchRequested:Oo(e,f,d),onSuggestionsClearRequested:function(){e.alwaysRenderSuggestions||d()},onSuggestionSelected:function(t,n){var r=n.suggestion;e.clearQueryOnSelect&&c(""),e.onSuggestionSelected(r)},getSuggestionValue:function(t){return e.updateQueryOnSelection?function(e,t){return Eo(t,e)?t[e]:""}(e.valueKey,t):a},renderSuggestion:function(t){return Is(e.getSuggestionComponent)?e.getSuggestionComponent(t):function(e,t){return Eo(t,e)?l.createElement(l.Fragment,null,t[e]):l.createElement(l.Fragment,null)}(e.valueKey,t)},alwaysRenderSuggestions:e.alwaysRenderSuggestions,focusInputOnSuggestionClick:!p,inputProps:{placeholder:e.placeholder||eo.getPhrase("shared.searchBar","placeholder"),value:a,onChange:function(t,n){var r=n.newValue;c(r),Is(e.onQueryChange)&&e.onQueryChange(r)},onKeyDown:function(t){8===t.keyCode&&e.onBackspace&&!a&&e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&m,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!a.length,onClickClearInput:function(){c(""),Is(e.onClickClearInput)&&e.onClickClearInput()}},renderInputComponent:As,theme:Io(e.theme),multiSection:!0,renderSectionTitle:jo,getSectionSuggestions:Ao},e.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}ks.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0};var Ls,_s=n(13);function xs(e){return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rs(e,t){return(Rs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Us(e);if(t){var i=Us(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ms(this,n)}}function Ms(e,t){return!t||"object"!==xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Us(e){return(Us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(Ls||(Ls={}));var Fs,Vs=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rs(e,t)}(o,e);var t,n,r,i=Ds(o);function o(){var e;return Ps(this,o),(e=i.apply(this,arguments)).contextHistory=[],e}return t=o,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(W.a.SHELL,p.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return Ls.Context}}])&&Ns(t.prototype,n),r&&Ns(t,r),o}(p.Service)),Bs=n(5);!function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(Fs||(Fs={}));var zs="global:analytics";function Hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qs=_s.EventVersion.V1,Js=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=i||qs}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||p.ErrorHelper.throw(new Ji.a("".concat(e," is not a valid key"))),this[e]&&p.ErrorHelper.throw(new Ji.a("Event already contains an enrichment named ".concat(e)))}}])&&Hs(t.prototype,n),r&&Hs(t,r),e}(),$s=function(e,t,n,r){Bs.Radio.channel(zs).trigger(Fs.Inlet,new Js(e,t,n,r))};function Ks(){var e=Vs.getCurrentContext().appLink;return d.isObject(e)||p.ErrorHelper.throw(new Ji.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function Ys(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,i=void 0===r?null:r,o=e.descriptor,a=void 0===o?null:o;return t||p.ErrorHelper.throw(new Ji.a("location must be set.")),n||p.ErrorHelper.throw(new Ji.a("entity must be set.")),{productArea:Ks(),location:t,entity:n,descriptor:a,workflowPhase:i}}function Ws(){return p.LocationUtils.GetCurrentPath()+p.LocationUtils.GetCurrentQueryString()}var Zs={logUserAction:function(e,t){if(function(e){return!(!d.isArray(e)||!d.every(e,(function(e){return d.isObject(e)})))||!!d.isObject(e)}(e)&&d.isObject(t)){var n=Zs.buildUserActionEvent(t),r=n.userAction,i=n.action,o=n.eventVersion;$s(r,e,i,o)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:Ws(),appLink:e},t);$s(_s.UserAction.Navigate,n)},mergeOptions:function(e,t){return d.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ys(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,i=Ys(e);return{userAction:r,action:i,eventVersion:n}},buildCurrentLocation:function(){return Ws()},buildSearchEvent:function(e,t){return{data:{query:e},action:Ys({entity:_s.EntityType.Video,location:_s.LocationContext.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===_s.SearchQueryType.Series&&(r=_s.EntityType.Series),n===_s.SearchQueryType.Folder&&(r=_s.EntityType.Folder),n===_s.SearchQueryType.Tags&&(r=_s.EntityType.Tag),n===_s.SearchQueryType.Video&&(r=_s.EntityType.Video),n===_s.SearchQueryType.Subjects&&(r=_s.EntityType.Classification);var i={instant:{},query:e};return t.id&&(i.instant.selectedId=t.id),t.name&&(i.instant.selectedName=t.name),{data:i,action:Ys({entity:r,location:_s.LocationContext.SearchBar})}},mapInteractionType:function(e){switch(e){case _s.InteractionType.DragDrop:return _s.InteractionTypeDescriptor.DragDrop;case _s.InteractionType.FileSelect:return _s.InteractionTypeDescriptor.FileSelect;default:return}}};function Gs(e){var t=e.appLink,n=e.className,r=e.children,i=e.tag,o=void 0===i?"a":i;if(!t)return l.createElement("span",{className:n||""},r);var a=p.AppLinkHelper.getHref(t),c={onClick:function(n){var r;n.preventDefault(),null===(r=e.onClick)||void 0===r||r.call(e,n),e.analyticsData&&e.analyticsOptions&&Zs.logUserAction(Object.assign({href:a},e.analyticsData),e.analyticsOptions),p.AppLinkHelper.trigger(t)},href:a,className:n};return l.createElement(o,Object.assign({},c),r)}function Qs(e){var t=e.backToName,n=e.appLink;return l.createElement(Gs,{appLink:n,className:"d-inline-flex align-items-center"},l.createElement(Ss,{svgName:ys.ArrowLeft,size:gs.Small}),l.createElement("span",{className:"ml-1"},"Back to ".concat(t)))}function Xs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tu,nu,ru,iu,ou=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function au(e){var t=e.selected,n=e.onToggle,r=ou(e,["selected","onToggle"]),i=Xs(l.useState(t),2),o=i[0],a=i[1];l.useEffect((function(){return a(t)}),[t]);return l.createElement(Ti.Form.Check,Object.assign({type:"checkbox",id:"checkbox-".concat(vs()),checked:o,onChange:function(){a(!o),n(!o)}},r))}!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(tu||(tu={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners"}(nu||(nu={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(ru||(ru={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(iu||(iu={}));var cu,su,uu=function(e,t){var n=d.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),r=d.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return r?"".concat(e,"?").concat(r):e},lu=function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}};function fu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(su||(su={}));var pu,du=(fu(cu={},nu.Banners,su.Banner),fu(cu,nu.Thumbnails,su.Thumbnail),cu),mu=function(e){return"/v1/category-map/".concat(e)},hu={createUrl:function(e,t){return hu._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?hu._createUrl(e.url,n):hu._createCategoryMappedUrl(t,n)},createResourceImage:function(e,t,n){return hu._createUrl(e,Object.assign({url:t},n))},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,i=e.type,o=lu(n,"".concat(mu(du[i]))),a=Object.assign({name:hu.Rfc3986EncodeURIComponent(r)},t);return hu._createUrl(o,a)},_createUrl:function(e,t){if(e){if(Ci.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",i=e;return i.endsWith("/")&&(i=i.slice(0,-1)),i+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof p.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:tu.Small,bgColor:"000"},t);return hu._createUrl(n,r)}}};function yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vu=(yu(pu={},nu.Thumbnails,{width:1280,height:720}),yu(pu,nu.Banners,{width:3600,height:666}),yu(pu,nu.Covers,{width:1080,height:1080}),yu(pu,nu.Posters,{width:1e3,height:1500}),yu(pu,nu.TallPosters,{width:1080,height:1920}),yu(pu,nu.HeroBanners,{width:1920,height:640}),pu);function bu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Su,Eu=l.createContext(void 0),Ou=function(e){var t=e.children,n=bu(l.useState(),2),r=n[0],i=n[1],o=bu(l.useState(!1),2),a=o[0],c=o[1],s=bu(l.useState(),2),u=s[0],f=s[1],p={getDataUrl:function(){var e=r;return i(null),e},setDataUrl:i,imageUploaded:a,getImage:function(){var e=u;return f(null),c(!1),e},setImage:function(e){f(e),c(!0)}};return l.createElement(Eu.Provider,{value:p},t)},Cu={onFileSelect:function(e,t,n){if(t&&t.length){var r=new FileReader;r.addEventListener("load",(function(){return Cu.onReaderLoad(r,e,n)})),r.readAsDataURL(t[0])}},onReaderLoad:function(e,t,n){var r=new Image;r.src=e.result;var i=vu[t].width,o=vu[t].height;r.addEventListener("load",(function(){Cu.isImageValid(t,r)&&m(n)?n(r):alert("Image too small: minimum dimensions are ".concat(i," x ").concat(o))}))},isImageValid:function(e,t){var n=vu[e].width,r=vu[e].height;return!(n&&t.width<n)&&!(r&&t.height<r)}},Au=["pdf"],ju=["doc","docx","dotx","dot","rtf","docm","odt"],wu=["csv","txt"],Iu=["xls","xlt","xlsx"],Tu=["jpg","tif","png","bmp","gif","jpeg"],ku=["zip","rar"],Lu=["ppt","pot","pps","pptx"],_u=["srt"],xu={IMAGES:".".concat(Tu.join(",.")),RESOURCES:".".concat([].concat(ju,Iu,Lu,Au,wu,Tu,ku).join(",.")),SUBTITLES:".".concat(_u.join(",."))},Pu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Nu(e){var t=e.onFileSelect,n=e.acceptMultiple,r=e.mimeType,i=e.label,o=e.error,a=e.touched,c=Pu(e,["onFileSelect","acceptMultiple","mimeType","label","error","touched"]),s="custom-file-input cursor-pointer";o&&a&&(s+=" is-invalid");var u=Object.assign({type:"file",className:s,onChange:function(e){var n=e.currentTarget.files;n&&n.length&&m(t)&&t(n)},autoComplete:"off",value:"",multiple:!!n},r?{accept:r}:{});return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"custom-file"},l.createElement(yi,Object.assign({},u,c),e.children),l.createElement(Ti.Form.Label,{className:"custom-file-label",htmlFor:c.id},i)))}function Ru(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Du(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Du(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uu=(Mu(Su={},nu.Thumbnails,"Thumbnail"),Mu(Su,nu.Banners,"Banner"),Mu(Su,nu.Avatars,"Avatar"),Mu(Su,nu.Logos,"Logo"),Mu(Su,nu.Covers,"Cover"),Mu(Su,nu.Posters,"Poster"),Mu(Su,nu.TallPosters,"Tall Poster"),Mu(Su,nu.HeroBanners,"Hero Banner"),Su);function Fu(e){var t=ci(),n=ti(null==t?void 0:t.values,e.fieldName),r=l.useContext(Eu),i=r.setDataUrl,o=r.getImage,a=r.imageUploaded,c=Ru(l.useState(!1),2),s=c[0],u=c[1],f=Ru(l.useState(n),2),d=f[0],h=f[1],y=Ru(l.useState(!1),2),v=y[0],b=y[1];function g(t){u(!0),i(t.src),p.AppLinkHelper.trigger({application:e.application,action:e.uploadAction,args:[e.imageType]})}l.useEffect((function(){if(s){var n,r=o();if(r)u(!1),h(r),n=r,m(e.setSelectedImage)?e.setSelectedImage(n):t&&t.setFieldValue(e.fieldName,{fileId:n.id,fileIdType:iu.ImageAPIv2})}}),[a]);var S=e.label||Uu[e.imageType]||"Image";return l.createElement("div",{className:"form-group"},l.createElement("div",{className:"form-control h-auto py-2"},l.createElement("label",null,S),l.createElement("em",{className:"ml-1 text-muted"},"(Minimum dimensions are ".concat(vu[e.imageType].width,"px")+" x ".concat(vu[e.imageType].height,"px)")),l.createElement(Nu,{label:"Choose a ".concat(S.toLowerCase()),name:"image",mimeType:xu.IMAGES,onFileSelect:function(t){return Cu.onFileSelect(e.imageType,t,g)}}),!!d&&!!d.url&&l.createElement(l.Fragment,null,!v&&l.createElement("div",{className:"pb-2 ".concat(e.imageType===nu.Banners?"w-100":"w-50")},l.createElement("img",{src:hu.createUrl(d.url),className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-center"},l.createElement(Ss,{svgName:v?ys.ChevronDown:ys.ChevronUp,size:gs.Large,className:"svg-container cursor-pointer",onClick:function(){return b(!v)},title:v?"Show image":"Hide image",tooltipPlacement:"top"})))))}function Vu(e,t){return t?{application:e.application,action:e.action,args:e.args,params:Object.assign({},e.params,{cursor:t})}:null}function Bu(e){var t=e.appLink,n=e.cursors,r=e.className;function i(e){Zs.logUserAction({page:e},{location:_s.LocationContext.Pagination,entity:_s.EntityType.Pagination,actionType:_s.UserAction.Navigate})}return l.createElement(to.Provider,{value:"shared.pagination"},l.createElement("div",{className:r},l.createElement(Gs,{appLink:Vu(t,n.previous),className:"btn btn-secondary mr-1 ".concat(n.previous?"":"disabled"),onClick:function(){return i("previous")}},l.createElement(no,{phrase:"previous"})),l.createElement(Gs,{appLink:Vu(t,n.next),className:"btn btn-secondary ".concat(n.next?"":"disabled"),onClick:function(){return i("next")}},l.createElement(no,{phrase:"next"}))))}function zu(e){if(!e.collection)return l.createElement(l.Fragment,null);var t=e.collection,n=t.data,r=t.pagination;return l.createElement(l.Fragment,null,!!n&&l.createElement(tl,{objects:n,getObjectAppLink:e.getObjectAppLink,newObjectAppLink:e.newObjectAppLink,objectName:e.objectName}),!!r&&!!r.cursors&&l.createElement(Bu,{cursors:r.cursors,appLink:e.collectionAppLink}))}Bu.defaultProps={className:"py-2"};var Hu=n(41),qu=n.n(Hu);function Ju(e){var t="".concat(e.className," ").concat(qu.a.iconButton);e.children?t+=" ".concat(qu.a.iconWithText):t+=" ".concat(qu.a.iconOnly);var n=l.createElement(Ss,{svgName:e.svgName,className:qu.a.svg});return e.appLink?l.createElement(Gs,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n,e.children):l.createElement("button",{className:t,onClick:function(t){e.analyticsData&&e.analyticsOptions&&Zs.logUserAction(e.analyticsData,e.analyticsOptions),m(e.onClick)&&e.onClick(t)}},n,e.children)}var $u=n(50),Ku=n.n($u);function Yu(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function Wu(e){if(e.action.appLink)return l.createElement(Gs,{appLink:e.action.appLink,onClick:e.action.onClick,className:Yu(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions},e.action.label);return l.createElement("span",{className:"cursor-pointer ".concat(Yu(e.action.className)),onClick:function(t){e.action.analyticsData&&e.action.analyticsOptions&&Zs.logUserAction(e.action.analyticsData,e.action.analyticsOptions),m(e.action.onClick)&&e.action.onClick(t)}},e.action.label)}function Zu(e){if(!e.actions||!e.actions.length)return l.createElement(l.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var n="actions-dropdown-".concat(vs()),r="dropdown-toggle px-0 ".concat(Ku.a.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),l.createElement("div",{className:t},l.createElement("button",{className:r,type:"button",id:n,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l.createElement(Ss,{svgName:ys.More,size:gs.Small})),l.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":n},e.actions.map((function(e,t){return l.createElement(Wu,{key:t,action:e})}))))}function Gu(e){var t="ml-2";e.className&&(t+=" ".concat(e.className));var n=e.showSpinner?l.createElement(Ti.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip)return l.createElement(bs,{title:e.tooltip},l.createElement("span",null,l.createElement(Ju,{appLink:e.appLink,svgName:e.svgName,onClick:e.onClick,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n)));if(e.svgName)return l.createElement(Ju,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);if(e.appLink)return l.createElement(Gs,{onClick:e.onClick,appLink:e.appLink,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);return l.createElement("button",{onClick:function(t){e.analyticsData&&e.analyticsOptions&&Zs.logUserAction(e.analyticsData,e.analyticsOptions),m(e.onClick)&&e.onClick(t)},className:t},n)}function Qu(e){var t=[],n=[];e.actions.forEach((function(e){e.button?t.push(e):n.push(e)}));var r="d-flex";return e.className&&(r+=" ".concat(e.className)),l.createElement("div",{className:r},l.createElement(l.Fragment,null,!!t.length&&l.createElement("span",{className:Ku.a.buttonList},t.map((function(e,t){return l.createElement(l.Fragment,{key:t},e.label?l.createElement(Gu,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},e.label):l.createElement(Ju,{appLink:e.appLink,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))),e.sortComponent?e.sortComponent:"",!!n.length&&l.createElement(Zu,{actions:n,className:!!t.length&&"ml-2",dropdownToggleClassName:e.actionsDropdownClassName})))}function Xu(e){var t=e.object,n=e.actions;return l.createElement("div",{className:"d-flex justify-content-between py-2"},!!t&&l.createElement("h5",null,t.name),!!n&&l.createElement("span",null,l.createElement(Qu,{actions:n})))}function el(e){return l.createElement("tr",null,l.createElement("td",null,l.createElement(Gs,{appLink:e.appLink},e.object.name)),l.createElement("td",null))}function tl(e){return l.createElement(Ti.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"Name"),l.createElement("th",null,l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Gs,{appLink:e.newObjectAppLink},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New ".concat(e.objectName))))))),l.createElement("tbody",null,e.objects.map((function(t){return l.createElement(el,{key:t.id,object:t,appLink:e.getObjectAppLink(t)})}))))}function nl(e){var t=e.objects,n=e.getAppLink,r=e.emptyMessage;return t?t.length?l.createElement("ul",{className:"list-unstyled"},t.map((function(e,t){return l.createElement("li",{key:t,className:"border rounded mb-3"},l.createElement(Gs,{appLink:n(e),className:"d-block p-3"},e.name))}))):l.createElement("div",{className:"py-3"},l.createElement("p",null,r)):l.createElement(l.Fragment,null)}Zu.defaultProps={dropdownToggleClassName:"btn btn-light"},nl.defaultProps={emptyMessage:"There is nothing here."};function rl(e){var t=ci();return l.createElement(Ri,{as:"select",label:"Rating",name:"rating",id:"rating",value:t.values.rating&&t.values.rating.id,onChange:function(e){return t.setFieldValue("rating",e.target.value?{id:e.target.value}:{})},disabled:e.disabled},l.createElement(l.Fragment,null,l.createElement("option",{value:""},"Please select a rating"),e.ratings.map((function(e,t){return l.createElement("option",{key:t,value:e.id},function(e){return"".concat(e.name).concat(e.code?" (".concat(e.code,")"):"")}(e))}))))}var il={isItemActive:function(e,t){return t||(t=p.AppLinkHelper.getCurrentAppLink()),t.application===e.appLink.application&&(Array.isArray(e.activeActions)?e.activeActions.includes(t.action):t.action===e.appLink.action)}},ol=function(e){return Object.values(e).every((function(e){return!!e}))},al=(n(205),function(e,t){return!!e&&!!t&&e.toString()===t.toString()}),cl=function(e){return e.split(" ").map((function(e){return(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")})).join(" ")};function sl(e){return function(e){if(Array.isArray(e))return ul(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ul(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ul(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ll={find:function(e,t){if(e&&e.children&&e.children.length)for(var n=function e(n){if(al(n.id,t))return n;var r=n.children;if(r&&r.length)for(var i=0;i<r.length;i++){var o=e(r[i]);if(o)return o}},r=0;r<e.children.length;r++){var i=n(e.children[r]);if(i)return i}},getPath:function(e,t){for(var n=[t],r=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},i=r(t);i;){var o=ll.find(e,i);o&&(n=[o].concat(sl(n))),i=o?r(o):null}return n}},fl=function(e){return e&&e.groups?e.groups.map((function(e){return e.name})):[]};function pl(e){var t=e.tabs,n=e.isItemActive;return l.createElement(Ti.Nav,{fill:!0,variant:"tabs"},t.map((function(e,t){return l.createElement(Ti.Nav.Item,{key:t},l.createElement(Gs,{appLink:e.appLink,className:(r=n(e),r?"nav-link active":"nav-link")},e.label));var r})))}pl.defaultProps={isItemActive:il.isItemActive};var dl=n(23),ml=n.n(dl);function hl(e){var t=e.name,n=e.appLink,r=e.onSelect,i=e.isDisabled,o=e.className,a=e.actions,c=ml.a.text;return o&&(c+=" ".concat(o)),i?l.createElement("a",{className:"".concat(c," text-muted ").concat(ml.a.disabled)},t):l.createElement(l.Fragment,null,n?l.createElement(Gs,{appLink:n,className:c},t):l.createElement("a",{onClick:r,className:c},t),!!a&&l.createElement(Qu,{className:ml.a.actions,actions:a}))}function yl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bl(e){var t=e.tree,n=e.selectedIds,r=e.getAppLink,i=e.onSelect,o=e.isDisabled,a=e.actions,c=Array.isArray(n)&&n.some((function(e){return al(t.id,e)})),s=l.useMemo((function(){return Array.isArray(n)&&n.some((function(e){return ll.find(t,e)}))}),[t,n]),u=yl(l.useState(s),2),f=u[0],p=u[1],d=!!t.children&&!!t.children.length,h={name:t.name,appLink:m(r)?r(t):null,onSelect:m(i)?function(){return i(t)}:null,isDisabled:!!m(o)&&o(t),className:c&&ml.a.selected||s&&ml.a.parentOfSelected,actions:!!a&&a.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(t)})}))};return l.createElement("li",{className:"position-relative".concat(f?"":" ".concat(ml.a.collapsed))},l.createElement("div",{className:"position-relative"},l.createElement("span",{className:ml.a.node},d&&l.createElement(Ss,{svgName:ys.ChevronDown,size:gs.Small,className:"svg-container ".concat(ml.a.chevron),onClick:function(){return p(!f)}}),l.createElement(hl,Object.assign({},h))),f&&l.createElement(Sl,Object.assign({},e))))}var gl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Sl(e){var t=e.tree,n=gl(e,["tree"]);return t&&t.children?l.createElement("ul",{className:"m-0 p-0 ".concat(ml.a.tree)},t.children.map((function(e){return l.createElement(bl,Object.assign({key:e.id,tree:e},n))}))):l.createElement(l.Fragment,null)}var El={getChord:function(e,t){return ll.getPath(e,t).map((function(e){return e.name})).join(" -> ")},getState:function(e,t){var n={};return Array.isArray(e)&&e.forEach((function(e){var r,i,o,a=ll.find(t,e);a&&(n=Object.assign((r={},i=e,o=El.getChord(t,a),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r),n))})),n}};function Ol(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Al=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function jl(e){var t=e.onSelect,n=e.label,r=e.hideCollapseBtn,i=e.collapse,o=e.noSelectionMessage,a=e.isNodeDisabled,c=e.getSelectedItemAppLink,s=Al(e,["onSelect","label","hideCollapseBtn","collapse","noSelectionMessage","isNodeDisabled","getSelectedItemAppLink"]),u=s.tree,f=s.selectedIds,p=Ol(l.useState(El.getState(f,u)),2),d=p[0],h=p[1];l.useEffect((function(){return h(El.getState(f,u))}),[f,u]);var y=Ol(l.useState(!!i),2),v=y[0],b=y[1];l.useEffect((function(){return b(!!i)}),[i]);var g=!r||!!n;return l.createElement(l.Fragment,null,g&&l.createElement("div",{className:"pb-2"},!!n&&l.createElement("label",{className:"m-0"},n),!r&&l.createElement("a",{className:"float-right cursor-pointer",onClick:function(){return b(!v)}},v?"Expand":"Collapse")),!v&&l.createElement("div",{className:"py-2 border-top"},l.createElement(Sl,Object.assign({onSelect:function(e){return m(t)&&t(e)},isDisabled:a},s))),(!Ci.a.isEmpty(d)||!!o)&&l.createElement("div",{className:"py-2 border-top"},l.createElement("label",null,"Selected:"),l.createElement("ul",{className:"m-0"},Ci.a.isEmpty(d)?l.createElement("li",null,o):Object.keys(d).map((function(e,t){return l.createElement("li",{key:t},m(c)?l.createElement(Gs,{appLink:c(e)},d[e]):d[e])})))))}var wl=n(51);var Il=function(e){return e&&!(e.data&&e.data.length)},Tl=function(e){return e&&e.data&&e.data.length},kl=function(e){var t="bg-white";return e&&(t+=" ".concat(e)),t};function Ll(e){var t=e.video,n=e.getVideoAppLink,r=e.getVideoActions,i=e.className,o=void 0===i?"":i,a=e.itemNumber,c=m(n)&&n(t);return l.createElement("tr",{className:kl(o)},!!a&&l.createElement("td",null,l.createElement("span",null,a)),l.createElement("td",null,c?l.createElement(Gs,{appLink:c},t.name):t.name),m(r)&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Qu,{actions:r(t)}))))}var _l=Object(wl.SortableElement)((function(e){return l.createElement(Ll,Object.assign({sortable:!0},e))})),xl=n(30),Pl=n.n(xl),Nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Rl=function(e){var t=e.sortable,n=e.getVideoActions;return l.createElement("thead",null,l.createElement("tr",null,!!t&&l.createElement("th",null,"#"),l.createElement("th",null,"Name"),!!n&&l.createElement("th",null)))},Dl=l.forwardRef((function(e,t){var n=e.videos,r=e.sortable,i=Nl(e,["videos","sortable"]);return l.createElement("tbody",{ref:t},!Il(n)&&n.data.map((function(e,t){return r?l.createElement(_l,Object.assign({key:e.id,index:t,itemNumber:t+1,video:e,className:Pl.a.draggableVideoItem},i)):l.createElement(Ll,Object.assign({video:e},i))})))}));var Ml=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ul=Object(wl.SortableContainer)((function(e){var t=e.forwardedRef,n=Ml(e,["forwardedRef"]);return l.createElement(Dl,Object.assign({sortable:!0,ref:t},n))})),Fl=function(e){return function(t){var n=t.node,r=e.current;if(r){r.classList.add(Pl.a.sortingContainer);var i=r.querySelector(".".concat(Pl.a.draggedVideoItem));n.childNodes.forEach((function(e,t){return i.childNodes[t].style.width="".concat(e.offsetWidth,"px")}))}}},Vl=function(e,t){return function(n){var r=e.current;r&&r.classList.remove(Pl.a.sortingContainer),t(n.oldIndex,n.newIndex)}};function Bl(e){var t=e.onSortEnd,n=e.emptyMessage,r=Ml(e,["onSortEnd","emptyMessage"]),i=l.useRef();return Il(e.videos)?l.createElement("div",null,n):l.createElement(Ti.Table,{responsive:!0},l.createElement(Rl,Object.assign({sortable:!0},e)),l.createElement(Ul,Object.assign({forwardedRef:i,onSortStart:Fl(i),onSortEnd:Vl(i,t),lockAxis:"y",lockToContainerEdges:!0,distance:1,helperClass:Pl.a.draggedVideoItem,helperContainer:function(){return i.current}},r)))}function zl(e){var t=e.alias,n=e.onDelete;return l.createElement("li",{className:"list-group-item d-flex justify-content-between"},t.name,l.createElement(Ss,{svgName:ys.Delete,onClick:function(){return n(t.id)}}))}function Hl(e){var t=e.aliases,n=e.onDelete;return l.createElement("ul",{className:"list-group mb-3"},t?t.map((function(e){return l.createElement(zl,{key:e.id,alias:e,onDelete:n})})):l.createElement("span",null,"Currently there are no aliases for this object."))}function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Bl.defaultProps={emptyMessage:"There are no videos in this list."};var $l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Kl(e){var t=e.showSpinner,n=e.children,r=$l(e,["showSpinner","children"]),i=l.useRef(),o=ql(l.useState({}),2),a=o[0],c=o[1];return l.useEffect((function(){var e=a.width,t=a.height;if(!e||!t){var n=i.current,r=n.offsetHeight,o=n.offsetWidth;r&&o&&c({width:o,height:r})}})),l.useEffect((function(){var e=a.width,t=a.height;if(e&&t){var n=i.current;n.style.width="".concat(e+1,"px"),n.style.height="".concat(t+1,"px")}}),[a]),l.createElement(Ti.Button,Object.assign({ref:i,disabled:t},r),t?l.createElement(Ti.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}var Yl=Object(wi.object)().shape({name:Object(wi.string)().trim().max(255,"Name is too long").required("Name is required").default("")});function Wl(){var e=ci(),t=Ui(e);return l.createElement(vi,null,l.createElement(Ri,{label:"Create an alias",name:"name",id:"name",value:e.values.name,placeholder:"Add an alias"}),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Kl,{showSpinner:e.isSubmitting,type:"submit",disabled:!t},"Add")))}function Zl(e){var t=e.onSave;return l.createElement(ji,{initialValues:{name:""},validationSchema:Yl,onSubmit:function(e,n){t(e,n)},resetOnSubmit:!0},l.createElement(Wl,null))}function Gl(e){var t=e.onSave,n=e.aliases,r=e.onDelete;return l.createElement("div",{className:"w-50"},l.createElement("h1",null,"Aliases"),l.createElement(Hl,{aliases:n,onDelete:r}),l.createElement(Zl,{onSave:t}))}var Ql=c.COMPANIES,Xl=function(e){return{application:Ql,action:i.Companies.EDIT_COMPANY,args:[e.id]}},ef=function(e){return p.AppLinkHelper.trigger(Xl(e))};function tf(e){var t=ae.useBasicFetch(he(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(ks,{placeholder:"Search for a company",onSuggestionSelected:ef,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/companies/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(zu,{collection:t&&t.data,collectionAppLink:{application:Ql,action:i.Companies.COMPANIES},newObjectAppLink:{application:Ql,action:i.Companies.NEW_COMPANY},getObjectAppLink:Xl,objectName:"Company"}))}function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function af(e,t,n){return t&&of(e.prototype,t),n&&of(e,n),e}function cf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sf(e,t)}function sf(e,t){return(sf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ff(e);if(t){var i=ff(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lf(this,n)}}function lf(e,t){return!t||"object"!==nf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ff(e){return(ff=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pf=function(e){cf(n,e);var t=uf(n);function n(){return rf(this,n),t.apply(this,arguments)}return af(n,[{key:"channelName",get:function(){return c.COMPANIES}},{key:"appRoutes",get:function(){return{"manage/companies(/)":"companies","manage/companies/new(/)":"newCompany","manage/companies/:id(/)":"editCompany"}}}]),n}(p.AppRouter),df=function(e){cf(n,e);var t=uf(n);function n(){return rf(this,n),t.apply(this,arguments)}return af(n,[{key:"companies",value:function(e){var t=e.cursor;this.layout.showChildView(T,l.createElement(tf,{cursor:t}))}},{key:"newCompany",value:function(){this.layout.showChildView(T,l.createElement(co,null))}},{key:"editCompany",value:function(e){this.layout.showChildView(T,l.createElement(ao,{id:e}))}},{key:"name",get:function(){return"Companies Application"}},{key:"channelName",get:function(){return c.COMPANIES}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return pf}}]),n}(p.Application);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vf(e,t){return(vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sf(e);if(t){var i=Sf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gf(this,n)}}function gf(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Sf(e){return(Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ef=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vf(e,t)}(o,e);var t,n,r,i=bf(o);function o(){return hf(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,l.createElement(t,{alerts:r,removeAlert:function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)}}))}}}])&&yf(t.prototype,n),r&&yf(t,r),o}(n(43).a);function Of(e){return(Of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Af(e,t){return(Af=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=If(e);if(t){var i=If(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wf(this,n)}}function wf(e,t){return!t||"object"!==Of(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function If(e){return(If=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Af(e,t)}(o,e);var t,n,r,i=jf(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=o,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():zi.c.throw(new Ji.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e(t)},this.destructors[r]=function(){return d.isFunction(n.instances[r].destroy)&&n.instances[r].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||zi.c.throw(new Ji.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||zi.c.throw(new Ji.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&zi.c.throw(new Ji.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&Cf(t.prototype,n),r&&Cf(t,r),o}(Bi.a).Instance;function kf(e){var t,n;return t=e,n=Tf.getInstance(t),l.useEffect((function(){return function(){return Tf.releaseInstance(t)}})),n}var Lf,_f,xf=n(33),Pf=n(28);function Nf(e){return(Nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Df(e,t){return(Df=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ff(e);if(t){var i=Ff(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(e,t){return!t||"object"!==Nf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ff(e){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(Lf||(Lf={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(_f||(_f={}));var Vf,Bf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Df(e,t)}(o,e);var t,n,r,i=Mf(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"initialize",value:function(){this.alertCollection=new xf.a,this.listenTo(W.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=Bs.Radio.channel(W.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=d.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=d.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new Pf.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?d.bind((function(e,n){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?d.bind((function(e){return t.createAlert(d.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):d.bind((function(){return t.createAlert(d.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return d.uniqueId("alert_")}},{key:"name",get:function(){return Hi}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&Rf(t.prototype,n),r&&Rf(t,r),o}(Bi.a);function zf(){var e=kf(Hi);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:Lf.Warning,heading:_f.Warning,message:t})}}}function Hf(){return l.createElement("div",{className:"text-center p-5"},l.createElement(Ti.Spinner,{as:"div",animation:"border",role:"status"}))}function qf(e){var t,n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((function(e,t){return l.createElement(Gu,Object.assign({key:t},e))})):l.createElement(l.Fragment,null);return l.createElement(Ti.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&l.createElement(Ti.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},l.createElement(Ti.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?l.createElement(Hf,null):l.createElement(Ti.Modal.Body,{className:e.bodyClassName},e.children))}!function(e){e.Subject="subject",e.Curriculum="curriculum"}(Vf||(Vf={})),qf.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:""};var Jf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $f(e){var t=e.buttons;return l.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},t.map((function(e,t){return function(e,t){var n=e.buttonText,r=e.type,i=void 0===r?"button":r,o=e.isSpinnerButton,a=e.showSpinner,c=void 0!==a&&a,s=e.className,u=Jf(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),f=Object.assign({key:t,type:i,className:"ml-2".concat(s?" ".concat(s):"")},u);return o?l.createElement(Kl,Object.assign({showSpinner:c},f),n):l.createElement(Ti.Button,Object.assign({},f),n)}(e,t)})))}function Kf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wf=eo.encloseNamespace("shared.confirmationPopup");function Zf(e){var t=Kf(l.useState(!1),2),n=t[0],r=t[1],i=[{variant:e.cancelButtonVariant,onClick:e.closePopup,buttonText:e.cancelButtonText||Wf("cancel")},{variant:e.confirmButtonVariant,onClick:function(){r(!0),e.onClickConfirm()},buttonText:e.confirmButtonText||Wf("confirm"),isSpinnerButton:!0,showSpinner:n}];return l.createElement(qf,{title:e.title,closePopup:e.closePopup},l.createElement(l.Fragment,null,e.children,l.createElement($f,{buttons:i})))}function Gf(e,t){return t?"".concat(e,":").concat(t):e}Zf.defaultProps={confirmButtonVariant:"primary",cancelButtonVariant:"link"};var Qf=function(e){return{key:Gf("presentations",e),url:uu("/api/subjects/v1/presentations",{type:e})}},Xf=function(e,t){return{key:Gf("customers:".concat(e,":presentations"),t),url:uu("/api/subjects/v1/customers/".concat(e,"/presentations"),{type:t})}},ep=function(e,t,n,r,i){return{key:"customers:".concat(e,":presentations:").concat(e,":add"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ce.a.POST,invalidationKeys:"customers:".concat(e,":presentation"),success:n,error:r,always:i}},tp=function(e,t,n,r,i){return{key:"customers:".concat(e,":presentations:").concat(t,":remove"),url:"/api/subjects/v1/customers/".concat(e,"/presentations/").concat(t),type:ce.a.DELETE,invalidationKeys:"customers:".concat(e,":presentations"),success:n,error:r,always:i}},np=function(e){return{key:"customers:".concat(e),url:"/api/master/v2/objects/".concat(e)}},rp=n(10);function ip(e){return l.createElement("div",null,l.createElement(Ti.Form.Label,null,"Select a presentation to add"),l.createElement(Ti.Form.Control,{as:"select",value:"",onChange:function(t){return e.addPresentation(function(e,t){return rp.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(t.target.value,e.availablePresentations))},className:"cursor-pointer"},l.createElement("option",{value:""},"Select a presentation"),e.availablePresentations.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)}))),!!e.currentPresentations.length&&l.createElement(l.Fragment,null,l.createElement("ul",{className:"list-unstyled mt-2"},e.currentPresentations.map((function(t){return l.createElement("li",null,t.name,l.createElement("span",{className:"text-danger cursor-pointer ml-2",onClick:function(){return e.removePresentation(t)}},l.createElement("em",null,"remove")))})))))}function op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ap(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ap(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cp(e){var t=zf(),n=Object(v.useDispatch)(),r=op(l.useState(),2),i=r[0],o=r[1],a=ae.useBasicFetch(np(e.customerId)),c=ae.useBasicFetch(Qf(Vf.Subject)),s=ae.useBasicFetch(Qf(Vf.Curriculum)),u=ae.useBasicFetch(Xf(e.customerId,Vf.Subject)),f=ae.useBasicFetch(Xf(e.customerId,Vf.Curriculum));function p(r){var i=ep(e.customerId,r.id,(function(){return t.success("Successfully added customer to presentation.")}),(function(e){var n;return t.error((null===(n=e.responseJSON)||void 0===n?void 0:n.message)||"Failed to add customers presentation.")}));ae.fetch(n,i)}return!!(a.data&&c.data&&s.data&&u.data&&f.data)?l.createElement(l.Fragment,null,l.createElement("h1",{className:"h6 mb-3"},a.data.name," - ",a.data.crmId),l.createElement("p",null,l.createElement("strong",null,"Subject Presentations")),l.createElement(ip,{availablePresentations:c.data,currentPresentations:u.data,addPresentation:p,removePresentation:o}),l.createElement("hr",null),l.createElement("p",null,l.createElement("strong",null,"Curriculum Presentations")),l.createElement(ip,{availablePresentations:s.data,currentPresentations:f.data,addPresentation:p,removePresentation:o}),!!i&&l.createElement(Zf,{title:"Confirmation needed",onClickConfirm:function(){if(i){var r=tp(e.customerId,i.id,(function(){return t.success("Successfully removed customer from presentation.")}),(function(e){var n;return t.error((null===(n=e.responseJSON)||void 0===n?void 0:n.message)||"Failed to remove presentation.")}),(function(){return o(null)}));ae.fetch(n,r)}},closePopup:function(){return o(null)}},l.createElement("p",null,"Are you sure you want to remove this customer from ",i.name,"?"))):l.createElement(l.Fragment,null)}function sp(e){return(sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function up(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fp(e,t,n){return t&&lp(e.prototype,t),n&&lp(e,n),e}function pp(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dp(e,t)}function dp(e,t){return(dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yp(e);if(t){var i=yp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hp(this,n)}}function hp(e,t){return!t||"object"!==sp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yp(e){return(yp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vp=function(e){pp(n,e);var t=mp(n);function n(){return up(this,n),t.apply(this,arguments)}return fp(n,[{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"appRoutes",get:function(){return{"customers/:id/presentations(/)":"editCustomerPresentations"}}}]),n}(p.AppRouter),bp=function(e){pp(n,e);var t=mp(n);function n(){return up(this,n),t.apply(this,arguments)}return fp(n,[{key:"editCustomerPresentations",value:function(e){this.layout.showChildView(T,l.createElement(cp,{customerId:e}))}},{key:"name",get:function(){return"Customers Application"}},{key:"channelName",get:function(){return c.CUSTOMERS}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{alertRegion:L}}}}],[{key:"router",get:function(){return vp}}]),n}(Ef),gp=n(62),Sp=n(25),Ep=n.n(Sp);function Op(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,o=t.message,a=t.heading,c=t.appLink,s=t.appLinkText,u=t.appLinkClassName,f=void 0===u?"":u,p=Object(Vi.sanitize)(o);return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-inline-block ".concat(Ep.a.icon)},l.createElement(Ss,{svgName:n,className:"svg-container ".concat(r)})),l.createElement("div",{className:"pl-2 d-inline-block ".concat(Ep.a.alertContent)},l.createElement("p",{className:"p-0 m-0 pb-1 ".concat(Ep.a.heading)},a),l.createElement("p",{className:"p-0 m-0 text-break clamp-4 ".concat(Ep.a.message),dangerouslySetInnerHTML:{__html:p}}),!!c&&l.createElement(Gs,{className:f,appLink:c},s)),l.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function Cp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ap(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ap(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jp=function(e){switch(e.type){case Lf.Success:return ys.CheckCircleOutline;case Lf.Fail:case Lf.Warning:return ys.Warning;case Lf.Info:default:return ys.Info}};function wp(e){var t=e.alert,n=e.closeAlert,r=Cp(l.useState(!0),2),i=r[0],o=r[1],a=l.useRef();l.useEffect((function(){i?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[i]);var c="text-".concat(t.type.toLowerCase());return l.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(Ep.a.alertItem),onMouseEnter:function(){return o(!1)},onMouseLeave:function(){return o(!0)}},l.createElement(Op,{alert:t,svgName:jp(t),svgClassName:c,closeAlert:n}))}function Ip(e){var t=e.alerts,n=e.removeAlert;return l.createElement("div",{className:Ep.a.alertBox},l.createElement(gp.TransitionGroup,{component:"ul",className:"".concat(Ep.a.alertList," list-unstyled")},t&&t.map((function(e,t){return l.createElement(gp.CSSTransition,{key:t,timeout:200,classNames:"alert"},l.createElement(wp,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var Tp=n(20),kp={namespace:"domain_options"},Lp=function(){return"/api/domain/v3/settings/types"},_p=function(e){return"/api/domain/v3/settings/types/".concat(e)},xp=function(){return"/api/domain/v3/settings/types"},Pp=function(e){return"/api/domain/v3/settings/types/".concat(e)},Np=function(e){return"/api/domain/v3/settings/types/".concat(e)},Rp="domain:options",Dp="domain:option",Mp="update:domain:option",Up="delete:domain:option",Fp=function(){return{key:Rp,url:Lp(),normalizeOptions:kp}},Vp=function(e){return{key:"".concat(Dp,":").concat(e),url:_p(e),normalizeOptions:kp}},Bp=function(e,t,n){return e.type===Tp.DomainOptionType.String&&(e=qp(e)),{key:Dp,url:xp(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[Rp],normalizeOptions:kp}},zp=function(e,t){return e.type===Tp.DomainOptionType.String&&(e=qp(e)),{key:"".concat(Mp,":").concat(e.id),url:Pp(e.id),data:e,type:ce.a.PUT,always:t,formatData:function(){return e},normalizeOptions:kp}},Hp=function(e,t){return{key:"".concat(Up,":").concat(e),url:Np(e),type:ce.a.DELETE,invalidationKeys:[Rp],normalizeOptions:kp,success:t}};function qp(e){var t=e.defaultValue;if('"'===t)return Object.assign(Object.assign({},e),{defaultValue:'"'.concat(t,'"')});var n=t.charAt(0),r=t.charAt(t.length-1);return'"'!==n&&(t='"'.concat(t)),'"'!==r&&(t="".concat(t,'"')),Object.assign(Object.assign({},e),{defaultValue:t})}function Jp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kp(e){var t=Jp(l.useState(!1),2),n=t[0],r=t[1],o=ae.useBasicFetch(Vp(e.optionId)),a=Object(v.useDispatch)(),s=function(){e.closePopup(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:i.DomainOptions.DOMAIN_OPTIONS})};return l.createElement(qf,{title:"Delete Domain Option",closePopup:e.closePopup,showLoadingSpinner:!o.data},o.data&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,o.data.name),"?")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){r(!0),ae.fetch(a,Hp(e.optionId,s))},buttonText:"Yes, delete this domain option",isSpinnerButton:!0,showSpinner:n}]})))}var Yp,Wp=function(e){return{application:c.DOMAIN_OPTIONS,action:i.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]}},Zp={application:c.DOMAIN_OPTIONS,action:i.DomainOptions.NEW_DOMAIN_OPTION};function Gp(){var e=ae.useBasicFetch(Fp());if(!e.data)return l.createElement(l.Fragment,null);var t=e.data.map((function(e){return e.displayName&&(e.name=e.displayName),e}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a domain option type to edit:"),l.createElement(Gs,{appLink:Zp,className:"d-block"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Domain Option"))),l.createElement(nl,{objects:t,getAppLink:Wp}))}!function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup"}(Yp||(Yp={}));var Qp=wi.object().shape({id:wi.string(),name:wi.string().trim().max(64,"Name is too long").required("Name is required").default(""),displayName:wi.string().trim().max(255,"Display name is too long").required("Display name is required").default(""),type:wi.mixed().required("Type is required").default(Tp.DomainOptionType.Boolean),entityType:wi.mixed().required("Entity type is required").default(Yp.Customer),kind:wi.mixed().required("Kind is required").default(Tp.DomainOptionKind.Temporary),defaultValue:wi.mixed().required("Default value is required").default("false")}).noUnknown();function Xp(e){var t=e.type,n=e.defaultValue;if(!t)return l.createElement(l.Fragment,null);var r={label:"Default Value",name:"defaultValue",id:"defaultValue",value:n};return t===Tp.DomainOptionType.Boolean?l.createElement(Ri,Object.assign({as:"select"},r),l.createElement("option",{value:"true"},"True"),l.createElement("option",{value:"false"},"False")):t===Tp.DomainOptionType.Long||t===Tp.DomainOptionType.StaffRequest?l.createElement(Ri,Object.assign({as:"input",type:"number"},r)):t===Tp.DomainOptionType.String?l.createElement(Ri,Object.assign({as:"input"},r)):void 0}var ed=[Yp.Customer,Yp.User];function td(e){var t=null===e.id||void 0===e.id,n=ci(),r=Ui(n);return l.createElement(vi,null,l.createElement(Ri,{label:"Name (snake_case)",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this domain option",autoFocus:!0}),l.createElement(Ri,{label:"Display Name",type:"text",name:"displayName",id:"displayName",value:n.values.displayName,placeholder:"Enter a display name for this domain option"}),l.createElement(Ri,{as:"select",label:"Kind",name:"kind",id:"kind",value:n.values.kind},Ci.a.getEnumKeys(Tp.DomainOptionKind).map((function(e){return l.createElement("option",{key:e,value:Tp.DomainOptionKind[e]},e)}))),l.createElement(Ri,{as:"select",label:"Entity",name:"entityType",id:"entityType",value:n.values.entityType},Ci.a.getEnumKeys(Yp).filter((function(e){return ed.includes(Yp[e])})).map((function(e){return l.createElement("option",{key:e,value:Yp[e]},e)}))),l.createElement(Ri,{as:"select",label:"Type",name:"type",id:"type",value:n.values.type},Ci.a.getEnumKeys(Tp.DomainOptionType).map((function(e){return l.createElement("option",{key:e,value:Tp.DomainOptionType[e]},e)}))),l.createElement(Xp,{type:n.values.type,defaultValue:n.values.defaultValue}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Kl,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ti.Button,{as:Gs,variant:"danger",appLink:{application:c.DOMAIN_OPTIONS,action:i.DomainOptions.DELETE_DOMAIN_OPTION,args:[e.id]}},"Delete")))}function nd(e){return l.createElement(ji,{initialValues:e.domainOption,validationSchema:Qp,onSubmit:e.saveDomainOption},l.createElement(td,{id:e.domainOption&&e.domainOption.id}))}function rd(){var e=Object(v.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Domain Option"),l.createElement(nd,{saveDomainOption:function(t,n){ae.fetch(e,Bp(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.DOMAIN_OPTIONS,action:i.DomainOptions.EDIT_DOMAIN_OPTION,args:[e.id]})}),n))}}))}function id(e){var t=e.optionId,n=ae.useBasicFetch(Vp(t)),r=Object(v.useDispatch)();return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Domain Option"),n.data&&l.createElement(nd,{domainOption:n.data,saveDomainOption:function(e,t){return ae.fetch(r,zp(e,t))}}))}function od(e){return(od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ad(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sd(e,t,n){return t&&cd(e.prototype,t),n&&cd(e,n),e}function ud(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ld(e,t)}function ld(e,t){return(ld=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dd(e);if(t){var i=dd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pd(this,n)}}function pd(e,t){return!t||"object"!==od(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dd(e){return(dd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var md=function(e){ud(n,e);var t=fd(n);function n(){return ad(this,n),t.apply(this,arguments)}return sd(n,[{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"appRoutes",get:function(){return{"developer/options(/)":"domainOptions","developer/options/new(/)":"newDomainOption","developer/options/:id(/)":"editDomainOption"}}},{key:"appLinks",get:function(){return["deleteDomainOption"]}}]),n}(p.AppRouter),hd=function(e){ud(n,e);var t=fd(n);function n(){return ad(this,n),t.apply(this,arguments)}return sd(n,[{key:"domainOptions",value:function(){this.layout.showChildView(T,l.createElement(Gp,null))}},{key:"newDomainOption",value:function(){this.layout.showChildView(T,l.createElement(rd,null))}},{key:"editDomainOption",value:function(e){this.layout.showChildView(T,l.createElement(id,{optionId:e}))}},{key:"deleteDomainOption",value:function(e){this.layout.showChildView(k,l.createElement(Kp,Object.assign({optionId:e},this.getPopupProps())))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Domain Options Application"}},{key:"channelName",get:function(){return c.DOMAIN_OPTIONS}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return md}}]),n}(p.Application),yd=function(e){return e?"".concat("/api/master/v2/people","?cursor=").concat(e):"/api/master/v2/people"},vd=function(e){return"/api/master/v2/objects/".concat(e)},bd=function(){return"/api/master/v2/people"},gd=function(e){return"/api/master/v2/objects/".concat(e)},Sd="people",Ed="person",Od="update:person",Cd=function(e){return{key:"".concat(Sd).concat(e?":".concat(e):""),url:yd(e)}},Ad=function(e){return{key:"".concat(Ed,":").concat(e),url:vd(e)}},jd=function(e,t,n){return{key:Ed,url:bd(),data:e,type:ce.a.POST,success:t,error:n,invalidationKeys:[Sd]}},wd=function(e,t,n){return{key:"".concat(Od,":").concat(e),url:gd(e),data:t,type:ce.a.PUT,always:n}},Id=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown();function Td(e){var t=ci();return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this person",autoFocus:!0}),l.createElement(ro,{isNew:e.isNew}))}function kd(e){return l.createElement(ji,{initialValues:e.person,validationSchema:Id,onSubmit:e.savePerson},l.createElement(Td,{isNew:!(e.person&&e.person.id)}))}function Ld(e){var t=Object(v.useDispatch)(),n=ae.useBasicFetch(Ad(e.id));return l.createElement(l.Fragment,null,!!n.data&&l.createElement(kd,{person:n.data,savePerson:function(n,r){return ae.fetch(t,wd(e.id,n,r))}}))}function _d(){var e=Object(v.useDispatch)();return l.createElement(kd,{savePerson:function(t,n){ae.fetch(e,jd(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.PEOPLE,action:i.People.EDIT_PERSON,args:[e.id]})}),n))}})}var xd=c.PEOPLE,Pd=function(e){return{application:xd,action:i.People.EDIT_PERSON,args:[e.id]}},Nd=function(e){return p.AppLinkHelper.trigger(Pd(e))};function Rd(e){var t=ae.useBasicFetch(Cd(e.cursor));return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3 w-50"},l.createElement(ks,{placeholder:"Search for a person",onSuggestionSelected:Nd,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/people/instant/raw","?q=").concat(e)},activationLength:2})),l.createElement(zu,{collection:t&&t.data,collectionAppLink:{application:xd,action:i.People.PEOPLE},newObjectAppLink:{application:xd,action:i.People.NEW_PERSON},getObjectAppLink:Pd,objectName:"Person"}))}function Dd(e){return(Dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Md(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ud(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fd(e,t,n){return t&&Ud(e.prototype,t),n&&Ud(e,n),e}function Vd(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bd(e,t)}function Bd(e,t){return(Bd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qd(e);if(t){var i=qd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hd(this,n)}}function Hd(e,t){return!t||"object"!==Dd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jd,$d=function(e){Vd(n,e);var t=zd(n);function n(){return Md(this,n),t.apply(this,arguments)}return Fd(n,[{key:"channelName",get:function(){return c.PEOPLE}},{key:"appRoutes",get:function(){return{"manage/people(/)":"people","manage/people/new(/)":"newPerson","manage/people/:id(/)":"editPerson"}}}]),n}(p.AppRouter),Kd=function(e){Vd(n,e);var t=zd(n);function n(){return Md(this,n),t.apply(this,arguments)}return Fd(n,[{key:"people",value:function(e){var t=e.cursor;this.layout.showChildView(T,l.createElement(Rd,{cursor:t}))}},{key:"newPerson",value:function(){this.layout.showChildView(T,l.createElement(_d,null))}},{key:"editPerson",value:function(e){this.layout.showChildView(T,l.createElement(Ld,{id:e}))}},{key:"name",get:function(){return"People Application"}},{key:"channelName",get:function(){return c.PEOPLE}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return $d}}]),n}(p.Application),Yd=function(e,t,n,r,i){return{url:"/api/image/upload?type=".concat(t),key:"upload:image",data:e,type:ce.a.POST,success:n,error:r,always:i}},Wd=n(206),Zd=n.n(Wd);function Gd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e[e.NoRestrictions=0]="NoRestrictions",e[e.RestrictToCanvas=1]="RestrictToCanvas"}(Jd||(Jd={}));var Xd=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function em(e){var t=e.dataUrl,n=e.minHeight,r=e.minWidth,i=e.onCrop,o=e.onCancel,a=l.useRef(),c=l.useRef(),s=Gd(l.useState(!1),2),u=s[0],f=s[1],p=Gd(l.useState(!1),2),d=p[0],h=p[1];return l.useEffect((function(){var e=new Image;e.src=t;var i=a.current.offsetWidth/e.width;return c.current=new Zd.a(a.current,{viewMode:Jd.RestrictToCanvas,autoCropArea:1,aspectRatio:r/n,minCropBoxWidth:r*i,minCropBoxHeight:n*i,ready:function(){return f(!0)}}),function(){return c.current.destroy()}}),[]),l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-3"},l.createElement("img",{ref:a,src:t,className:"img img-fluid"})),l.createElement("div",{className:"d-flex justify-content-end border-top pt-3"},l.createElement(Ti.Button,{variant:"link",onClick:o},"Cancel"),l.createElement(Kl,{onClick:function(){if(u){h(!0);var e=c.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(Xd);if(t)return t[1]}(t));m(i)&&i(e)}},disabled:!u,showSpinner:d},"Crop")))}function tm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rm(e){var t=Object(v.useDispatch)(),n=l.useContext(Eu),r=n.getDataUrl,i=n.setImage,o=tm(l.useState(r()),1)[0],a=tm(l.useState(!1),2),c=a[0],s=a[1];return l.createElement(qf,{title:"Crop Image",size:e.popupSize,closePopup:e.closePopup,onEntered:function(){return s(!0)}},c&&l.createElement(em,{dataUrl:o,minWidth:vu[e.imageType].width,minHeight:vu[e.imageType].height,onCrop:function(n){ae.fetch(t,Yd(n,e.imageType,(function(e){return i(e)}),null,e.closePopup))},onCancel:e.closePopup}))}var im=function(e){var t=e.children;return l.createElement(Ou,null,t)};function om(e){var t=e.page,n=e.totalPages,r=ho.isNumber(t)&&t>0&&t<n&&t+1,i=ho.isNumber(t)&&t>1&&t-1,o={};if(r&&r<=n&&(o.next=r.toString()),i&&(o.previous=i.toString()),!Ci.a.isEmpty(o))return o}var am,cm={convertLegacyPaginatedCollection:function(e){if(e)return{data:e.data,pagination:{cursors:om(e.pagination),limit:e.pagination.pageSize}}}};!function(e){e.Developer="Curator Devs",e.Content="Content",e.Curator="Curators",e.Support="Support",e.SalesSupport="Sales Support"}(am||(am={}));var sm=function(){return[{value:"protected",access:"r"}]},um=function(e){return[am.Developer,am.Content].some((function(t){return fl(e).includes(t)}))},lm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1";return{key:"playlists:".concat(e),url:"/ajax/playlists/curators?page=".concat(e),formatData:cm.convertLegacyPaginatedCollection}},fm=function(e,t){var n="/api/domain/v1/search/playlists?query=".concat(e);return t&&(n+="&filter={page:".concat(t,"}")),{key:"playlists:search:".concat(e).concat(t?":".concat(t):""),url:n,formatData:cm.convertLegacyPaginatedCollection}},pm=function(e){return{key:"playlist:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=cover,banner")}},dm=function(e){var t=e.slice().sort();return{key:"playlists:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},mm=function(e,t,n,r,i){return{url:"/api/master/v2/objects/".concat(t,"/playlists"),key:"playlist",data:Object.assign(Object.assign({},e),{permissions:sm()}),type:ce.a.POST,invalidationKeys:"playlists",success:n,error:r,always:i}},hm=function(e,t,n,r,i){return{url:"/api/master/v2/objects/".concat(e),key:"update:playlist:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}},ym=function(e,t,n,r){return{url:"/api/master/v1/playlists/".concat(e),key:"delete:playlist:".concat(e),type:ce.a.DELETE,invalidationKeys:"playlists",success:t,error:n,always:r}},vm=function(e){return{key:"playlist:".concat(e,":videos"),url:"/api/master/v2/objects/".concat(e,"/videos?query={orderBy:orderindex,limit:100}")}},bm=function(e,t,n,r){return{key:"reorder:playlist",url:"/api/master/v1/objects/".concat(e,"/videos/reorder"),data:t,type:ce.a.PUT,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r}},gm=function(e,t,n,r,i){return{key:"remove:playlist:video",url:"/api/master/v1/playlists/".concat(e,"/dissociate/").concat(t),type:ce.a.DELETE,invalidationKeys:"playlist:".concat(e,":videos"),success:n,error:r,always:i}};function Sm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Em(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Em(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Em(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Om(e){var t=Object(v.useDispatch)(),n=zf(),r=Sm(l.useState(!1),2),o=r[0],a=r[1],s=ae.useBasicFetch(pm(e.playlistId));var u=[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),ae.fetch(t,ym(e.playlistId,(function(){n.success("Successfully deleted playlist."),p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:i.Playlists.PLAYLISTS})}),(function(){a(!1),n.error("Failed to delete playlist.")}),e.closePopup))},buttonText:"Yes, delete playlist",isSpinnerButton:!0,showSpinner:o}],f=!!s.data;return l.createElement(qf,{title:"Delete Playlist",closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,s.data.name),"?"),l.createElement("p",null,"Please ensure it is not being used in any widgets.")),l.createElement($f,{buttons:u})))}var Cm="locale",Am="phrases",jm=function(e,t){return{url:"/api/currentUser",key:"currentuser",normalizeOptions:{namespace:"currentuser"},success:e,error:t}},wm=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:wi.string().trim().max(65535,"Description is too long").default(""),cover:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),banner:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown()}).noUnknown(),Im=function(e,t){var n=c.PLAYLISTS,r=i.Playlists,o=[{label:"Edit Playlist Details",appLink:{application:n,action:r.EDIT_PLAYLIST,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_PLAYLIST_VIDEOS,args:[t]}}];return um(e)&&o.push.apply(o,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_PLAYLIST_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_PLAYLIST_AUDIENCES,args:[t]}}]),o};function Tm(e){var t=ci(),n=Ui(t);return l.createElement(vi,null,l.createElement(Ri,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this playlist",autoFocus:!0}),l.createElement(Ri,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this playlist here"}),l.createElement(Fu,{imageType:nu.Covers,fieldName:"cover",application:c.PLAYLISTS,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement(Fu,{imageType:nu.Banners,fieldName:"banner",application:c.PLAYLISTS,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&l.createElement(Qu,{actions:e.actions})))}function km(e){var t,n=e.playlist&&e.playlist.id;return l.createElement(ji,{initialValues:e.playlist,validationSchema:wm,onSubmit:e.savePlaylist},l.createElement(Tm,{id:n,actions:!!n&&(t=n,[{label:"Delete playlist",appLink:{application:c.PLAYLISTS,action:i.Playlists.DELETE_PLAYLIST,args:[t]},className:"text-danger"}])}))}function Lm(e){return l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:Im(e.currentUser,e.playlistId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function _m(e){var t=Object(v.useDispatch)(),n=zf(),r=ae.useBasicFetch(pm(e.playlistId)),o=ae.useBasicFetch(jm());return l.createElement(l.Fragment,null,!!o.data&&l.createElement(Lm,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST,currentUser:o.data}),!!r.data&&l.createElement(km,{playlist:r.data,savePlaylist:function(r,i){ae.fetch(t,hm(e.playlistId,r,(function(){n.success("Successfully updated playlist.")}),(function(){n.error("Failed to update playlist.")}),i))}}))}var xm=function(e,t){var n=e.dataServiceName,r=e.eventPrefix,i=e.fetchData,o=e.setData,a=e.onError,c=e.deleteEventPrefix;if(m(i)){if(m(o)){var s=a&&m(a),u=Tf.getInstance(n),l=Bs.Radio.channel(u.channelName),f="".concat(r,":request"),d="".concat(r,":sync"),h="".concat(r,":error"),y="".concat(r,":invalidate"),v=c&&"".concat(c,":sync"),b=function(){return t(!1)},g=function(){return t(!0)},S=function(){return t(!1)},E=function(){return l.off(y,S)};l.once(f,b),l.once(d,g),l.once(y,S),s&&l.once(h,a),v&&l.once(v,E);var O=i(u);return O&&(t(!0),e.setData(O)),function(){Tf.releaseInstance(n),l.off(f,b),l.off(d,g),l.off(y,S),s&&l.off(h,a),v&&l.off(v,E)}}p.ErrorHelper.throw(new Ji.a("A setData function must be passed to fetch"))}else p.ErrorHelper.throw(new Ji.a("A fetchData function must be passed to fetch"))};function Pm(e){return function(e){if(Array.isArray(e))return Dm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Rm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||Rm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rm(e,t){if(e){if("string"==typeof e)return Dm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dm(e,t):void 0}}function Dm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mm=function(e){return Array(Array.isArray(e)?e.length:0).fill(!1)};function Um(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(Mm(e)),i=Nm(r,2),o=i[0],a=i[1];l.useEffect((function(){a(Mm(e))}),Pm(t)),l.useEffect((function(){if(n){var t=[];return e&&e.forEach((function(e,n){t.push(xm(e,(function(e){e!==o[n]&&a(rp.a.cloneAndReplaceAtIdx(o,n,e))})))})),function(){return t.forEach((function(e){return e()}))}}}),[o,n])}function Fm(e){return function(e){if(Array.isArray(e))return zm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Bm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||Bm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bm(e,t){if(e){if("string"==typeof e)return zm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zm(e,t):void 0}}function zm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hm(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l.useState(!1),i=Vm(r,2),o=i[0],a=i[1];l.useEffect((function(){a(!1)}),Fm(t)),l.useEffect((function(){if(n)return xm(e,a)}),[o,n])}var qm=function(e,t,n){return function(r){return e((function(e){var i=m(n)?n:h();return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i(r,e)))}))}};function Jm(e){return(Jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $m(e){return function(e){if(Array.isArray(e))return Km(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Km(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Km(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Km(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wm(e,t){return(Wm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xm(e);if(t){var i=Xm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gm(this,n)}}function Gm(e,t){return!t||"object"!==Jm(t)&&"function"!=typeof t?Qm(e):t}function Qm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh,th,nh,rh,ih,oh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wm(e,t)}(o,e);var t,n,r,i=Zm(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),d.result(Qm(t),"name")||zi.c.throw(new Ji.a("Must provide a name when extending BaseDataService")),d.result(Qm(t),"channelName")||zi.c.throw(new Ji.a("Must provide a channelName for ".concat(d.result(Qm(t),"name"))));var n=[].concat($m(t.defaultProps),$m(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=o,(n=[{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=this.getEventNames(i),a=o.syncEvent,c=o.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),a,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),c,r),d.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),c,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),a,n),d.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=e.resource,a=e.formatData,c=e.expiryTime,s=e.successHandler,u=e.errorHandler,l=e.bootstrapName,f=this.getEventNames(i),p=f.syncEvent,m=f.requestEvent,h=f.successEvent,y=f.errorEvent,v=this.getChannel(),b=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(i,this.bootstrapData[l],a,{openRequest:!1,timestamp:b}),delete this.bootstrapData[l]);var g,S=this.cache.get(i);S&&(g=S.data);var E=S&&S.openRequest,O=this.isExpired(i,c);if(E&&(this.listenToOnce(v,p,(function(e){d.isFunction(r)&&t.stopListening(t.getChannel(),y,r),d.isFunction(n)&&n(e)})),this.listenToOnce(v,y,(function(){d.isFunction(n)&&t.stopListening(t.getChannel(),p,n),d.isFunction(r)&&r()}))),this.cache.has(i)&&!O||(v.trigger(m),this.listenToResponse({eventPrefix:i,formatData:a,cacheOptions:{timestamp:b},callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.cacheData(i,null,null,{openRequest:!0,timestamp:b}),this.dataProvider.read(o,{channel:this.getTransportChannel(),successEvent:h,errorEvent:y})),g&&d.isFunction(n)&&!O&&n(g),g)return g}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,i=e.formatData,o=e.callback,a=e.errorCallback,c=e.invalidationKeys,s=e.successHandler,u=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:c,callback:o,errorCallback:a,successHandler:s,errorHandler:u}),this.dataProvider.create(n,r,{channel:h,successEvent:p,errorEvent:d})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,i=e.resource,o=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,s=e.errorHandler,u=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,m=this.getChannel(),h=this.getTransportChannel();m.trigger(f),this.listenToResponse({eventPrefix:a,formatData:o,invalidationKeys:c,callback:n,errorCallback:r,successHandler:u,errorHandler:s}),this.dataProvider.update(i,t,{channel:h,successEvent:p,errorEvent:d})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,i=e.errorCallback,o=e.invalidationKeys,a=e.successHandler,c=e.errorHandler,s=this.getEventNames(t),u=s.successEvent,l=s.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:o,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:u,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,r=e.formatData,i=e.callback,o=e.errorCallback,a=e.successHandler,c=e.errorHandler,s=e.invalidationKeys,u=e.cacheOptions,l=void 0===u?{}:u,f=this.getEventNames(n),p=f.syncEvent,m=f.successEvent,h=f.errorEvent,y=f.successAlertEvent,v=f.errorAlertEvent,b=this.getChannel(),g=this.getTransportChannel(),S=this.getAlertChannel();d.isFunction(i)&&this.listenToOnce(b,p,i),d.isFunction(o)&&this.listenToOnce(b,h,o),this.stopListening(S,y),this.stopListening(S,v),d.isFunction(a)&&this.listenToOnce(S,y,a),d.isFunction(c)&&this.listenToOnce(S,v,c),!d.isFunction(c)&&!1!==c&&d.isFunction(this.defaultErrorHandler)&&this.listenToOnce(S,v,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,m,(function(e){t.stopListening(b,h,o);for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];S.trigger.apply(S,[y,e].concat(a));var u=l.noCache?t.formatData(e,r):t.cacheData(n,e,r);l.clearCacheKey&&t.cache.remove(n),b.trigger(p,u),s&&s.length&&t.cache.invalidate(s,(function(e){return b.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,h,(function(){var e;t.stopListening(b,p,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);S.trigger(v,r),b.trigger(h,r),l.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.openRequest,o=void 0!==i&&i,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:a,cursors:c,openRequest:o}),s}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:d.isUndefined(t.offset)||d.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return d.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){d.isFunction(e)&&e(t)},r=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return Bs.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return Bs.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,r=e.totalItems,i=r>0&&t<r&&t+n,o=r>0&&t>0&&Math.max(t-n,0),a={};if(i&&i<r&&(a.next=i.toString()),d.isNumber(o)&&(a.previous=o.toString()),!d.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=d.isNumber(t)&&t>0&&t<n&&t+1,i=d.isNumber(t)&&t>1&&t-1,o={};if(r&&r<=n&&(o.next=r.toString()),i&&(o.previous=i.toString()),!d.isEmpty(o))return o}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&Ym(t.prototype,n),r&&Ym(t,r),o}(Bi.a),ah=n(46),ch={SHORT:120,STANDARD:600};!function(e){e[e.Subject=0]="Subject",e[e.Classification=1]="Classification",e[e.Level=2]="Level",e[e.Audience=3]="Audience"}(eh||(eh={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(th||(th={})),function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(nh||(nh={})),function(e){e.Root="0"}(rh||(rh={})),function(e){e.Root="root"}(ih||(ih={}));var sh,uh=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),backboneAudienceIds:wi.array().of(wi.string()).required("A level is required").default([])}).noUnknown();!function(e){e.Subject="Subject",e.Topic="Topic"}(sh||(sh={}));var lh=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentIds:wi.array().of(wi.string()).default([ih.Root]),backboneClassificationIds:wi.array().of(wi.string()).min(1,"A classification must be mapped to at least one subject").required("A classification must be mapped to at least one subject").default([]),type:wi.mixed().required("Type is required").default(sh.Subject),emphasize:wi.boolean().default(!1),comingSoon:wi.boolean().default(!0),canBePreferred:wi.boolean().default(!1),cover:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),banner:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown()}).noUnknown(),fh=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default("")}).noUnknown(),ph=wi.object().shape({name:wi.string().max(255,"Name is too long").required("Name is required"),description:wi.string().max(65535,"Description is too long").required("Description is required")}),dh=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),parentId:wi.string().default(rh.Root)}).noUnknown(),mh={singularizeMemberType:function(e){switch(e){case th.Playlists:return"playlist";case th.Series:return"series";case th.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case th.Playlists:return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:n};case th.Series:return{application:c.SERIES,action:i.Series.EDIT_SERIES,args:n};case th.Videos:return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(mh.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===eh.Subject?i.Subjects.REMOVE_SUBJECT_MEMBER:i.Subjects.REMOVE_CLASSIFICATION_MEMBER,args:[e,r,n]},className:"text-danger"}]}},hh=function(){var e=c.SUBJECTS,t=i.Subjects;return[{label:"Classifications",appLink:{application:e,action:t.CLASSIFICATIONS},activeActions:[t.CLASSIFICATIONS,t.PRESENTATION_CLASSIFICATIONS,t.NEW_CLASSIFICATION,t.EDIT_CLASSIFICATION,t.EDIT_CLASSIFICATION_PLAYLISTS,t.EDIT_CLASSIFICATION_SERIES,t.EDIT_CLASSIFICATION_VIDEOS,t.DELETE_CLASSIFICATION,t.REMOVE_CLASSIFICATION_MEMBER]},{label:"Backbone Classifications",appLink:{application:e,action:t.SUBJECTS},activeActions:[t.SUBJECTS,t.NEW_SUBJECT,t.EDIT_SUBJECT,t.EDIT_SUBJECT_PLAYLISTS,t.EDIT_SUBJECT_SERIES,t.EDIT_SUBJECT_VIDEOS,t.SUBJECT_CLASSIFICATIONS,t.DELETE_SUBJECT,t.ADD_SUBJECT_MEMBERS,t.REMOVE_SUBJECT_MEMBER]},{label:"Audiences",appLink:{application:e,action:t.AUDIENCES},activeActions:[t.AUDIENCES,t.PRESENTATION_AUDIENCES,t.NEW_AUDIENCE,t.EDIT_AUDIENCE,t.EDIT_AUDIENCE_PLAYLISTS,t.EDIT_AUDIENCE_SERIES,t.EDIT_AUDIENCE_VIDEOS,t.REMOVE_AUDIENCE_MEMBER]},{label:"Backbone Audiences",appLink:{application:e,action:t.LEVELS},activeActions:[t.LEVELS,t.NEW_LEVEL,t.EDIT_LEVEL,t.LEVEL_AUDIENCES,t.EDIT_LEVEL_PLAYLISTS,t.EDIT_LEVEL_SERIES,t.EDIT_LEVEL_VIDEOS]},{label:"Presentations",appLink:{application:e,action:t.PRESENTATIONS},activeActions:[t.PRESENTATIONS,t.NEW_PRESENTATION,t.EDIT_PRESENTATION]}]},yh=function(e,t){var n=c.SUBJECTS,r=i.Subjects,o=[e];return[{label:"Edit Backbone Classification Details",appLink:{action:r.EDIT_SUBJECT}},{label:"Classifications",appLink:{action:r.SUBJECT_CLASSIFICATIONS}},{label:"Playlists",appLink:{action:r.EDIT_SUBJECT_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_SUBJECT_SERIES}},{label:"Videos",appLink:{action:r.EDIT_SUBJECT_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:o});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},vh=function(e,t){var n=c.SUBJECTS,r=i.Subjects;return[{label:"Edit Classification Details",appLink:{application:n,action:r.EDIT_CLASSIFICATION,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_CLASSIFICATION_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_CLASSIFICATION_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_CLASSIFICATION_VIDEOS,args:[e,t]}}]},bh=function(e,t){var n=c.SUBJECTS,r=i.Subjects,o=[e];return[{label:"Edit Level Details",appLink:{action:r.EDIT_LEVEL}},{label:"Audiences",appLink:{action:r.LEVEL_AUDIENCES}},{label:"Playlists",appLink:{action:r.EDIT_LEVEL_PLAYLISTS}},{label:"Series",appLink:{action:r.EDIT_LEVEL_SERIES}},{label:"Videos",appLink:{action:r.EDIT_LEVEL_VIDEOS}}].map((function(e){var r=Object.assign(Object.assign({},e.appLink),{application:n,args:o});return t&&(r.params={presentationId:t}),{label:e.label,appLink:r}}))},gh=function(e,t){var n=c.SUBJECTS,r=i.Subjects;return[{label:"Edit Audience Details",appLink:{application:n,action:r.EDIT_AUDIENCE,args:[e,t]}},{label:"Playlists",appLink:{application:n,action:r.EDIT_AUDIENCE_PLAYLISTS,args:[e,t]}},{label:"Series",appLink:{application:n,action:r.EDIT_AUDIENCE_SERIES,args:[e,t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_AUDIENCE_VIDEOS,args:[e,t]}}]},Sh={singularizeMemberType:function(e){switch(e){case nh.Playlists:return"playlist";case nh.Series:return"series";case nh.Videos:return"video"}},getMemberAppLink:function(e,t){var n=[t];switch(e){case nh.Playlists:return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:n};case nh.Series:return{application:c.SERIES,action:i.Series.EDIT_SERIES,args:n};case nh.Videos:return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:n}}},getMemberActions:function(e,t,n,r){return[{label:"Remove ".concat(Sh.singularizeMemberType(n)),appLink:{application:c.SUBJECTS,action:t===eh.Level?i.Subjects.REMOVE_LEVEL_MEMBER:i.Subjects.REMOVE_AUDIENCE_MEMBER,args:[e,r,n]},className:"text-danger"}]}};function Eh(e){return(Eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oh(e){return function(e){if(Array.isArray(e))return Ch(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ch(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ah(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wh(e,t){return(wh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ih(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kh(e);if(t){var i=kh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Th(this,n)}}function Th(e,t){return!t||"object"!==Eh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kh(e){return(kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lh=function(){return"/api/subjects/v1/backbone-classifications/tree"},_h=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},xh=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/").concat(t,"?query={limit:100}")},Ph=function(e,t,n){var r="/api/subjects/v1/backbone-classifications/".concat(e,"/classifications"),i=[];return t&&i.push("presentationId=".concat(t)),n&&i.push("query=".concat(n,"{limit:100}")),i.length?"".concat(r,"?").concat(i.join("&")):r},Nh=function(){return"/api/subjects/v1/backbone-classifications"},Rh=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Dh=function(e){return"/api/subjects/v1/backbone-classifications/".concat(e)},Mh=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications")},Uh=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-classifications?addToClassifications=").concat(!!t)},Fh=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?addToClassifications=").concat(!!t)},Vh=function(e,t){return"/api/subjects/v1/backbone-classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Bh=function(){return"/api/subjects/v1/presentations"},zh=function(e){return"/api/subjects/v1/presentations/".concat(e)},Hh=function(){return"/api/subjects/v1/presentations"},qh=function(e){return"/api/subjects/v1/presentations/".concat(e)},Jh=function(e){return"/api/subjects/v1/presentations/".concat(e,"/classifications/tree")},$h=function(e){return"/api/subjects/v1/classifications/".concat(e,"?query=cover,banner,followers")},Kh=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/").concat(t,"?query={limit:100}")},Yh=function(){return"/api/subjects/v1/classifications"},Wh=function(e){return"/api/subjects/v1/classifications/".concat(e)},Zh=function(e){return"/api/subjects/v1/classifications/".concat(e)},Gh=function(e){return"/api/subjects/v1/objects/".concat(e,"/classifications")},Qh=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/classifications?presentationId=").concat(t)},Xh=function(e){return"/api/subjects/v1/classifications/".concat(e,"/objects")},ey=function(e,t){return"/api/subjects/v1/classifications/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},ty=function(){return"/api/subjects/v1/backbone-audiences"},ny=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},ry=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/").concat(t,"?query={limit:100}")},iy=function(e,t,n){var r="/api/subjects/v1/backbone-audiences/".concat(e,"/audiences"),i=[];return t&&i.push("presentationId=".concat(t)),n&&i.push("query=".concat(n,"{limit:100}")),i.length?"".concat(r,"?").concat(i.join("&")):r},oy=function(){return"/api/subjects/v1/backbone-audiences"},ay=function(e){return"/api/subjects/v1/backbone-audiences/".concat(e)},cy=function(e){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences")},sy=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/backbone-audiences?addToAudiences=").concat(!!t)},uy=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?addToAudiences=").concat(!!t)},ly=function(e,t){return"/api/subjects/v1/backbone-audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},fy=function(e){return"/api/subjects/v1/presentations/".concat(e,"/audiences")},py=function(e){return"/api/subjects/v1/audiences/".concat(e)},dy=function(e,t){return"/api/master/v2/objects/".concat(e,"/").concat(t,"?query={limit:100}")},my=function(){return"/api/subjects/v1/audiences"},hy=function(e){return"/api/subjects/v1/audiences/".concat(e)},yy=function(e){return"/api/subjects/v1/audiences/".concat(e)},vy=function(e){return"/api/subjects/v1/objects/".concat(e,"/audiences")},by=function(e,t){return"/api/subjects/v1/objects/".concat(e,"/audiences?presentationId=").concat(t)},gy=function(e){return"/api/subjects/v1/audiences/".concat(e,"/objects")},Sy=function(e,t){return"/api/subjects/v1/audiences/".concat(e,"/objects?").concat(t.map((function(e){return"objectId=".concat(e)})).join("&"))},Ey=function(e,t,n){var r="".concat(o.SUBJECT,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(o.CLASSIFICATIONS),n&&(r+=":".concat(n)),r},Oy=function(e,t,n){var r="".concat(o.LEVEL,":").concat(e);return t&&(r+=":".concat(t)),r+=":".concat(o.AUDIENCES),n&&(r+=":".concat(n)),r},Cy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wh(e,t)}(a,e);var t,n,r,i=Ih(a);function a(){return Ah(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"getPresentations",value:function(e,t){return this.get({resource:Bh(),eventPrefix:o.PRESENTATIONS,expiryTime:ch.STANDARD,callback:e,errorCallback:t})}},{key:"getPresentation",value:function(e,t,n){return this.get({resource:zh(e),eventPrefix:"".concat(o.PRESENTATION,":").concat(e),expiryTime:ch.STANDARD,callback:t,errorCallback:n})}},{key:"createPresentation",value:function(e,t,n){return this.create({resource:Hh(),data:e,callback:t,errorCallback:n,eventPrefix:o.PRESENTATION,invalidationKeys:[o.PRESENTATIONS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully created presentation."),errorHandler:this.alertService.error("Failed to create presentation.")})}},{key:"updatePresentation",value:function(e,t,n,r){return this.update({resource:qh(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(o.UPDATE_PRESENTATION,":").concat(e),invalidationKeys:["".concat(o.PRESENTATION,":").concat(e),o.PRESENTATIONS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully updated presentation."),errorHandler:this.alertService.error("Failed to update presentation.")})}},{key:"getSubjectTree",value:function(e,t){return this.get({resource:Lh(),formatData:function(e){return{children:e,name:rh.Root,id:null}},eventPrefix:o.SUBJECTS,expiryTime:ch.STANDARD,callback:e,errorCallback:t})}},{key:"getSubject",value:function(e,t,n){return this.get({resource:_h(e),eventPrefix:"".concat(o.SUBJECT,":").concat(e),expiryTime:ch.STANDARD,callback:t,errorCallback:n})}},{key:"getSubjectMemberIds",value:function(e,t,n,r){return this.get({resource:xh(e,t),eventPrefix:"".concat(o.SUBJECT,":").concat(e,":").concat(t),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"getSubjectClassifications",value:function(e,t,n,r,i){return this.get({resource:Ph(e,t,n),eventPrefix:Ey(e,t,n),expiryTime:ch.STANDARD,callback:r,errorCallback:i})}},{key:"createSubject",value:function(e,t,n){return this.create({resource:Nh(),data:e,callback:t,errorCallback:n,eventPrefix:o.SUBJECT,invalidationKeys:[o.SUBJECTS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully created subject."),errorHandler:this.alertService.error("Failed to create subject.")})}},{key:"updateSubject",value:function(e,t,n,r){return this.update({resource:Rh(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(o.UPDATE_SUBJECT,":").concat(e),invalidationKeys:["".concat(o.SUBJECT,":").concat(e),o.SUBJECTS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully updated subject."),errorHandler:this.alertService.error("Failed to save subject.")})}},{key:"deleteSubject",value:function(e,t,n){var r=this;return this.delete({resource:Dh(e),callback:t,errorCallback:n,eventPrefix:o.DELETE_SUBJECT,invalidationKeys:["".concat(o.SUBJECT,":").concat(e),o.SUBJECTS],successHandler:this.alertService.success("Successfully deleted subject."),errorHandler:function(e){var t=(null==e?void 0:e.code)===ah.a.Conflict?"Cannot delete a subject with child subjects and/or classifications.":"Failed to delete subject.";r.alertService.error(t)()}})}},{key:"getObjectSubjects",value:function(e,t,n,r){return this.get({resource:Mh(e),eventPrefix:"".concat(t,":").concat(e,":").concat(o.SUBJECTS),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectSubjects",value:function(e,t,n,r,i,a){var c=mh.singularizeMemberType(n),s=["".concat(n,":").concat(e,":").concat(o.SUBJECTS)];return r&&s.push("".concat(n,":").concat(e,":").concat(o.CLASSIFICATIONS)),s.push.apply(s,Oh(t.map((function(e){return"".concat(o.SUBJECTS,":").concat(e,":").concat(n)})))),this.update({resource:Uh(e,r),data:t,callback:i,errorCallback:a,eventPrefix:"".concat(o.UPDATE_OBJECT_SUBJECTS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," subjects.")),errorHandler:this.alertService.error("Failed to update ".concat(c," subjects."))})}},{key:"addObjectsToSubject",value:function(e,t,n,r,i,a){var c=1===t.length?mh.singularizeMemberType(n):n,s=["".concat(o.SUBJECT,":").concat(e,":").concat(n)].concat(Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.SUBJECTS)}))),Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.CLASSIFICATIONS)}))));return this.create({resource:Fh(e,r),data:t,callback:i,errorCallback:a,eventPrefix:"".concat(o.ADD_TO_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to subject.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to subject."))})}},{key:"removeObjectsFromSubject",value:function(e,t,n,r,i){var a=1===t.length?mh.singularizeMemberType(n):n,c=["".concat(o.SUBJECT,":").concat(e,":").concat(n)].concat(Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.SUBJECTS)}))));return this.delete({resource:Vh(e,t),callback:r,errorCallback:i,eventPrefix:"".concat(o.REMOVE_FROM_SUBJECT,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(a," from subject.")),errorHandler:this.alertService.error("Failed to remove ".concat(a," from subject."))})}},{key:"getClassificationTree",value:function(e,t,n){return this.get({resource:Jh(e),formatData:function(e){return{children:e,name:ih.Root,id:null}},eventPrefix:"".concat(o.CLASSIFICATIONS,":").concat(e),expiryTime:ch.STANDARD,callback:t,errorCallback:n})}},{key:"getClassification",value:function(e,t,n){return this.get({resource:$h(e),eventPrefix:"".concat(o.CLASSIFICATION,":").concat(e),expiryTime:ch.STANDARD,callback:t,errorCallback:n})}},{key:"getClassificationMembers",value:function(e,t,n,r){return this.get({resource:Kh(e,t),eventPrefix:"".concat(o.CLASSIFICATION,":").concat(e,":").concat(t),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"createClassification",value:function(e,t,n){return this.create({resource:Yh(),data:e,callback:t,errorCallback:n,eventPrefix:o.CLASSIFICATION,invalidationKeys:[o.CLASSIFICATIONS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully created classification."),errorHandler:this.alertService.error("Failed to create classification.")})}},{key:"updateClassification",value:function(e,t,n,r){return this.update({resource:Wh(e),data:Ci.a.omit(t,["followers"]),callback:n,errorCallback:r,eventPrefix:"".concat(o.UPDATE_CLASSIFICATION,":").concat(e),invalidationKeys:["".concat(o.CLASSIFICATION,":").concat(e),o.CLASSIFICATIONS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully updated classification."),errorHandler:this.alertService.error("Failed to save classification.")})}},{key:"deleteClassification",value:function(e,t,n){return this.delete({resource:Zh(e),callback:t,errorCallback:n,eventPrefix:o.DELETE_CLASSIFICATION,invalidationKeys:["".concat(o.CLASSIFICATION,":").concat(e),o.CLASSIFICATIONS],successHandler:this.alertService.success("Successfully deleted classification"),errorHandler:this.alertService.error("Failed to delete classification")})}},{key:"getObjectClassifications",value:function(e,t,n,r){return this.get({resource:Gh(e),eventPrefix:"".concat(t,":").concat(e,":").concat(o.CLASSIFICATIONS),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectClassifications",value:function(e,t,n,r,i,a){var c=mh.singularizeMemberType(r),s=["".concat(r,":").concat(e,":").concat(o.CLASSIFICATIONS)];return s.push.apply(s,Oh(n.map((function(e){return"".concat(o.CLASSIFICATION,":").concat(e,":").concat(r)})))),this.update({resource:Qh(e,t),data:n,callback:i,errorCallback:a,eventPrefix:"".concat(o.UPDATE_OBJECT_CLASSIFICATIONS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," classifications.")),errorHandler:this.alertService.error("Failed to update ".concat(c," classifications."))})}},{key:"addObjectsToClassification",value:function(e,t,n,r,i,a,c){var s=1===t.length?mh.singularizeMemberType(n):n,u=["".concat(o.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&u.push(Ey(r,i,n)),u.push.apply(u,Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.CLASSIFICATIONS)})))),this.create({resource:Xh(e),data:t,callback:a,errorCallback:c,eventPrefix:"".concat(o.ADD_TO_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to classification.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to classification."))})}},{key:"removeObjectsFromClassification",value:function(e,t,n,r,i,a,c){var s=1===t.length?mh.singularizeMemberType(n):n,u=["".concat(o.CLASSIFICATION,":").concat(e,":").concat(n)];return r&&u.push(Ey(r,i,n)),u.push.apply(u,Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.CLASSIFICATIONS)})))),this.delete({resource:ey(e,t),callback:a,errorCallback:c,eventPrefix:"".concat(o.REMOVE_FROM_CLASSIFICATION,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(s," from classification.")),errorHandler:this.alertService.error("Failed to remove ".concat(s," from classification."))})}},{key:"getLevels",value:function(e,t){return this.get({resource:ty(),eventPrefix:o.LEVELS,expiryTime:ch.STANDARD,callback:e,errorCallback:t})}},{key:"getLevel",value:function(e,t,n){return this.get({resource:ny(e),eventPrefix:"".concat(o.LEVEL,":").concat(e),expiryTime:ch.STANDARD,callback:t,errorCallback:n})}},{key:"getLevelMemberIds",value:function(e,t,n,r){return this.get({resource:ry(e,t),eventPrefix:"".concat(o.LEVEL,":").concat(e,":").concat(t),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"getLevelAudiences",value:function(e,t,n,r,i){return this.get({resource:iy(e,t,n),eventPrefix:Oy(e,t,n),expiryTime:ch.STANDARD,callback:r,errorCallback:i})}},{key:"createLevel",value:function(e,t,n){return this.create({resource:oy(),data:e,callback:t,errorCallback:n,eventPrefix:o.LEVEL,invalidationKeys:[o.LEVELS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully created level."),errorHandler:this.alertService.error("Failed to create level.")})}},{key:"updateLevel",value:function(e,t,n,r){return this.update({resource:ay(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(o.UPDATE_LEVEL,":").concat(e),invalidationKeys:["".concat(o.LEVEL,":").concat(e),o.LEVELS],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully updated level."),errorHandler:this.alertService.error("Failed to save level.")})}},{key:"getObjectLevels",value:function(e,t,n,r){return this.get({resource:cy(e),eventPrefix:"".concat(t,":").concat(e,":").concat(o.LEVELS),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectLevels",value:function(e,t,n,r,i,a){var c=mh.singularizeMemberType(n),s=["".concat(n,":").concat(e,":").concat(o.LEVELS)];return r&&s.push("".concat(n,":").concat(e,":").concat(o.AUDIENCES)),this.update({resource:sy(e,r),data:t,callback:i,errorCallback:a,eventPrefix:"".concat(o.UPDATE_OBJECT_LEVELS,":").concat(e),invalidationKeys:s,successHandler:this.alertService.success("Successfully updated ".concat(c," levels.")),errorHandler:this.alertService.error("Failed to update ".concat(c," levels."))})}},{key:"addObjectsToLevel",value:function(e,t,n,r,i,a){var c=1===t.length?Sh.singularizeMemberType(n):n,s=["".concat(o.LEVEL,":").concat(e,":").concat(n)].concat(Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.LEVELS)}))),Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.AUDIENCES)}))));return this.create({resource:uy(e,r),data:t,callback:i,errorCallback:a,eventPrefix:"".concat(o.ADD_TO_LEVEL,":").concat(e,":").concat(n),invalidationKeys:s,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(c," to level.")),errorHandler:this.alertService.error("Failed to add ".concat(c," to level."))})}},{key:"removeObjectsFromLevel",value:function(e,t,n,r,i){var a=1===t.length?Sh.singularizeMemberType(n):n,c=["".concat(o.LEVEL,":").concat(e,":").concat(n)].concat(Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.LEVELS)}))));return this.delete({resource:ly(e,t),callback:r,errorCallback:i,eventPrefix:"".concat(o.REMOVE_FROM_LEVEL,":").concat(e,":").concat(n),invalidationKeys:c,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(a," from level.")),errorHandler:this.alertService.error("Failed to remove ".concat(a," from level."))})}},{key:"getAudiences",value:function(e,t,n){return this.get({resource:fy(e),callback:t,errorCallback:n,eventPrefix:"".concat(o.AUDIENCES,":").concat(e),expiryTime:ch.STANDARD})}},{key:"getAudience",value:function(e,t,n){return this.get({resource:py(e),callback:t,errorCallback:n,eventPrefix:"".concat(o.AUDIENCE,":").concat(e),expiryTime:ch.STANDARD})}},{key:"getAudienceMembers",value:function(e,t,n,r){return this.get({resource:dy(e,t),eventPrefix:"".concat(o.AUDIENCE,":").concat(e,":").concat(t),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"createAudience",value:function(e,t,n){return this.create({resource:my(),data:e,callback:t,errorCallback:n,eventPrefix:o.AUDIENCE,invalidationKeys:[o.AUDIENCES],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully created audience."),errorHandler:this.alertService.error("Failed to create audience.")})}},{key:"updateAudience",value:function(e,t,n,r){return this.update({resource:hy(e),data:t,callback:n,errorCallback:r,eventPrefix:"".concat(o.UPDATE_AUDIENCE,":").concat(e),invalidationKeys:["".concat(o.AUDIENCE,":").concat(e),o.AUDIENCES],expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully updated audience."),errorHandler:this.alertService.error("Failed to update audience.")})}},{key:"deleteAudience",value:function(e,t,n){return this.delete({resource:yy(e),callback:t,errorCallback:n,eventPrefix:o.DELETE_AUDIENCE,invalidationKeys:["".concat(o.AUDIENCE,":").concat(e),o.AUDIENCES],successHandler:this.alertService.success("Successfully deleted audience"),errorHandler:this.alertService.error("Failed to delete audience")})}},{key:"getObjectAudiences",value:function(e,t,n,r){return this.get({resource:vy(e),eventPrefix:"".concat(t,":").concat(e,":").concat(o.AUDIENCES),expiryTime:ch.STANDARD,callback:n,errorCallback:r})}},{key:"updateObjectAudiences",value:function(e,t,n,r,i,a){var c=mh.singularizeMemberType(r);return this.update({resource:by(e,t),data:n,callback:i,errorCallback:a,eventPrefix:"".concat(o.UPDATE_OBJECT_AUDIENCES,":").concat(e),invalidationKeys:["".concat(r,":").concat(e,":").concat(o.AUDIENCES)],successHandler:this.alertService.success("Successfully updated ".concat(c," audiences.")),errorHandler:this.alertService.error("Failed to update ".concat(c," audiences."))})}},{key:"addObjectsToAudience",value:function(e,t,n,r,i,a,c){var s=1===t.length?Sh.singularizeMemberType(n):n,u=["".concat(o.AUDIENCE,":").concat(e,":").concat(n)];return r&&u.push(Oy(r,i,n)),u.push.apply(u,Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.AUDIENCES)})))),this.create({resource:gy(e),data:t,callback:a,errorCallback:c,eventPrefix:"".concat(o.ADD_TO_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully added ".concat(s," to audience.")),errorHandler:this.alertService.error("Failed to add ".concat(s," to audience."))})}},{key:"removeObjectsFromAudience",value:function(e,t,n,r,i,a,c){var s=1===t.length?Sh.singularizeMemberType(n):n,u=["".concat(o.AUDIENCE,":").concat(e,":").concat(n)];return r&&u.push(Oy(r,i,n)),u.push.apply(u,Oh(t.map((function(e){return"".concat(n,":").concat(e,":").concat(o.AUDIENCES)})))),this.delete({resource:Sy(e,t),callback:a,errorCallback:c,eventPrefix:"".concat(o.REMOVE_FROM_AUDIENCE,":").concat(e,":").concat(n),invalidationKeys:u,expiryTime:ch.STANDARD,successHandler:this.alertService.success("Successfully removed ".concat(s," from audience.")),errorHandler:this.alertService.error("Failed to remove ".concat(s," from audience."))})}},{key:"name",get:function(){return u.SUBJECT}},{key:"channelName",get:function(){return s.SUBJECT}}])&&jh(t.prototype,n),r&&jh(t,r),a}(oh),Ay={dataServiceName:u.SUBJECT,dataChannelName:s.SUBJECT},jy={getSubjectTreeFetchOptions:function(e,t){return Object.assign(Object.assign({},Ay),{eventPrefix:o.SUBJECTS,fetchData:function(e){return e.getSubjectTree()},setData:e,onError:t})},getSubjectFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.SUBJECT,":").concat(e),fetchData:function(t){return t.getSubject(e)},setData:t,onError:n,deleteEventPrefix:o.DELETE_SUBJECT})},getSubjectMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.SUBJECT,":").concat(e,":").concat(t),fetchData:function(n){return n.getSubjectMemberIds(e,t)},setData:n,onError:r})},getSubjectClassificationFetchOptions:function(e,t,n,r,i){return Object.assign(Object.assign({},Ay),{eventPrefix:Ey(e,n,r),fetchData:function(t){return t.getSubjectClassifications(e,n,r)},setData:t,onError:i})},getObjectSubjectsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(t,":").concat(e,":").concat(o.SUBJECTS),fetchData:function(n){return n.getObjectSubjects(e,t)},setData:n,onError:r})},getPresentationsFetchOptions:function(e,t){return Object.assign(Object.assign({},Ay),{eventPrefix:o.PRESENTATIONS,fetchData:function(e){return e.getPresentations()},setData:e,onError:t})},getPresentationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.PRESENTATION,":").concat(e),fetchData:function(t){return t.getPresentation(e)},setData:t,onError:n})},getClassificationTreeFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.CLASSIFICATIONS,":").concat(e),fetchData:function(t){return t.getClassificationTree(e)},setData:t,onError:n})},getClassificationFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.CLASSIFICATION,":").concat(e),fetchData:function(t){return t.getClassification(e)},setData:t,onError:n,deleteEventPrefix:o.DELETE_CLASSIFICATION})},getClassificationMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.CLASSIFICATION,":").concat(e,":").concat(t),fetchData:function(n){return n.getClassificationMembers(e,t)},setData:n,onError:r})},getObjectClassificationsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(t,":").concat(e,":").concat(o.CLASSIFICATIONS),fetchData:function(n){return n.getObjectClassifications(e,t)},setData:n,onError:r})},getLevelsFetchOptions:function(e,t){return Object.assign(Object.assign({},Ay),{eventPrefix:o.LEVELS,fetchData:function(e){return e.getLevels()},setData:e,onError:t})},getLevelFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.LEVEL,":").concat(e),fetchData:function(t){return t.getLevel(e)},setData:t,onError:n})},getLevelMemberIdsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.LEVEL,":").concat(e,":").concat(t),fetchData:function(n){return n.getLevelMemberIds(e,t)},setData:n,onError:r})},getLevelAudiencesFetchOptions:function(e,t,n,r,i){return Object.assign(Object.assign({},Ay),{eventPrefix:Oy(e,n,r),fetchData:function(t){return t.getLevelAudiences(e,n,r)},setData:t,onError:i})},getObjectLevelsFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(t,":").concat(e,":").concat(o.LEVELS),fetchData:function(n){return n.getObjectLevels(e,t)},setData:n,onError:r})},getAudiencesFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.AUDIENCES,":").concat(e),fetchData:function(t){return t.getAudiences(e)},setData:t,onError:n})},getAudienceFetchOptions:function(e,t,n){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.AUDIENCE,":").concat(e),fetchData:function(t){return t.getAudience(e)},setData:t,onError:n})},getAudienceMembersFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(o.AUDIENCE,":").concat(e,":").concat(t),fetchData:function(n){return n.getAudienceMembers(e,t)},setData:n,onError:r})},getObjectAudiencesFetchOptions:function(e,t,n,r){return Object.assign(Object.assign({},Ay),{eventPrefix:"".concat(t,":").concat(e,":").concat(o.AUDIENCES),fetchData:function(n){return n.getObjectAudiences(e,t)},setData:n,onError:r})}},wy=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e.id]}},Iy=function(e,t){var n=e.backboneAudienceIds;return t.filter((function(e){return n.includes(e.id)}))};function Ty(e){var t=e.showLevels;return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,"Audiences"),!!t&&l.createElement("th",null,"Mapped Backbone Audience(s)")))}function ky(e){var t,n=e.audience,r=e.levels;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Gs,{appLink:(t=n,{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[t.presentationId,t.masterId]})},n.name)),l.createElement("td",null,r.map((function(e){return l.createElement(Gs,{key:e.id,appLink:wy(e),className:"mr-2"},e.name)}))))}function Ly(e){var t=e.audiences,n=e.levels;return l.createElement(Ti.Table,{responsive:!0,bordered:!0},l.createElement(Ty,{showLevels:!!t.length}),l.createElement("tbody",null,t.length?t.map((function(e){return l.createElement(ky,{key:e.masterId,audience:e,levels:Iy(e,n)})})):l.createElement("tr",null,l.createElement("td",null,"This presentation has no audiences."))))}function _y(e){var t=null===e.masterId||void 0===e.masterId,n=ci(),r=Ui(n);return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this audience",autoFocus:!0}),l.createElement(Ri,{label:"Mapped Level(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Kl,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ti.Button,{as:Gs,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_AUDIENCE,args:[e.presentationId,e.masterId]}},"Delete")))}function xy(e){return l.createElement(ji,{initialValues:e.audience,validationSchema:uh,onSubmit:e.saveAudience},l.createElement(_y,{masterId:e.audience&&e.audience.masterId,presentationId:e.presentationId,levels:e.levels}))}function Py(e){var t=e.objectAudiences,n=e.presentationAudiences;return t.filter((function(e){return n.some((function(t){return t.masterId===e.masterId}))}))}function Ny(e){var t,n,r,i,o,a=mh.singularizeMemberType(e.memberType),c=(n=(t=e).presentationAudiences,r=t.objectLevels,i=t.objectAudiences,o=r.map((function(e){return e.id})),n.filter((function(e){return rp.a.intersection(e.backboneAudienceIds,o).length||i.some((function(t){return t.masterId===e.masterId}))})));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Audiences"),l.createElement("p",null,"Select which backbone audiences this ".concat(a," is mapped to.")),l.createElement("p",null,"To see how backbone audiences correspond to audiences, scroll down to the audience-backbone audience mappings table."),l.createElement(ov,{initialValues:{backboneAudienceIds:e.objectLevels.map((function(e){return e.id}))},saveLevels:e.saveLevels,levels:e.levels,memberType:e.memberType})),l.createElement("h6",null,"Audiences"),l.createElement("p",null,"Select a presentation to view its audiences and map them to this ".concat(a,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(vv,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),l.createElement("p",null,"Audience to backbone audience mappings for this presentation are displayed below."),l.createElement(Ly,{levels:e.levels,audiences:e.presentationAudiences}),l.createElement("p",null,"Only the audiences which are mapped to a backbone audience that this"+" ".concat(a," is mapped to are displayed below.")),!!c.length&&l.createElement(Dy,{initialValues:{audienceIds:Py(e).map((function(e){return e.masterId}))},saveAudiences:e.saveAudiences,audiences:c}))}function Ry(e){var t=ci(),n=Ui(t);return l.createElement(vi,null,l.createElement(Ri,{label:"Audience(s)",as:"select",name:"audienceIds",id:"audience-ids",multiple:!0,size:e.audiences.length,value:t.values.audienceIds},e.audiences.map((function(e){return l.createElement("option",{key:e.masterId,value:e.masterId},e.name)}))),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Audiences")))}function Dy(e){return l.createElement(ji,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.audienceIds;return e.saveAudiences(r,n)},enableReinitialize:!0},l.createElement(Ry,{audiences:e.audiences}))}var My=function(e){return function(t){if(!e)return t.appLink.action===i.Subjects.EDIT_AUDIENCE;switch(e){case nh.Playlists:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_PLAYLISTS;case nh.Series:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_SERIES;case nh.Videos:return t.appLink.action===i.Subjects.EDIT_AUDIENCE_VIDEOS}}};function Uy(e){var t=e.presentation,n=e.audienceId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:gh(t.id,n),isItemActive:My(r)}))):l.createElement(l.Fragment,null)}function Fy(e){var t=e.item,n=e.getItemAppLink,r=e.actions;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Gs,{appLink:n(t)},t.name)),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Qu,{actions:r}))))}function Vy(e){var t=e.items,n=e.memberType,r=e.getItemAppLink,i=e.getActions;if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this audience."));var o="".concat(cl(Sh.singularizeMemberType(n))," Name");return l.createElement(Ti.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,o),m(i)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement(Fy,{item:e,key:e.id,getItemAppLink:r,actions:m(i)&&i(e)})}))))}function By(e){var t=e.item,n=e.getItemAppLink,r=e.actions,i=e.pinState;return l.createElement("tr",null,l.createElement("td",null,l.createElement(Gs,{appLink:n(t)},t.name)),i.isPinnable&&l.createElement("td",null,l.createElement(au,{selected:parseInt(t.id)===parseInt(i.currentPinnedVideo),onToggle:function(e){return i.onChange(e,t.id)},id:t.id})),r&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Qu,{actions:r}))))}function zy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $y(e){var t=e.items,n=e.memberType,r=e.classification,i=e.getItemAppLink,o=e.getActions,a=e.updatePinnedVideo,c=qy(l.useState(!1),2),s=c[0],u=c[1],f=function(e,t){var n=e.pinnedVideoMasterId||null,r=zy(l.useState(n),2),i=r[0],o=r[1];return{currentPinnedVideo:i,onChange:function(e,t){o(e?t:null)},canSubmit:n!==i,isPinnable:t===th.Videos}}(r,n);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this classification."));var p="".concat(cl(mh.singularizeMemberType(n))," Name");return l.createElement(l.Fragment,null,l.createElement(Ti.Table,{responsive:!0},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",null,p),f.isPinnable&&l.createElement("th",null,"Pinned"),m(o)&&l.createElement("th",null))),l.createElement("tbody",null,t.map((function(e){return l.createElement(By,{item:e,key:e.id,getItemAppLink:i,actions:m(o)&&o(e),pinState:f})})))),f.isPinnable&&l.createElement(Kl,{showSpinner:s,onClick:function(){u(!0),a(f.currentPinnedVideo,(function(){return u(!1)}))},disabled:!f.canSubmit||s},"Save"))}function Ky(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wy=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e]}};function Zy(e){var t,n,r,o,a,s,u=ci(),f=Ui(u),p=null===(null===(t=e.classification)||void 0===t?void 0:t.id)||void 0===(null===(n=e.classification)||void 0===n?void 0:n.id),d=!p||!(!u.values.parentIds||!u.values.parentIds.length),m=Ky(l.useState(d),2),h=m[0],y=m[1];l.useEffect((function(){return y(d)}),[null===(r=e.classification)||void 0===r?void 0:r.id,u.values.parentIds]),l.useEffect((function(){u.values.backboneClassificationIds.length&&!u.touched.backboneClassificationIds&&u.setFieldTouched("backboneClassificationIds",!0)}),[u.values.backboneClassificationIds]);var v=function(e){return u.setFieldValue("parentIds",rp.a.addOrRemove(u.values.parentIds.map((function(e){return e.toString()})),e.id.toString()))},b=function(e){return u.setFieldValue("backboneClassificationIds",rp.a.addOrRemove(u.values.backboneClassificationIds.map((function(e){return e.toString()})),e.id.toString()))},g=function(e){return"".concat(ki(u.errors,u.touched,e)," h-auto py-2")};return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:u.values.name,placeholder:"Enter a name for this classification",autoFocus:!0}),l.createElement(Ri,{as:"select",label:"Type",name:"type",id:"type",value:u.values.type},Ci.a.getEnumKeys(sh).map((function(e){return l.createElement("option",{key:e,value:sh[e]},e)}))),l.createElement(Ri,{label:"Coming Soon",name:"comingSoon",id:"comingSoon",type:"checkbox",checked:u.values.comingSoon}),l.createElement(Ri,{label:"Emphasize",name:"emphasize",id:"emphasize",type:"checkbox",checked:u.values.emphasize}),l.createElement(Ri,{label:"Can Be Preferred",name:"canBePreferred",id:"canBePreferred",type:"checkbox",checked:u.values.canBePreferred}),!p&&l.createElement(l.Fragment,null,l.createElement("label",null,"Total Followers:")," ",null===(a=null===(o=e.classification.followers)||void 0===o?void 0:o.data)||void 0===a?void 0:a.length),l.createElement(Ri,{name:"parentIds"},(function(){var t,n,r;return l.createElement("div",{className:g("parentIds")},l.createElement(jl,{label:"Parent Classification(s)",tree:e.classificationTree,selectedIds:u.values.parentIds,onSelect:v,collapse:h,noSelectionMessage:"No parent selected, this will be a root classification.",isNodeDisabled:(n=e.classificationTree,r=null===(t=e.classification)||void 0===t?void 0:t.id,function(e){if(e.id===r)return!0;var t=ll.find(n,r);return!!ll.find(t,e.id)})}))})),l.createElement(Ri,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:g("backboneClassificationIds")},l.createElement(jl,{label:"Mapped Subject(s)",tree:e.subjectTree,selectedIds:u.values.backboneClassificationIds,onSelect:b,collapse:!p,getSelectedItemAppLink:Wy}))})),l.createElement(Fu,{imageType:nu.Covers,fieldName:"cover",application:c.SUBJECTS,uploadAction:i.Subjects.UPLOAD_IMAGE}),l.createElement(Fu,{imageType:nu.Banners,fieldName:"banner",application:c.SUBJECTS,uploadAction:i.Subjects.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Kl,{showSpinner:u.isSubmitting,type:"submit",disabled:!f},p?"Create":"Save"),!p&&l.createElement(Ti.Button,{as:Gs,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_CLASSIFICATION,args:[e.presentationId,null===(s=e.classification)||void 0===s?void 0:s.id]}},"Delete")))}function Gy(e){return l.createElement(ji,{initialValues:e.classification,validationSchema:lh,onSubmit:e.saveClassification},l.createElement(Zy,{presentationId:e.presentationId,classificationTree:e.classificationTree,subjectTree:e.subjectTree,classification:e.classification}))}var Qy=function(e){return function(t){if(!e)return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION;switch(e){case th.Playlists:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;case th.Series:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_SERIES;case th.Videos:return t.appLink.action===i.Subjects.EDIT_CLASSIFICATION_VIDEOS}}};function Xy(e){var t=e.presentation,n=e.classificationId,r=e.memberType;return t?l.createElement(l.Fragment,null,l.createElement("h6",null,"Presentation: ".concat(!!t&&t.name)),l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:vh(t.id,n),isItemActive:Qy(r)}))):l.createElement(l.Fragment,null)}function ev(e){var t=ci(),n=Ui(t),r=function(e){return t.setFieldValue("classificationIds",rp.a.addOrRemove(t.values.classificationIds.map((function(e){return e.toString()})),e.id.toString()))},o="".concat(ki(t.errors,t.touched,"classificationIds")," h-auto py-2");return l.createElement(vi,null,l.createElement(Ri,{name:"classificationIds"},(function(){return l.createElement("div",{className:o},l.createElement(jl,{label:"Mapped Classification(s)",tree:e.classificationTree,selectedIds:t.values.classificationIds,onSelect:r,getSelectedItemAppLink:(n=e.presentationId,function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[n,e]}}),isNodeDisabled:e.isClassificationDisabled}));var n})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Save Classifications")))}function tv(e){return l.createElement(ji,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.classificationIds;return e.saveClassifications(r,n)},enableReinitialize:!0},l.createElement(ev,{presentationId:e.presentationId,classificationTree:e.classificationTree,isClassificationDisabled:e.isClassificationDisabled}))}function nv(e){var t=null===e.id||void 0===e.id,n=ci(),r=Ui(n);return l.createElement(vi,null,l.createElement(Ri,{label:"Name",type:"text",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this level",autoFocus:!0}),l.createElement(Kl,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"))}function rv(e){return l.createElement(ji,{initialValues:e.level,validationSchema:fh,onSubmit:e.saveLevel},l.createElement(nv,{id:e.level&&e.level.id}))}function iv(e){var t=mh.singularizeMemberType(e.memberType),n=ci(),r=Ui(n);return l.createElement(vi,null,l.createElement(Ri,{label:"Backbone Audience(s)",as:"select",name:"backboneAudienceIds",id:"level-ids",multiple:!0,size:e.levels.length,value:n.values.backboneAudienceIds},e.levels.map((function(e){return l.createElement("option",{key:e.id,value:e.id},e.name)}))),l.createElement("p",null,l.createElement("strong",null,"Note:")," When removing a ".concat(t," from a backbone audience, that backbone audience's mapped audiences "),l.createElement("strong",null,"will not")," be automatically removed from."),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Kl,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},"Save Backbone Audience")))}function ov(e){return l.createElement(ji,{initialValues:e.initialValues,onSubmit:function(t,n){var r=t.backboneAudienceIds;return e.saveLevels(r,!1,n)}},l.createElement(iv,{levels:e.levels,memberType:e.memberType}))}var av=function(e){return function(t){return t.appLink.action===e}};function cv(e){var t=e.levelId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(Ti.Alert,{variant:"danger"},"Warning: You are editing the backbone audiences."),l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:bh(t,r),isItemActive:av(n)})))}var sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function uv(e){return l.createElement(l.Fragment,null,e.audiences.map((function(t){return l.createElement("th",{key:t.masterId},l.createElement("span",{className:"d-inline-block"},l.createElement(au,{selected:e.getIsAudienceSelected(t),onToggle:function(n){return e.onToggleAudience(t.masterId,n)}})),l.createElement(Gs,{appLink:e.getAudienceAppLink(t.masterId)},function(e,t){return t?e.name:"Audience: ".concat(e.name)}(t,e.showAudienceSubHeader)))})))}function lv(e){var t=e.memberType,n=e.hasActions,r=e.audiences,i=sv(e,["memberType","hasActions","audiences"]),o="".concat(cl(Sh.singularizeMemberType(t))," Name"),a=!!r&&!!r.length,c=a&&r.length>1,s=a?2:1,u=Object.assign({audiences:r,showAudienceSubHeader:c},i);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:s},o),a&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Audiences"):l.createElement(uv,Object.assign({},u))),n&&l.createElement("th",{rowSpan:s})),a&&c&&l.createElement("tr",null,l.createElement(uv,Object.assign({},u))))}function fv(e){var t=e.member,n=t.id,r=t.name,i=t.audiences,o=void 0===i?[]:i,a=e.getMemberAppLink,c=e.onToggleAudience,s=e.actions,u=m(a)&&a(n);return o.length&&!m(c)&&p.ErrorHelper.throw(new Ji.a("onToggleAudience must be passed to LevelMemberItem")),l.createElement("tr",null,l.createElement("td",null,u?l.createElement(Gs,{appLink:a(n)},r):r),!!o.length&&o.map((function(e){return l.createElement("td",{key:e.id},l.createElement(au,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),s&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Qu,{actions:s}))))}var pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function dv(e,t){return function(n){var r=n[e],i=Tl(r);return!!i&&i===t.length}}function mv(e){var t=e.members,n=e.memberType,r=e.getActions,i=e.audiences,o=e.getAudienceAppLink,a=e.onToggleAudience,c=pv(e,["members","memberType","getActions","audiences","getAudienceAppLink","onToggleAudience"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this level."));var s=m(r),u={memberType:n,audiences:i,getAudienceAppLink:o,getIsAudienceSelected:dv(n,t),onToggleAudience:a,hasActions:s};return l.createElement(Ti.Table,{responsive:!0,bordered:!0},l.createElement(lv,Object.assign({},u)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(fv,Object.assign({key:t,member:e,actions:s&&r(e.id),onToggleAudience:a},c))}))))}function hv(e){var t=e.values,n=t.name,r=t.description,i=e.id,o=e.isSubmitting,a=!i;return l.createElement(vi,null,l.createElement(Ri,{label:"Name",type:"text",name:"name",id:"name",value:n,placeholder:"Enter a name for this presentation",autoFocus:!0}),l.createElement(Ri,{label:"Description",as:"textarea",name:"description",id:"description",value:r,placeholder:"Describe this presentation here"}),l.createElement(Kl,{showSpinner:o,type:"submit"},a?"Create":"Save"))}function yv(e){var t=e.presentation,n=(t=void 0===t?{}:t).id,r=void 0===n?null:n,i=t.name,o=void 0===i?"":i,a=t.description,c=void 0===a?"":a,s=e.savePresentation;return l.createElement(pi,{initialValues:{name:o,description:c},validationSchema:ph,onSubmit:s},(function(e){return l.createElement(hv,Object.assign({id:r},e))}))}function vv(e){var t=e.presentations,n=e.currentPresentationId,r=e.setCurrentPresentation,i=e.label,o=function(e){var n=function(e,t){return rp.a.first(t.filter((function(t){return t.id.toString()===e.toString()})))}(e,t);r(n)};return l.useEffect((function(){t&&!n&&r(rp.a.first(t))}),[t]),l.createElement(l.Fragment,null,!!n&&l.createElement(l.Fragment,null,l.createElement(Ti.Form.Label,null,i),l.createElement(Ti.Form.Control,{as:"select",value:n,onChange:function(e){return o(e.target.value)},className:"cursor-pointer"},t.map((function(e){return l.createElement("option",{value:e.id,key:e.id},e.name)})))))}function bv(e){return l.createElement(l.Fragment,null,l.createElement("h4",null,"".concat(cl(e.memberType))),l.createElement(Ti.Table,{responsive:!0},l.createElement("tbody",null,e.objects&&e.objects.map((function(t){return l.createElement("tr",{key:t.id},l.createElement("td",null,l.createElement(Gs,{appLink:mh.getMemberAppLink(e.memberType,t.id)},t.name)))})))),l.createElement(Lv,{initialValues:{backboneClassificationIds:[]},subjectTree:e.subjectTree,saveSubjects:e.onClickAddToSubject,memberType:e.memberType,saveBtnText:"Add to backbone classification",subjectRequired:!0}))}function gv(e){return function(e){if(Array.isArray(e))return Sv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Sv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ev(e){var t=mh.singularizeMemberType(e.memberType),n=[].concat(gv(e.objectClassifications),gv(e.objectSubjectClassifications)).map((function(e){return e.id}));return l.createElement(l.Fragment,null,l.createElement("div",{className:"border-bottom pb-3 mb-3"},l.createElement("h6",null,"Backbone Classifications"),l.createElement("p",null,"Select which backbone classifications this ".concat(t," is mapped to.")),l.createElement(Lv,{initialValues:{backboneClassificationIds:e.objectSubjects.map((function(e){return e.id}))},subjectTree:e.subjectTree,saveSubjects:e.saveSubjects,memberType:e.memberType,saveBtnText:"Save Backbone Classifications",allowMultiple:!0})),l.createElement("h6",null,"Classifications"),l.createElement("p",null,"Select a presentation to view its classifications and map them to this ".concat(t,".")),l.createElement("div",{className:"w-50 pb-3"},l.createElement(vv,{presentations:e.presentations,currentPresentationId:e.currentPresentation.id,setCurrentPresentation:e.setCurrentPresentation})),e.currentPresentation&&e.classificationTree&&e.classificationTree.children.length?l.createElement(l.Fragment,null,l.createElement("p",null,"Only classifications which are mapped to one of the backbone classifications selected above can be selected."),l.createElement(tv,{initialValues:{classificationIds:e.objectClassifications.map((function(e){return e.id}))},presentationId:e.currentPresentation.id,classificationTree:e.classificationTree,saveClassifications:e.saveClassifications,isClassificationDisabled:function(e){return!n.includes(e.id)}})):l.createElement("p",null,"This presentation has no classifications."))}function Ov(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}vv.defaultProps={label:"Presentation"};function Av(e){var t=!e.id,n=ci(),r=Ui(n),o=!t||!!n.values.parentId,a=Ov(l.useState(o),2),s=a[0],u=a[1];l.useEffect((function(){return u(o)}),[e.id,n.values.parentId]);var f=function(e){var t=e.id===n.values.parentId?null:e.id;n.setFieldValue("parentId",t)},p="".concat(ki(n.errors,n.touched,"parentId")," h-auto py-2");return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:n.values.name,placeholder:"Enter a name for this backbone classification",autoFocus:!0}),l.createElement(Ri,{name:"parentId"},(function(){return l.createElement("div",{className:p},l.createElement(jl,{label:"Parent Backbone Classification",tree:e.subjectTree,selectedIds:[n.values.parentId],onSelect:f,collapse:s,noSelectionMessage:"No parent selected, this will be a root backbone classification.",isNodeDisabled:(t=e.subjectTree,r=e.id,function(e){if(e.id===r)return!0;var n=ll.find(t,r);return!!ll.find(n,e.id)})}));var t,r})),l.createElement("div",{className:"d-flex justify-content-between"},l.createElement(Kl,{showSpinner:n.isSubmitting,type:"submit",disabled:!r},t?"Create":"Save"),!t&&l.createElement(Ti.Button,{as:Gs,variant:"danger",appLink:{application:c.SUBJECTS,action:i.Subjects.DELETE_SUBJECT,args:[e.id]}},"Delete")))}function jv(e){return l.createElement(ji,{initialValues:e.subject,validationSchema:dh,onSubmit:e.saveSubject},l.createElement(Av,{id:e.subject&&e.subject.id,subjectTree:e.subjectTree}))}var wv=function(e){return function(t){return t.appLink.action===e}};function Iv(e){var t=e.subjectId,n=e.activeAction,r=e.presentationId;return l.createElement(l.Fragment,null,l.createElement(Ti.Alert,{variant:"danger"},"Warning: You are editing the backbone classifications."),l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:yh(t,r),isItemActive:wv(n)})))}var Tv=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e]}};function kv(e){var t=ci(),n=Ui(t),r=function(n){var r=e.allowMultiple?rp.a.addOrRemove(t.values.backboneClassificationIds.map((function(e){return e.toString()})),n.id.toString()):[n.id];t.setFieldValue("backboneClassificationIds",r)},i="".concat(ki(t.errors,t.touched,"backboneClassificationIds")," h-auto py-2");return l.createElement(vi,null,l.createElement(Ri,{name:"backboneClassificationIds"},(function(){return l.createElement("div",{className:i},l.createElement(jl,{label:"Mapped Backbone Classification".concat(e.allowMultiple?"(s)":""),tree:e.subjectTree,selectedIds:t.values.backboneClassificationIds,onSelect:r,collapse:!!t.initialValues.backboneClassificationIds.length,getSelectedItemAppLink:Tv}))})),l.createElement("div",{className:"d-flex justify-content-end"},l.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.saveBtnText)))}function Lv(e){var t;return l.createElement(ji,{initialValues:e.initialValues,validationSchema:(t=e.subjectRequired,wi.object().shape({backboneClassificationIds:t?wi.array().of(wi.string()).min(1,"A subject is required").required("A subject is required"):wi.array().of(wi.string())}).noUnknown()),onSubmit:function(t,n){var r=t.backboneClassificationIds;return e.saveSubjects(r,!1,n)}},l.createElement(kv,{subjectTree:e.subjectTree,memberType:e.memberType,allowMultiple:e.allowMultiple,saveBtnText:e.saveBtnText}))}kv.defaultProps={saveBtnText:"Save"};var _v=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.classifications&&e.classifications.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.classifications.map((function(t){return l.createElement("li",{key:t.id,className:"py-1"},l.createElement(Gs,{appLink:(n=e.presentation.id,r=t.id,{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no classifications mapped to this backbone classification in this presentation.")))},xv=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.classificationDictionary&&e.presentations.map((function(t){return l.createElement(_v,{key:t.id,presentation:t,classifications:e.classificationDictionary[t.id]})})))},Pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Nv(e){return l.createElement(l.Fragment,null,e.classifications.map((function(t){return l.createElement("th",{key:t.id},l.createElement("span",{className:"d-inline-block"},l.createElement(au,{selected:e.getIsClassificationSelected(t),onToggle:function(n){return e.onToggleClassification(t.id,n)}})),l.createElement(Gs,{appLink:e.getClassificationAppLink(t.id)},function(e,t){return t?e.name:"Classification: ".concat(e.name)}(t,e.showClassificationSubHeader)))})))}function Rv(e){var t=e.memberType,n=e.hasActions,r=e.classifications,i=Pv(e,["memberType","hasActions","classifications"]),o="".concat(cl(mh.singularizeMemberType(t))," Name"),a=!!r&&!!r.length,c=a&&r.length>1,s=a?2:1,u=Object.assign({classifications:r,showClassificationSubHeader:c},i);return l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",{rowSpan:s},o),a&&(c?l.createElement("th",{colSpan:r.length,className:"text-center"},"Classifications"):l.createElement(Nv,Object.assign({},u))),n&&l.createElement("th",{rowSpan:s})),a&&c&&l.createElement("tr",null,l.createElement(Nv,Object.assign({},u))))}function Dv(e){var t=e.member,n=t.id,r=t.name,i=t.classifications,o=void 0===i?[]:i,a=e.getMemberAppLink,c=e.onToggleClassification,s=e.actions,u=m(a)&&a(n);return o.length&&!m(c)&&p.ErrorHelper.throw(new Ji.a("onToggleClassification must be passed to SubjectMemberItem")),l.createElement("tr",null,l.createElement("td",null,u?l.createElement(Gs,{appLink:a(n)},r):r),!!o.length&&o.map((function(e){return l.createElement("td",{key:e.id},l.createElement(au,{selected:e.selected,onToggle:function(t){return c(e.id,t,n)}}))})),s&&l.createElement("td",null,l.createElement("span",{className:"d-flex justify-content-end"},l.createElement(Qu,{actions:s}))))}var Mv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Uv(e,t){return function(n){var r=n[e],i=Tl(r);return!!i&&i===t.length}}function Fv(e){var t=e.members,n=e.memberType,r=e.getActions,i=e.classifications,o=e.getClassificationAppLink,a=e.onToggleClassification,c=Mv(e,["members","memberType","getActions","classifications","getClassificationAppLink","onToggleClassification"]);if(!t.length)return l.createElement("div",{className:"py-5"},"No ".concat(n," in this backbone classification."));var s=m(r),u={memberType:n,classifications:i,getClassificationAppLink:o,getIsClassificationSelected:Uv(n,t),onToggleClassification:a,hasActions:s};return l.createElement(Ti.Table,{responsive:!0,bordered:!0},l.createElement(Rv,Object.assign({},u)),l.createElement("tbody",null,t.map((function(e,t){return l.createElement(Dv,Object.assign({key:t,member:e,actions:s&&r(e.id),onToggleClassification:a},c))}))))}function Vv(e){var t=e.navItems,n=e.currentAppLink;return l.createElement(Ti.Container,null,l.createElement(Ti.Navbar,{className:"justify-content-between align-items-center"},l.createElement(Ti.Nav,null,!!t&&t.map((function(e,t){return l.createElement(Ti.Nav.Item,{key:t},l.createElement(Gs,{appLink:e.appLink,className:"nav-link".concat(il.isItemActive(e,n)?" text-primary":"")},e.label))})))))}function Bv(e,t){l.useEffect((function(){e.presentations&&!e.currentPresentation&&qm(t,"currentPresentation")(rp.a.first(e.presentations))}),[e.presentations])}function zv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qv(e){var t=ae.useBasicFetch(pm(e.playlistId)),n=ae.useBasicFetch(jm()),r=zv(l.useState({}),2),o=r[0],a=r[1],c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Um([jy.getObjectLevelsFetchOptions(e,th.Playlists,r("playlistLevels"))],[e]),Hm(jy.getObjectAudiencesFetchOptions(e,th.Playlists,r("playlistAudiences")),[e,t.playlistLevels]),Um([jy.getPresentationsFetchOptions(r("presentations")),jy.getLevelsFetchOptions(r("levels"))],[]),Hm(!!t.currentPresentation&&jy.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.playlistId,o,a),Bv(o,a);var s=!!(o.presentations&&o.levels&&o.presentationAudiences&&o.playlistLevels&&o.playlistAudiences);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Lm,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_AUDIENCES,currentUser:n.data}),l.createElement(Xu,{object:t.data}),!!s&&l.createElement(Ny,{objectLevels:o.playlistLevels,objectAudiences:o.playlistAudiences,presentations:o.presentations,currentPresentation:o.currentPresentation,setCurrentPresentation:qm(a,"currentPresentation"),levels:o.levels,presentationAudiences:o.presentationAudiences,memberType:th.Playlists,saveLevels:function(t,n,r){return c.updateObjectLevels(e.playlistId,t,th.Playlists,n,r,r)},saveAudiences:function(t,n){return c.updateObjectAudiences(e.playlistId,o.currentPresentation.id,t,th.Playlists,n,n)}}))}function Jv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||Kv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $v(e){return function(e){if(Array.isArray(e))return Yv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Kv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kv(e,t){if(e){if("string"==typeof e)return Yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yv(e,t):void 0}}function Yv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wv(e){var t=ae.useBasicFetch(pm(e.playlistId)),n=ae.useBasicFetch(jm()),r=Jv(l.useState({}),2),o=r[0],a=r[1],c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Um([jy.getSubjectTreeFetchOptions(r("subjectTree")),jy.getPresentationsFetchOptions(r("presentations"))],[]),Um([jy.getObjectSubjectsFetchOptions(e,th.Playlists,r("playlistSubjects"))],[e]),Hm(!!t.currentPresentation&&jy.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.playlistSubjects]);var i=function(e,t){return[].concat($v(t.subjectClassifications||[]),$v(e))},o=t.playlistSubjects&&t.playlistSubjects.map((function(e){return jy.getSubjectClassificationFetchOptions(e.id,qm(n,"subjectClassifications",i))}));Um(o,[t.playlistSubjects],!!o),Hm(jy.getObjectClassificationsFetchOptions(e,th.Playlists,r("playlistClassifications")),[e,t.playlistSubjects])}(e.playlistId,o,a),Bv(o,a);var s=!!(o.playlistSubjects&&o.subjectTree&&o.presentations&&o.classificationTree&&o.playlistClassifications&&o.subjectClassifications);return l.createElement(l.Fragment,null,!!n.data&&l.createElement(Lm,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_SUBJECTS,currentUser:n.data}),l.createElement(Xu,{object:t.data}),s&&l.createElement(Ev,{objectSubjects:o.playlistSubjects,subjectTree:o.subjectTree,memberType:th.Playlists,presentations:o.presentations,currentPresentation:o.currentPresentation,setCurrentPresentation:qm(a,"currentPresentation"),objectClassifications:o.playlistClassifications,objectSubjectClassifications:o.subjectClassifications,classificationTree:o.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.playlistId,t,th.Playlists,n,r,r)},saveClassifications:function(t,n){return c.updateObjectClassifications(e.playlistId,o.currentPresentation.id,t,th.Playlists,n,n)}}))}var Zv=function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var r=rp.a.moveItem(e,t,n),i=n<e.length-1?r[n+1].id:null;return{reorderedItems:r,reorderRequest:{sourceMemberId:r[n].id,destinationMemberId:i}}};function Gv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tb=function(e){return{application:c.VIDEOS,action:i.Videos.EDIT_VIDEO,args:[e.id]}};function nb(e){var t,n,r,o,a,s,u=Object(v.useDispatch)(),f=zf(),p=ae.useBasicFetch(pm(e.playlistId)),d=ae.useBasicFetch(vm(e.playlistId)),m=ae.useBasicFetch(jm()),h=Xv((n=null===(t=d.data)||void 0===t?void 0:t.data,r=Gv(Object(l.useState)(),2),o=r[0],a=r[1],Object(l.useEffect)((function(){o&&(n.length!==o.length||function(e,t){var n=!0;if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r].id!==t[r].id){n=!1;break}return n}(n,o))&&a(null)}),[n]),[o,a]),2),y=h[0],b=h[1],g=y?{data:y,pagination:null}:d.data;return l.createElement(l.Fragment,null,!!m.data&&l.createElement(Lm,{playlistId:e.playlistId,activeAction:i.Playlists.EDIT_PLAYLIST_VIDEOS,currentUser:m.data}),l.createElement(Xu,{object:p.data}),!!g&&l.createElement(Bl,{onSortEnd:function(t,n){if(t!==n){var r=Zv(d.data.data,t,n),i=r.reorderRequest,o=r.reorderedItems;b(o);ae.fetch(u,bm(e.playlistId,i,null,(function(){f.error("Failed to update playlist order."),b(null)})))}},videos:g,getVideoAppLink:tb,getVideoActions:(s=e.playlistId,function(e){return[{label:"Remove video",appLink:{application:c.PLAYLISTS,action:i.Playlists.REMOVE_VIDEO,args:[s.toString(),e.id.toString()]},className:"text-danger"}]}),emptyMessage:"There are no videos in this playlist."}))}function rb(){var e=Object(v.useDispatch)(),t=zf(),n=ae.useBasicFetch(jm());return l.createElement(l.Fragment,null,!!n.data&&l.createElement(km,{savePlaylist:function(r,o){ae.fetch(e,mm(r,n.data.id,(function(e){t.success("Successfully created playlist."),function(e){e&&e.id&&p.AppLinkHelper.trigger({application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]})}(e)}),(function(){t.error("Failed to create playlist.")}),o))}}))}var ib="rating,thumbnail,glance,herobanner",ob=function(e){return{url:"/api/master/v2/objects/".concat(e,"?query=").concat(ib),key:"videos:".concat(e)}},ab=function(e){var t=e.slice().sort();return{key:"videos:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},cb=function(e){return{url:"/ajax/hostedlibraries/rightsline/programs/".concat(e),key:"rightsline:videos:".concat(e),normalizeOptions:{namespace:"rightsline"}}},sb=function(e,t,n,r,i){return{key:"videos:".concat(e),url:"/api/master/v2/objects/".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}};function ub(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fb(e){var t=Object(v.useDispatch)(),n=zf(),r=ae.useBasicFetch(pm(e.playlistId)),i=ae.useBasicFetch(ob(e.videoId)),o=ub(l.useState(!1),2),a=o[0],c=o[1];var s=!!r.data&&!!i.data;return l.createElement(qf,{title:"Remove Video",closePopup:e.closePopup,showLoadingSpinner:!s},!!s&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,i.data.name)," from ",l.createElement("strong",null,r.data.name),"?")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){c(!0),ae.fetch(t,gm(e.playlistId,e.videoId,(function(){n.success("Successfully removed video from playlist")}),(function(){n.error("Failed to remove video from playlist")}),e.closePopup))},buttonText:"Yes, remove video",isSpinnerButton:!0,showSpinner:a}]})))}function pb(e){return p.AppLinkHelper.trigger(function(e){return{application:c.PLAYLISTS,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}}(e))}function db(e){var t=e?{application:c.PLAYLISTS,action:i.Playlists.SEARCH_PLAYLISTS,params:{query:e}}:{application:c.PLAYLISTS,action:i.Playlists.PLAYLISTS};p.AppLinkHelper.trigger(t)}function mb(e){return l.createElement("div",{className:"pb-3 w-50"},l.createElement(ks,{initialQuery:e.query,placeholder:"Search for a playlist",onSuggestionSelected:pb,getRemoteUrl:function(e){return"".concat("/api/domain/v1/search/playlists/instant/raw","?query=").concat(e)},activationLength:2,onSubmit:db}))}var hb=c.PLAYLISTS,yb=function(e){return{application:hb,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}};function vb(e){var t=ae.useBasicFetch(lm(e.cursor));return l.createElement(l.Fragment,null,l.createElement(mb,null),l.createElement(zu,{collection:t&&t.data,collectionAppLink:{application:hb,action:i.Playlists.PLAYLISTS},newObjectAppLink:{application:hb,action:i.Playlists.NEW_PLAYLIST},getObjectAppLink:yb,objectName:"Playlist"}))}var bb=c.PLAYLISTS,gb=function(e){return{application:bb,action:i.Playlists.EDIT_PLAYLIST,args:[e.id]}};function Sb(e){var t=ae.useBasicFetch(fm(e.query,e.cursor));return l.createElement(l.Fragment,null,l.createElement(mb,{query:e.query}),!!t.data&&(t.data.data.length?l.createElement(zu,{collection:t.data,collectionAppLink:{application:bb,action:i.Playlists.SEARCH_PLAYLISTS,params:{query:e.query}},newObjectAppLink:{application:bb,action:i.Playlists.NEW_PLAYLIST},getObjectAppLink:gb,objectName:"Playlist"}):l.createElement("p",null,"No playlists found, please try a different search query.")))}function Eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ob(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cb=function(e,t,n){return[{variant:"link",onClick:t,buttonText:"Cancel"},{variant:"danger",onClick:e,buttonText:"Yes, delete this audience",isSpinnerButton:!0,showSpinner:n}]};function Ab(e){var t=e.id,n=e.routeToOnDelete,r=e.closePopup,i=Eb(l.useState(),2),o=i[0],a=i[1],c=Eb(l.useState(!1),2),s=c[0],f=c[1],d=kf(u.SUBJECT);Hm(jy.getAudienceFetchOptions(t,a),[t]);return l.createElement(qf,{title:"Delete Audience",closePopup:r,showLoadingSpinner:!o},!!o&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,o.name),"?")),l.createElement($f,{buttons:Cb((function(){f(!0);d.deleteAudience(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)}),r,s)})))}function jb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ib(e){var t=e.presentationId,n=e.audienceId,r=jb(l.useState(),2),i=r[0],o=r[1],a=jb(l.useState(),2),c=a[0],s=a[1],f=jb(l.useState(),2),p=f[0],d=f[1],m=kf(u.SUBJECT);Hm(jy.getAudienceFetchOptions(n,o),[n]),Hm(jy.getLevelsFetchOptions(s),[]),Hm(jy.getPresentationFetchOptions(t,d),[t]);return l.createElement(l.Fragment,null,l.createElement(Uy,{presentation:p,audienceId:n}),!!p&&l.createElement("h6",null,"Presentation: ".concat(p.name)),!!i&&!!c&&l.createElement(xy,{audience:i,levels:c,saveAudience:function(e,r){return m.updateAudience(n,Object.assign(Object.assign({},e),{presentationId:t}),r,r)},presentationId:t}))}function Tb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lb=function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e]}};function _b(e){var t=e.presentationId,n=Tb(l.useState(),2),r=n[0],o=n[1],a=Tb(l.useState(),2),s=a[0],f=a[1],d=kf(u.SUBJECT);Hm(jy.getLevelsFetchOptions(o),[]),Hm(jy.getPresentationFetchOptions(t,f),[t]);return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2"},l.createElement(Qs,{appLink:Lb(t),backToName:"audiences"})),!!s&&l.createElement("h6",null,"Presentation: ".concat(s.name)),!!r&&l.createElement(xy,{levels:r,presentationId:t,saveAudience:function(e,n){return d.createAudience(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]})}}(t,n),n)}}))}var xb=n(207),Pb=n.n(xb);function Nb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Db(e){var t=e.presentationId,n=e.selectedAudienceId,r=Nb(l.useState(),2),o=r[0],a=r[1];Hm(jy.getAudiencesFetchOptions(t,a),[]);var s=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[t,e.masterId]}},u={application:c.SUBJECTS,action:i.Subjects.NEW_AUDIENCE,args:[t]};return l.createElement("div",{className:"".concat(Pb.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Audiences"),l.createElement(Gs,{appLink:u,className:"d-inline-block pb-2"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},o&&o.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(Gs,{className:(null==n?void 0:n.toString())===e.masterId.toString()?"text-primary font-weight-500":"",appLink:s(e)},e.name))})))))}function Mb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ub(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ub(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fb(e){var t=e.presentationId,n=e.audienceId,r=e.memberType,i=Mb(l.useState(),2),o=i[0],a=i[1],c=Mb(l.useState(),2)[1],s=Mb(l.useState(),2),u=s[0],f=s[1];Hm(jy.getPresentationFetchOptions(t,a),[]),Hm(jy.getAudienceFetchOptions(n,c),[n]),Hm(jy.getAudienceMembersFetchOptions(n,r,f),[n,r]);var p={items:u&&u.data,memberType:r,getItemAppLink:function(e){return Sh.getMemberAppLink(r,e.id)},getActions:function(e){return Sh.getMemberActions(n,eh.Audience,r,e.id)}},d={presentation:o,audienceId:n},m=ol(p);return l.createElement(l.Fragment,null,l.createElement(Uy,Object.assign({},d,{memberType:r})),m&&l.createElement(Vy,Object.assign({},p)))}function Vb(e){return{application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]}}function Bb(e){return[{label:"Add child",getAppLink:function(t){return Object.assign(Object.assign({},Vb(e)),{args:[e],params:{parentId:t.id}})}},{label:"Delete classification",getAppLink:function(t){return{application:c.SUBJECTS,action:i.Subjects.DELETE_CLASSIFICATION,args:[e,t.id]}},className:"text-danger"}]}var zb=n(208),Hb=n.n(zb);function qb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $b(e){var t=e.presentationId,n=e.selectedClassificationId,r=qb(l.useState(),2),o=r[0],a=r[1],s=qb(l.useState(),2),u=s[0],f=s[1];return function(e,t,n){Um([jy.getClassificationTreeFetchOptions(e,t),jy.getPresentationFetchOptions(e,n)],[e])}(t,a,f),l.createElement("div",{className:"".concat(Hb.a.navContainer," h-auto pr-2 border-right")},!!u&&l.createElement("h6",{className:"border-bottom pb-2"},"Classifications (".concat(u.name,")")),l.createElement(Gs,{appLink:Vb(t),className:"d-inline-block pb-2"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Classification")),!!o&&l.createElement("div",{className:"border-top pt-1"},l.createElement(Sl,{tree:o,getAppLink:function(e){return function(e,t){return{application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,t.id]}}(t,e)},selectedIds:[n],actions:Bb(t)})))}function Kb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wb(e){var t=e.classificationId,n=e.routeToOnDelete,r=e.closePopup,i=Kb(l.useState(),2),o=i[0],a=i[1],c=Kb(l.useState(!1),2),s=c[0],f=c[1];Hm(jy.getClassificationFetchOptions(t,a),[]);var d=kf(u.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteClassification(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this classification",isSpinnerButton:!0,showSpinner:s}];return l.createElement(qf,{title:"Delete Classification",closePopup:r,showLoadingSpinner:!o},!!o&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,o.name),"?")),l.createElement($f,{buttons:m})))}function Zb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qb(e){var t=e.presentationId,n=e.classificationId,r=Zb(l.useState(),2),i=r[0],o=r[1],a=Zb(l.useState(),2),c=a[0],s=a[1],f=Zb(l.useState(),2),p=f[0],d=f[1],m=Zb(l.useState(),2),h=m[0],y=m[1],v=kf(u.SUBJECT),b=jy.getClassificationFetchOptions(n,o),g=jy.getPresentationFetchOptions(t,s),S=jy.getClassificationTreeFetchOptions(t,d);Hm(jy.getSubjectTreeFetchOptions(y),[]),Hm(b,[n]),Um([g,S],[t]);return l.createElement("div",null,l.createElement(Xy,{presentation:c,classificationId:n}),!!i&&!!p&&!!h&&l.createElement(Gy,{classification:i,presentationId:t,subjectTree:h,classificationTree:p,saveClassification:function(e,t){var r=Object.assign({pinnedVideoMasterId:(null==i?void 0:i.pinnedVideoMasterId)||null},e);return v.updateClassification(n,r,t,t)}}))}function Xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tg(e){var t=e.presentationId,n=e.classificationId,r=e.memberType,i=Xb(l.useState(),2),o=i[0],a=i[1],c=Xb(l.useState(),2),s=c[0],f=c[1],p=Xb(l.useState(),2),d=p[0],m=p[1];Hm(jy.getPresentationFetchOptions(t,a),[]),Hm(jy.getClassificationFetchOptions(n,f),[n]),Hm(jy.getClassificationMembersFetchOptions(n,r,m),[n,r]);var h=kf(u.SUBJECT),y={items:d&&d.data,memberType:r,classification:s,updatePinnedVideo:function(e,t){var r=Object.assign(Object.assign({},s),{pinnedVideoMasterId:e});h.updateClassification(n,r,t)},getItemAppLink:function(e){return mh.getMemberAppLink(r,e.id)},getActions:function(e){return mh.getMemberActions(n,eh.Classification,r,e.id)}},v={presentation:o,classificationId:n},b=ol(y);return l.createElement(l.Fragment,null,l.createElement(Xy,Object.assign({},v,{memberType:r})),b&&l.createElement($y,Object.assign({},y)))}function ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(e){var t=e.presentationId,n=e.parentId,r=ng(l.useState(),2),o=r[0],a=r[1],s=ng(l.useState(),2),f=s[0],d=s[1],m=kf(u.SUBJECT),h=jy.getClassificationTreeFetchOptions(t,a);Hm(jy.getSubjectTreeFetchOptions(d),[]),Hm(h,[t]);return l.createElement("div",null,l.createElement("h4",{className:"py-2"},"Create New Classification"),!!f&&!!o&&l.createElement(Gy,{classification:n?{parentIds:[n]}:{},presentationId:t,subjectTree:f,classificationTree:o,saveClassification:function(e,n){return m.createClassification(Object.assign(Object.assign({},e),{presentationId:t}),function(e,t){return function(n){t(),n&&n.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]})}}(t,n),n)}}))}var og=function(e){return{key:"series:".concat(e),url:"/api/master/v2/objects/".concat(e,"?query=thumbnail,tallPoster,banner,rating")}},ag=function(e){var t=e.slice().sort();return{key:"series:".concat(t.join(",")),url:"/api/master/v2/objects?".concat(t.map((function(e){return"id=".concat(e)})).join("&"))}},cg=function(e,t,n,r){return{url:"/api/master/v2/series",key:"series",data:e,type:ce.a.POST,success:t,error:n,always:r}},sg=function(e,t,n,r,i){return{url:"/api/master/v2/objects/".concat(e),key:"update:series:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}};function ug(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fg(e){var t=ug(l.useState(),2),n=t[0],r=t[1],i=ug(l.useState(!1),2),o=i[0],a=i[1],c=ae.useBasicFetch(function(e,t){switch(e){case th.Playlists:return pm(t);case th.Series:return og(t);case th.Videos:return ob(t)}}(e.memberType,e.memberId)),s=kf(u.SUBJECT);Hm(jy.getClassificationFetchOptions(e.classificationId,r),[e.classificationId]);var f=!!n&&!!c.data,p="Remove ".concat(cl(mh.singularizeMemberType(e.memberType)));return l.createElement(qf,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone subject.")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),s.removeObjectsFromClassification(e.classificationId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup),n.pinnedVideoMasterId===e.memberId&&s.updateClassification(e.classificationId,Object.assign(Object.assign({},n),{pinnedVideoMasterId:null}))},buttonText:"Yes, remove this ".concat(mh.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:o}]})))}function pg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mg(e){var t=e.id,n=pg(l.useState(),2),r=n[0],o=n[1],a=kf(u.SUBJECT);Hm(jy.getLevelFetchOptions(t,o),[t]);return l.createElement(l.Fragment,null,l.createElement(cv,{levelId:t,activeAction:i.Subjects.EDIT_LEVEL}),l.createElement("h4",{className:"py-2"},"Edit Level"),!!r&&l.createElement(rv,{level:r,saveLevel:function(e,n){return a.updateLevel(t,e,n,n)}}))}function hg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vg(){var e=hg(l.useState(),2),t=e[0],n=e[1];return Hm(jy.getLevelsFetchOptions(n),[]),l.useEffect((function(){t&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[rp.a.first(t).id]},{replace:!0})}),[t]),l.createElement(l.Fragment,null)}function bg(){var e=kf(u.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Level"),l.createElement(rv,{saveLevel:function(t,n){return e.createLevel(t,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[t.id]})}}(n),n)}}))}var gg=n(209),Sg=n.n(gg);function Eg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Og(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Og(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cg(e){var t=e.selectedLevelId,n=Eg(l.useState(),2),r=n[0],o=n[1];Hm(jy.getLevelsFetchOptions(o),[]);var a=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e.id]}},s={application:c.SUBJECTS,action:i.Subjects.NEW_LEVEL};return l.createElement("div",{className:"".concat(Sg.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Audiences"),l.createElement(Gs,{appLink:s,className:"d-inline-block pb-2"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Backbone Audience")),l.createElement("div",{className:"border-top pt-1"},l.createElement("ul",{className:"list-unstyled"},r&&r.map((function(e){return l.createElement("li",{className:"position-relative py-1"},l.createElement(Gs,{className:(null==t?void 0:t.toString())===e.id.toString()?"text-primary font-weight-500":"",appLink:a(e)},e.name))})))))}var Ag=function(e){return l.createElement("div",{className:"border rounded p-2 mb-3"},l.createElement("h6",{className:"border-bottom pb-1"},e.presentation.name),e.audiences&&e.audiences.length?l.createElement("ul",{className:"list-unstyled mb-0"},e.audiences.map((function(t){return l.createElement("li",{key:t.masterId,className:"py-1"},l.createElement(Gs,{appLink:(n=e.presentation.id,r=t.masterId,{application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[n,r]})},t.name));var n,r}))):l.createElement("p",null,l.createElement("em",null,"There are no audiences mapped to this level in this presentation.")))},jg=function(e){return l.createElement(l.Fragment,null,!!e.presentations&&!!e.audienceDictionary&&e.presentations.map((function(t){return l.createElement(Ag,{key:t.id,presentation:t,audiences:e.audienceDictionary[t.id]})})))};function wg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ig(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ig(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ig(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tg(e){var t=e.levelId,n=wg(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return qm(t,e)};Hm(jy.getLevelAudiencesFetchOptions(e,n("audiences")),[e]),Hm(jy.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(cv,{levelId:t,activeAction:i.Subjects.LEVEL_AUDIENCES}),l.createElement(jg,{presentations:r.presentations,audienceDictionary:rp.a.groupBy(r.audiences,"presentationId")}))}function kg(e,t){return qm(e,t)}function Lg(e){switch(e){case nh.Playlists:return i.Subjects.EDIT_LEVEL_PLAYLISTS;case nh.Series:return i.Subjects.EDIT_LEVEL_SERIES;case nh.Videos:return i.Subjects.EDIT_LEVEL_VIDEOS}}function _g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pg(e){var t=_g(l.useState({}),2),n=t[0],r=t[1],o=n.presentations,a=n.audiences,s=n.memberIds,f=n.membersWithAudiences,d=ae.useBasicFetch(Array.isArray(s)&&s.length?function(e,t){switch(e){case nh.Playlists:return dm(t);case nh.Series:return ag(t);case nh.Videos:return ab(t)}}(e.memberType,s):null),m=kf(u.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.levelId],params:{presentationId:t}})}!function(e,t,n){var r=e.presentationId,i=e.levelId,o=e.memberType;Hm(jy.getPresentationsFetchOptions(kg(n,"presentations")),[]),Hm(jy.getLevelMemberIdsFetchOptions(i,o,kg(n,"memberIds")),[i,o]),Hm(!!r&&jy.getLevelAudiencesFetchOptions(i,kg(n,"audiences"),r,o),[i,o,r],!!r)}(e,0,r),function(e,t,n,r){var i=n.audiences;l.useEffect((function(){kg(r,"membersWithAudiences")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,audiences:n.map((function(n){return{id:n.masterId,selected:(r=t,i=n,!!i[e]&&!!i[e].data.filter((function(e){return e.id===r.id})).length)};var r,i}))}}))}(t.memberType,e,i))}),[e,i])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==o?void 0:o.length)&&h(rp.a.first(o).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!a;return l.createElement(l.Fragment,null,l.createElement(cv,{levelId:e.levelId,presentationId:e.presentationId,activeAction:Lg(e.memberType)}),l.createElement(Ti.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each audience in this level.")+" Change the selected presentation to view different audiences."),l.createElement("div",{className:"w-50 py-2"},!!o&&l.createElement(vv,{presentations:o,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement(mv,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return Sh.getMemberAppLink(e.memberType,t)},getActions:function(t){return Sh.getMemberActions(e.levelId,eh.Level,e.memberType,t)},audiences:a,getAudienceAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case nh.Playlists:t=i.Subjects.EDIT_AUDIENCE_PLAYLISTS;break;case nh.Series:t=i.Subjects.EDIT_AUDIENCE_SERIES;break;case nh.Videos:t=i.Subjects.EDIT_AUDIENCE_VIDEOS}return{application:n,action:t,args:r}}),onToggleAudience:function(t,n,r){return function(e,t,n,r,i,o,a){(a?e.addObjectsToAudience.bind(e):e.removeObjectsFromAudience.bind(e))(o,n,t,r,i)}(m,e.memberType,r?[r]:s,e.levelId,e.presentationId,t,n)}}))}function Ng(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dg(e){var t=Ng(l.useState(),2),n=t[0],r=t[1],i=Ng(l.useState(!1),2),o=i[0],a=i[1],c=ae.useBasicFetch(function(e,t){switch(e){case nh.Playlists:return pm(t);case nh.Series:return og(t);case nh.Videos:return ob(t)}}(e.memberType,e.memberId)),s=kf(u.SUBJECT);Hm(jy.getLevelFetchOptions(e.levelId,r),[e.levelId]);var f=!!n&&!!c.data,p="Remove ".concat(cl(Sh.singularizeMemberType(e.memberType)));return l.createElement(qf,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any audiences before removing.")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),s.removeObjectsFromLevel(e.levelId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Sh.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:o}]})))}function Mg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ug(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ug(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fg(e){var t=e.id,n=Mg(l.useState(),2),r=n[0],i=n[1],o=kf(u.SUBJECT);Hm(jy.getPresentationFetchOptions(t,i),[t]);var a={presentation:r,savePresentation:function(e,n){var r=n.setSubmitting;return o.updatePresentation(t,e,(function(){return r(!1)}),(function(){return r(!1)}))}},c=ol(a);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Edit Presentation"),!!c&&l.createElement(yv,Object.assign({},a)))}function Vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zg=function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_PRESENTATION,args:[e.id]}},Hg={application:c.SUBJECTS,action:i.Subjects.NEW_PRESENTATION};function qg(){var e=Vg(l.useState(),2),t=e[0],n=e[1];return Hm(jy.getPresentationsFetchOptions(n),[]),l.createElement("div",null,l.createElement("div",{className:"d-flex justify-content-between mb-2"},l.createElement("h5",{className:"d-inline-block m-0"},"Select a presentation to edit:"),l.createElement(Gs,{appLink:Hg,className:"d-block"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Presentation"))),l.createElement(nl,{objects:t,getAppLink:zg}))}function Jg(){var e=kf(u.SUBJECT);return l.createElement(l.Fragment,null,l.createElement("h4",{className:"py-2"},"Create New Presentation"),l.createElement(yv,{savePresentation:function(t,n){var r=n.setSubmitting;e.createPresentation(t,(function(e){return function(e,t){t(!1),e&&e.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_PRESENTATION,args:[e.id]})}(e,r)}),(function(){return r(!1)}))}}))}function $g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yg(e){var t=e.objectType,n=e.getAppLink,r=$g(l.useState(),2),i=r[0],o=r[1];return Hm(jy.getPresentationsFetchOptions(o),[]),l.createElement("div",null,l.createElement("h5",null,l.createElement(no,{namespace:"subjects.selectPresentation",phrase:"heading",options:{objectType:t}})),l.createElement(nl,{objects:i,getAppLink:n}))}function Wg(e,t){return qm(e,t)}function Zg(e,t,n,r,o){var a=r.selectedSubject,s=function(){return Wg(o,"showConfirmationPopup")(!1)};t.addObjectsToSubject(a.id,e.map((function(e){return e.id})),n.memberType,r.addToClassifications,(function(){s(),p.AppLinkHelper.trigger(function(e,t){var n={application:c.SUBJECTS,args:[e]};switch(t){case th.Playlists:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_PLAYLISTS});case th.Series:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_SERIES});case th.Videos:return Object.assign(Object.assign({},n),{action:i.Subjects.EDIT_SUBJECT_VIDEOS})}}(a.id,n.memberType))}),s)}function Gg(e,t,n){if(t&&n){var r=1===t.length?"this ".concat(mh.singularizeMemberType(e)):"these ".concat(e);return"Add ".concat(r," to ").concat(n.name)}}function Qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eS(e,t){return function(n,r,i){i(),Wg(t,"selectedSubject")(ll.find(e.subjectTree,rp.a.first(n))),Wg(t,"addToClassifications")(r),Wg(t,"showConfirmationPopup")(!0)}}function tS(e){var t=Qg(l.useState({}),2),n=t[0],r=t[1],i=ae.useBasicFetch(function(e,t){switch(e){case th.Playlists:return dm(t);case th.Series:return ag(t);case th.Videos:return ab(t)}}(e.memberType,e.objectIds)),o=kf(u.SUBJECT);!function(e,t){Hm(jy.getSubjectTreeFetchOptions(Wg(t,"subjectTree")),[])}(0,r);var a;return l.createElement(l.Fragment,null,!!i.data&&!!n.subjectTree&&l.createElement(bv,{memberType:e.memberType,objects:i.data,subjectTree:n.subjectTree,onClickAddToSubject:eS(n,r)}),n.showConfirmationPopup&&l.createElement(Zf,{title:Gg(e.memberType,i.data,n.selectedSubject),onClickConfirm:function(){return Zg(i.data,o,e,n,r)},closePopup:function(){return e=!1,Wg(r,"showConfirmationPopup")(e);var e}},l.createElement("p",null,"The following ".concat(e.memberType," will be added to "),l.createElement("strong",null,n.selectedSubject.name),n.addToClassifications?" and its mapped classifications:":":"),l.createElement("ul",null,i.data.map((function(e){return l.createElement("li",{key:e.id},e.name)}))),!n.addToClassifications&&l.createElement("p",null,"".concat(1===i.data.length?"It":"They"," will not be added to its mapped classifications.")),l.createElement("p",null,"".concat((a=e.memberType,cl(mh.singularizeMemberType(a)))," to classification mappings can be managed from the "),l.createElement("strong",null,"Edit Subject ".concat(cl(e.memberType)," ")),"page.")))}function nS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iS(e){var t=e.subjectId,n=e.routeToOnDelete,r=e.closePopup,i=nS(l.useState(),2),o=i[0],a=i[1],c=nS(l.useState(!1),2),s=c[0],f=c[1];Hm(jy.getSubjectFetchOptions(t,a),[]);var d=kf(u.SUBJECT),m=[{variant:"link",onClick:r,buttonText:"Cancel"},{variant:"danger",onClick:function(){f(!0);d.deleteSubject(t,(function(){r(),n&&p.AppLinkHelper.trigger(n)}),r)},buttonText:"Yes, delete this backbone classification",isSpinnerButton:!0,showSpinner:s}];return l.createElement(qf,{title:"Delete Subject",closePopup:r,showLoadingSpinner:!o},!!o&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,o.name),"?"),l.createElement("p",null,"Subjects that have mapped classifications cannot be deleted.")),l.createElement($f,{buttons:m})))}function oS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cS(e){var t=e.subjectId,n=oS(l.useState(),2),r=n[0],o=n[1],a=oS(l.useState(),2),c=a[0],s=a[1],f=kf(u.SUBJECT),p=jy.getSubjectFetchOptions(t,o);Hm(jy.getSubjectTreeFetchOptions(s),[]),Hm(p,[t]);return l.createElement(l.Fragment,null,l.createElement(Iv,{subjectId:t,activeAction:i.Subjects.EDIT_SUBJECT}),!!r&&!!c&&l.createElement(jv,{subject:r,subjectTree:c,saveSubject:function(e,n){return f.updateSubject(t,e,n,n)}}))}function sS(e,t){return qm(e,t)}function uS(e){switch(e){case th.Playlists:return i.Subjects.EDIT_SUBJECT_PLAYLISTS;case th.Series:return i.Subjects.EDIT_SUBJECT_SERIES;case th.Videos:return i.Subjects.EDIT_SUBJECT_VIDEOS}}function lS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pS(e){var t=lS(l.useState({}),2),n=t[0],r=t[1],o=n.presentations,a=n.classifications,s=n.memberIds,f=n.membersWithClassifications,d=ae.useBasicFetch(Array.isArray(s)&&function(e,t){switch(e){case th.Playlists:return dm(t);case th.Series:return ag(t);case th.Videos:return ab(t)}}(e.memberType,s)),m=kf(u.SUBJECT);function h(t){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:e.action,args:[e.subjectId],params:{presentationId:t}})}!function(e,t,n){var r=e.subjectId,i=e.memberType,o=e.presentationId;Hm(jy.getPresentationsFetchOptions(sS(n,"presentations")),[]),Hm(jy.getSubjectMemberIdsFetchOptions(r,i,sS(n,"memberIds")),[r,i]),Hm(!!o&&jy.getSubjectClassificationFetchOptions(r,sS(n,"classifications"),o,i),[r,i,o],!!o)}(e,0,r),function(e,t,n,r){var i=n.classifications;l.useEffect((function(){sS(r,"membersWithClassifications")(function(e,t,n){if(!t||!n)return;return t.map((function(t){return{id:t.id,name:t.name,classifications:n.map((function(n){return{id:n.id,selected:(r=t,i=n,!!i[e]&&!!i[e].data.filter((function(e){return e.id===r.id})).length)};var r,i}))}}))}(t.memberType,e,i))}),[e,i])}(d.data,e,n,r),l.useEffect((function(){!e.presentationId&&(null==o?void 0:o.length)&&h(rp.a.first(o).id)}),[e.presentationId]);var y,v,b=!!e.presentationId&&!!a;return l.createElement(l.Fragment,null,l.createElement(Iv,{subjectId:e.subjectId,presentationId:e.presentationId,activeAction:uS(e.memberType)}),l.createElement(Ti.Alert,{variant:"info",className:"m-0"},"Select which ".concat(e.memberType," are shown for each classification in this backbone classification.")+" Change the selected presentation to view different classifications."),l.createElement("div",{className:"w-50 py-2"},!!o&&l.createElement(vv,{presentations:o,currentPresentationId:e.presentationId,setCurrentPresentation:function(e){return h(e.id)}})),b&&l.createElement(Fv,{members:f||[],memberType:e.memberType,getMemberAppLink:function(t){return mh.getMemberAppLink(e.memberType,t)},getActions:function(t){return mh.getMemberActions(e.subjectId,eh.Subject,e.memberType,t)},classifications:a,getClassificationAppLink:e.presentationId&&(y=e.memberType,v=e.presentationId,function(e){var t,n=c.SUBJECTS,r=[v,e];switch(y){case th.Playlists:t=i.Subjects.EDIT_CLASSIFICATION_PLAYLISTS;break;case th.Series:t=i.Subjects.EDIT_CLASSIFICATION_SERIES;break;case th.Videos:t=i.Subjects.EDIT_CLASSIFICATION_VIDEOS}return{application:n,action:t,args:r}}),onToggleClassification:function(t,n,r){return function(e,t,n,r,i,o,a){(a?e.addObjectsToClassification.bind(e):e.removeObjectsFromClassification.bind(e))(o,n,t,r,i)}(m,e.memberType,r?[r]:s,e.subjectId,e.presentationId,t,n)}}))}function dS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hS(e){var t=e.parentId,n=dS(l.useState(),2),r=n[0],o=n[1],a=kf(u.SUBJECT);Hm(jy.getSubjectTreeFetchOptions(o),[]);var s={application:c.SUBJECTS,action:i.Subjects.PRESENTATIONS};return l.createElement(l.Fragment,null,l.createElement("div",{className:"pb-2 border-bottom"},l.createElement(Qs,{backToName:"Presentations",appLink:s})),l.createElement("h4",{className:"py-2"},"Create New Subject"),!!r&&l.createElement(jv,{subject:{parentId:t},subjectTree:r,saveSubject:function(e,t){return a.createSubject(e,function(e){return function(t){e(),t&&t.id&&p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[t.id]})}}(t),t)}}))}function yS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bS(e){var t=yS(l.useState(),2),n=t[0],r=t[1],i=yS(l.useState(!1),2),o=i[0],a=i[1],c=ae.useBasicFetch(function(e,t){switch(e){case th.Playlists:return pm(t);case th.Series:return og(t);case th.Videos:return ob(t)}}(e.memberType,e.memberId)),s=kf(u.SUBJECT);Hm(jy.getSubjectFetchOptions(e.subjectId,r),[e.subjectId]);var f=!!n&&!!c.data,p="Remove ".concat(cl(mh.singularizeMemberType(e.memberType)));return l.createElement(qf,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"Please ensure that it is not in any classifications before removing.")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),s.removeObjectsFromSubject(e.subjectId,[e.memberId],e.memberType,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(mh.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:o}]})))}function gS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ES(e){var t=e.subjectId,n=gS(l.useState({}),2),r=n[0];return function(e,t){var n=function(e){return qm(t,e)};Hm(jy.getSubjectClassificationFetchOptions(e,n("classifications")),[e]),Hm(jy.getPresentationsFetchOptions(n("presentations")),[])}(t,n[1]),l.createElement(l.Fragment,null,l.createElement(Iv,{subjectId:t,activeAction:i.Subjects.SUBJECT_CLASSIFICATIONS}),l.createElement(xv,{presentations:r.presentations,classificationDictionary:rp.a.groupBy(r.classifications,"presentationId")}))}var OS=n(210),CS=n.n(OS);function AS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wS(e){var t=e.selectedSubjectId,n=AS(l.useState(),2),r=n[0],o=n[1];Hm(jy.getSubjectTreeFetchOptions(o),[]);var a=l.useCallback((function(e){return{application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[e.id]}}),[]),s={application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT},u=[{label:"Add child",getAppLink:function(e){return Object.assign(Object.assign({},s),{params:{parentId:e.id}})}},{label:"Delete backbone classification",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.DELETE_SUBJECT,args:[e.id]}},className:"text-danger"}];return l.createElement("div",{className:"".concat(CS.a.navContainer," h-auto pr-2 border-right")},l.createElement("h5",{className:"border-bottom pb-2"},"Backbone Classifications"),l.createElement(Gs,{appLink:s,className:"d-inline-block pb-2"},l.createElement(Ss,{svgName:ys.Plus,size:gs.Small}),l.createElement("span",null,"New Backbone Classification")),!!r&&l.createElement("div",{className:"border-top pt-1"},l.createElement(Sl,{tree:r,getAppLink:a,selectedIds:[t],actions:u})))}function IS(e){var t=e.currentAppLink;return l.createElement(Vv,{navItems:hh(),currentAppLink:t})}function TS(e){return(TS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _S(e,t,n){return t&&LS(e.prototype,t),n&&LS(e,n),e}function xS(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PS(e,t)}function PS(e,t){return(PS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function NS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=DS(e);if(t){var i=DS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return RS(this,n)}}function RS(e,t){return!t||"object"!==TS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function DS(e){return(DS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var MS=function(e){xS(n,e);var t=NS(n);function n(){return kS(this,n),t.apply(this,arguments)}return _S(n,[{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"appRoutes",get:function(){return{"manage/playlists(/)":"index","manage/playlists/new(/)":"newPlaylist","manage/playlists/search(/)":"searchPlaylists","manage/playlists/:id(/)":"editPlaylist","manage/playlists/:id/videos(/)":"editPlaylistVideos","manage/playlists/:id/classifications(/)":"editPlaylistSubjects","manage/playlists/:id/audiences(/)":"editPlaylistAudiences"}}},{key:"appLinks",get:function(){return["deletePlaylist","removeVideo","uploadImage","removeFromSubject"]}}]),n}(p.AppRouter),US=function(e){xS(n,e);var t=NS(n);function n(){return kS(this,n),t.apply(this,arguments)}return _S(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Tf.getInstance(t,e)}))}},{key:"index",value:function(e){this.layout.showChildView(T,l.createElement(vb,{cursor:null==e?void 0:e.cursor}))}},{key:"searchPlaylists",value:function(e){this.layout.showChildView(T,l.createElement(Sb,{query:null==e?void 0:e.query,cursor:null==e?void 0:e.cursor}))}},{key:"newPlaylist",value:function(){this.layout.showChildView(T,l.createElement(rb,null))}},{key:"editPlaylist",value:function(e){this.layout.showChildView(T,l.createElement(_m,{key:e,playlistId:e}))}},{key:"editPlaylistVideos",value:function(e){this.layout.showChildView(T,l.createElement(nb,{key:e,playlistId:e}))}},{key:"editPlaylistSubjects",value:function(e){this.layout.showChildView(T,l.createElement(Wv,{key:e,playlistId:e}))}},{key:"editPlaylistAudiences",value:function(e){this.layout.showChildView(T,l.createElement(qv,{key:e,playlistId:e}))}},{key:"deletePlaylist",value:function(e){var t=Object.assign({playlistId:e},this.getPopupProps());this.layout.showChildView(k,l.createElement(Om,Object.assign({},t)))}},{key:"removeVideo",value:function(e,t){var n=Object.assign({playlistId:e,videoId:t},this.getPopupProps());this.layout.showChildView(k,l.createElement(fb,Object.assign({},n)))}},{key:"removeFromSubject",value:function(e,t){var n=Object.assign({subjectId:t,memberId:e,memberType:th.Playlists},this.getPopupProps());this.layout.showChildView(k,l.createElement(bS,Object.assign({},n)))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(rm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Playlists Application"}},{key:"channelName",get:function(){return c.PLAYLISTS}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{provider:im}}}}],[{key:"router",get:function(){return MS}}]),n}(p.Application),FS=function(e){var t=e.children;return l.createElement(Ou,null,t)},VS=function(){return{url:"/api/domain/v2/me/ratings",key:"ratings"}},BS=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:wi.string().trim().max(350,"Description is too long").default(""),rating:wi.object().shape({id:wi.string()}).default({}).noUnknown(),tallPoster:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),banner:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown()}).noUnknown(),zS=function(e,t){var n=c.SERIES,r=i.Series,o=[{label:"Edit Series Details",appLink:{application:n,action:r.EDIT_SERIES,args:[t]}},{label:"Videos",appLink:{application:n,action:r.EDIT_SERIES_VIDEOS,args:[t]}}];return um(e)&&o.push.apply(o,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_SERIES_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_SERIES_AUDIENCES,args:[t]}}]),o};function HS(e){var t=ci(),n=Ui(t);return l.createElement(vi,null,l.createElement(Ri,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this series",autoFocus:!0}),l.createElement(Ri,{label:"Description",as:"textarea",name:"description",id:"description",maxLength:350,value:t.values.description,placeholder:"Describe this series here",showCharacterCounter:!0}),l.createElement(rl,{ratings:e.ratings}),l.createElement(Fu,{imageType:nu.TallPosters,fieldName:"tallPoster",application:c.SERIES,uploadAction:i.Series.UPLOAD_IMAGE}),l.createElement(Fu,{imageType:nu.Banners,fieldName:"banner",application:c.SERIES,uploadAction:i.Playlists.UPLOAD_IMAGE}),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},e.id?"Save":"Create"),!!e.actions&&l.createElement(Qu,{actions:e.actions})))}function qS(e){return l.createElement(ji,{initialValues:e.series,validationSchema:BS,onSubmit:e.saveSeries},l.createElement(HS,{id:e.series&&e.series.id,ratings:e.ratings}))}function JS(e){return l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:zS(e.currentUser,e.seriesId),isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}));var t}function $S(e){var t,n=Object(v.useDispatch)(),r=zf(),o=ae.useBasicFetch(og(e.seriesId)),a=ae.useBasicFetch(VS()),s=ae.useBasicFetch(jm());return l.createElement(l.Fragment,null,!!s.data&&l.createElement(JS,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES,currentUser:s.data}),!!o.data&&!!a.data&&l.createElement(qS,{series:o.data,saveSeries:function(t,i){ae.fetch(n,sg(e.seriesId,t,(function(){r.success("Successfully updated series.")}),(function(){r.error("Failed to update series.")}),i))},ratings:a.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit series page ",l.createElement(Gs,{className:"info-link",appLink:(t=e.seriesId,{application:c.SERIES,action:i.Series.LEGACY_EDIT_SERIES,args:[t]})},"here"),"."))}function KS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WS(e){var t=KS(l.useState({}),2),n=t[0],r=t[1],o=ae.useBasicFetch(og(e.seriesId)),a=ae.useBasicFetch(jm()),c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Hm(jy.getObjectLevelsFetchOptions(e,th.Series,r("seriesLevels")),[e]),Hm(jy.getObjectAudiencesFetchOptions(e,th.Series,r("seriesAudiences")),[e,t.seriesLevels]),Um([jy.getPresentationsFetchOptions(r("presentations")),jy.getLevelsFetchOptions(r("levels"))],[]),Hm(!!t.currentPresentation&&jy.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.seriesId,n,r),Bv(n,r);var s=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.seriesLevels&&n.seriesAudiences);return l.createElement(l.Fragment,null,!!a.data&&l.createElement(JS,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES_AUDIENCES,currentUser:a.data}),l.createElement(Xu,{object:o.data}),!!s&&l.createElement(Ny,{objectLevels:n.seriesLevels,objectAudiences:n.seriesAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:qm(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:th.Series,saveLevels:function(t,n,r){return c.updateObjectLevels(e.seriesId,t,th.Series,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.seriesId,n.currentPresentation.id,t,th.Series,r,r)}}))}function ZS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||QS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GS(e){return function(e){if(Array.isArray(e))return XS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||QS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QS(e,t){if(e){if("string"==typeof e)return XS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XS(e,t):void 0}}function XS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eE(e){var t=ZS(l.useState({}),2),n=t[0],r=t[1],o=ae.useBasicFetch(og(e.seriesId)),a=ae.useBasicFetch(jm()),c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Um([jy.getSubjectTreeFetchOptions(r("subjectTree")),jy.getPresentationsFetchOptions(r("presentations"))],[]),Hm(jy.getObjectSubjectsFetchOptions(e,th.Series,r("seriesSubjects")),[e]),Hm(!!t.currentPresentation&&jy.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.seriesSubjects]);var i=function(e,t){return[].concat(GS(t.subjectClassifications||[]),GS(e))},o=t.seriesSubjects&&t.seriesSubjects.map((function(e){return jy.getSubjectClassificationFetchOptions(e.id,qm(n,"subjectClassifications",i))}));Um(o,[t.seriesSubjects],!!o),Hm(jy.getObjectClassificationsFetchOptions(e,th.Series,r("seriesClassifications")),[e,t.seriesSubjects])}(e.seriesId,n,r),Bv(n,r);var s=!!(n.seriesSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.seriesClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!a.data&&l.createElement(JS,{seriesId:e.seriesId,activeAction:i.Series.EDIT_SERIES_SUBJECTS,currentUser:a.data}),l.createElement(Xu,{object:o.data}),s&&l.createElement(Ev,{objectSubjects:n.seriesSubjects,subjectTree:n.subjectTree,memberType:th.Series,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:qm(r,"currentPresentation"),objectClassifications:n.seriesClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.seriesId,t,th.Series,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.seriesId,n.currentPresentation.id,t,th.Series,r,r)}}))}function tE(){var e=Object(v.useDispatch)(),t=zf(),n=ae.useBasicFetch(VS());return l.createElement(l.Fragment,null,!!n.data&&l.createElement(qS,{saveSeries:function(n,r){var o=function(){t.error("Failed to create series.")},a=function(e){t.success("Successfully created series."),function(e){p.AppLinkHelper.trigger({application:c.SERIES,action:i.Series.EDIT_SERIES,args:[e.id]})}(e)};ae.fetch(e,cg(n,(function(t){var n={permissions:sm()};ae.fetch(e,sg(t.id,n,a,o,r))}),o))},ratings:n.data}))}function nE(e){return(nE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oE(e,t,n){return t&&iE(e.prototype,t),n&&iE(e,n),e}function aE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cE(e,t)}function cE(e,t){return(cE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lE(e);if(t){var i=lE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return uE(this,n)}}function uE(e,t){return!t||"object"!==nE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lE(e){return(lE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fE=function(e){aE(n,e);var t=sE(n);function n(){return rE(this,n),t.apply(this,arguments)}return oE(n,[{key:"channelName",get:function(){return c.SERIES}},{key:"appRoutes",get:function(){return{"manage/series/new(/)":"newSeries","manage/series/:id(/)":"editSeries","manage/series/:id/videos(/)":"editSeriesVideos","manage/series/:id/classifications(/)":"editSeriesSubjects","manage/series/:id/audiences(/)":"editSeriesAudiences","manage/legacy/series/:id(/)":"legacyEditSeries"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),pE=function(e){aE(n,e);var t=sE(n);function n(){return rE(this,n),t.apply(this,arguments)}return oE(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Tf.getInstance(t,e)}))}},{key:"newSeries",value:function(){this.layout.showChildView(T,l.createElement(tE,null))}},{key:"editSeries",value:function(e){this.layout.showChildView(T,l.createElement($S,{seriesId:e}))}},{key:"editSeriesVideos",value:function(e){this.legacyEditSeries(e)}},{key:"editSeriesSubjects",value:function(e){this.layout.showChildView(T,l.createElement(eE,{seriesId:e}))}},{key:"editSeriesAudiences",value:function(e){this.layout.showChildView(T,l.createElement(WS,{seriesId:e}))}},{key:"legacyEditSeries",value:function(e){p.LocationUtils.Redirect("/manage/legacy/series/".concat(e),!0)}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(rm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Series Application"}},{key:"channelName",get:function(){return c.SERIES}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{provider:FS}}}}],[{key:"router",get:function(){return fE}}]),n}(p.Application);function dE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hE(e){var t=dE(l.useState(),2),n=t[0],r=t[1],i=dE(l.useState(!1),2),o=i[0],a=i[1],c=ae.useBasicFetch(function(e,t){switch(e){case nh.Playlists:return pm(t);case nh.Series:return og(t);case nh.Videos:return ob(t)}}(e.memberType,e.memberId)),s=kf(u.SUBJECT);Hm(jy.getAudienceFetchOptions(e.audienceId,r),[e.audienceId]);var f=!!n&&!!c.data,p="Remove ".concat(cl(Sh.singularizeMemberType(e.memberType)));return l.createElement(qf,{title:p,closePopup:e.closePopup,showLoadingSpinner:!f},f&&l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("p",null,"Are you sure you want to remove ",l.createElement("strong",null,c.data.name)," from ",l.createElement("strong",null,n.name),"?"),l.createElement("p",null,"This will not remove it from the backbone level.")),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),s.removeObjectsFromAudience(e.audienceId,[e.memberId],e.memberType,null,null,e.closePopup,e.closePopup)},buttonText:"Yes, remove this ".concat(Sh.singularizeMemberType(e.memberType)),isSpinnerButton:!0,showSpinner:o}]})))}function yE(e){return(yE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gE(e,t,n){return t&&bE(e.prototype,t),n&&bE(e,n),e}function SE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&EE(e,t)}function EE(e,t){return(EE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AE(e);if(t){var i=AE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return CE(this,n)}}function CE(e,t){return!t||"object"!==yE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function AE(e){return(AE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jE,wE=function(e){SE(n,e);var t=OE(n);function n(){return vE(this,n),t.apply(this,arguments)}return gE(n,[{key:"channelName",get:function(){return c.SUBJECTS}},{key:"appRoutes",get:function(){return{"manage/subjects(/)":"subjects","manage/subjects/add-objects(/)":"addSubjectMembers","manage/subjects/new(/)":"newSubject","manage/subjects/:id/edit(/)":"editSubject","manage/subjects/:id/edit/playlists(/)":"editSubjectPlaylists","manage/subjects/:id/edit/series(/)":"editSubjectSeries","manage/subjects/:id/edit/videos(/)":"editSubjectVideos","manage/subjects/:id/classifications(/)":"subjectClassifications","manage/subjects/classifications(/)":"classifications","manage/subjects/presentations/:id/classifications(/)":"presentationClassifications","manage/subjects/presentations/:id/classifications/new(/)":"newClassification","manage/subjects/presentations/:id/classifications/:id/edit(/)":"editClassification","manage/subjects/presentations/:id/classifications/:id/edit/playlists(/)":"editClassificationPlaylists","manage/subjects/presentations/:id/classifications/:id/edit/series(/)":"editClassificationSeries","manage/subjects/presentations/:id/classifications/:id/edit/videos(/)":"editClassificationVideos","manage/subjects/levels(/)":"levels","manage/subjects/levels/new(/)":"newLevel","manage/subjects/levels/:id(/)":"level","manage/subjects/levels/:id/edit(/)":"editLevel","manage/subjects/levels/:id/edit/playlists(/)":"editLevelPlaylists","manage/subjects/levels/:id/edit/series(/)":"editLevelSeries","manage/subjects/levels/:id/edit/videos(/)":"editLevelVideos","manage/subjects/levels/:id/audiences(/)":"levelAudiences","manage/subjects/audiences(/)":"audiences","manage/subjects/presentations/:id/audiences(/)":"presentationAudiences","manage/subjects/presentations/:id/audiences/new(/)":"newAudience","manage/subjects/presentations/:id/audiences/:id/edit(/)":"editAudience","manage/subjects/presentations/:id/audiences/:id/edit/playlists(/)":"editAudiencePlaylists","manage/subjects/presentations/:id/audiences/:id/edit/series(/)":"editAudienceSeries","manage/subjects/presentations/:id/audiences/:id/edit/videos(/)":"editAudienceVideos","manage/subjects/presentations(/)":"presentations","manage/subjects/presentations/new":"newPresentation","manage/subjects/presentations/:id(/)":"editPresentation"}}},{key:"appLinks",get:function(){return["deleteClassification","removeClassificationMember","deleteSubject","removeSubjectMember","deleteAudience","removeLevelMember","removeAudienceMember","uploadImage"]}}]),n}(p.AppRouter),IE=function(e){SE(n,e);var t=OE(n);function n(){return vE(this,n),t.apply(this,arguments)}return gE(n,[{key:"initialize",value:function(){var e=this;this.subjectDataService=Tf.getInstance(u.SUBJECT,this),Ci.a.values(u).forEach((function(t){return Tf.getInstance(t,e)}))}},{key:"subjects",value:function(){this.subjectDataService.getSubjectTree((function(e){var t=!!e.children&&e.children[0];t?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_SUBJECT,args:[t.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT},{replace:!0})}))}},{key:"newSubject",value:function(e){var t={parentId:e.parentId};this.layout.showChildView(T,l.createElement(hS,Object.assign({key:e.parentId},t))),this.renderSubjectsLeftNav()}},{key:"editSubject",value:function(e){this.layout.showChildView(T,l.createElement(cS,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"editSubjectPlaylists",value:function(e,t){var n={subjectId:e,memberType:th.Playlists,action:i.Subjects.EDIT_SUBJECT_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(pS,Object.assign({key:"".concat(e,":playlists")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectSeries",value:function(e,t){var n={subjectId:e,memberType:th.Series,action:i.Subjects.EDIT_SUBJECT_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(pS,Object.assign({key:"".concat(e,":series")},n))),this.renderSubjectsLeftNav(e)}},{key:"editSubjectVideos",value:function(e,t){var n={subjectId:e,memberType:th.Videos,action:i.Subjects.EDIT_SUBJECT_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(pS,Object.assign({key:"".concat(e,":videos")},n))),this.renderSubjectsLeftNav(e)}},{key:"subjectClassifications",value:function(e){this.layout.showChildView(T,l.createElement(ES,{key:e,subjectId:e})),this.renderSubjectsLeftNav(e)}},{key:"addSubjectMembers",value:function(e){var t=e.memberType,n=e.objectIds;if(t&&n){var r={memberType:t,objectIds:Array.isArray(n)?n:[n]};this.layout.showChildView(T,l.createElement(tS,Object.assign({},r))),this.hideLeftNav()}}},{key:"removeSubjectMember",value:function(e,t,n){var r=Object.assign({subjectId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(k,l.createElement(bS,Object.assign({},r)))}},{key:"deleteSubject",value:function(e){var t=e.toString()===this.currentLeftNavId.toString()?{application:c.SUBJECTS,action:i.Subjects.NEW_SUBJECT}:null,n=Object.assign({subjectId:e,routeToOnDelete:t||null},this.getPopupProps());this.layout.showChildView(k,l.createElement(iS,Object.assign({},n)))}},{key:"classifications",value:function(){var e={objectType:"classifications",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_CLASSIFICATIONS,args:[e.id]}}};this.layout.showChildView(T,l.createElement(Yg,Object.assign({},e))),this.hideLeftNav()}},{key:"presentationClassifications",value:function(e){this.subjectDataService.getClassificationTree(e,(function(t){var n=!!t.children&&t.children[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_CLASSIFICATION,args:[e,n.id]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]},{replace:!0})}))}},{key:"newClassification",value:function(e,t){var n={presentationId:e,parentId:t.parentId};this.layout.showChildView(T,l.createElement(ig,Object.assign({key:t.parentId},n))),this.renderClassificationLeftNav(e)}},{key:"editClassification",value:function(e,t){var n={presentationId:e,classificationId:t};this.layout.showChildView(T,l.createElement(Qb,Object.assign({key:t},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationPlaylists",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:th.Playlists};this.layout.showChildView(T,l.createElement(tg,Object.assign({key:"".concat(t,":playlists")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationSeries",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:th.Series};this.layout.showChildView(T,l.createElement(tg,Object.assign({key:"".concat(t,":series")},n))),this.renderClassificationLeftNav(e,t)}},{key:"editClassificationVideos",value:function(e,t){var n={presentationId:e,classificationId:t,memberType:th.Videos};this.layout.showChildView(T,l.createElement(tg,Object.assign({key:"".concat(t,":videos")},n))),this.renderClassificationLeftNav(e,t)}},{key:"removeClassificationMember",value:function(e,t,n){var r=Object.assign({classificationId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(k,l.createElement(fg,Object.assign({},r)))}},{key:"deleteClassification",value:function(e,t){var n=t===this.currentLeftNavId?{application:c.SUBJECTS,action:i.Subjects.NEW_CLASSIFICATION,args:[e]}:null,r=Object.assign({classificationId:t,routeToOnDelete:n||null},this.getPopupProps());this.layout.showChildView(k,l.createElement(Wb,Object.assign({},r)))}},{key:"levels",value:function(){this.layout.showChildView(T,l.createElement(vg,null)),this.renderLevelsLeftNav()}},{key:"newLevel",value:function(){this.layout.showChildView(T,l.createElement(bg,null)),this.renderLevelsLeftNav()}},{key:"level",value:function(e){p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_LEVEL,args:[e]},{replace:!0})}},{key:"editLevel",value:function(e){this.layout.showChildView(T,l.createElement(mg,{key:e,id:e})),this.renderLevelsLeftNav(e)}},{key:"levelAudiences",value:function(e){this.layout.showChildView(T,l.createElement(Tg,{key:e,levelId:e})),this.renderLevelsLeftNav(e)}},{key:"editLevelPlaylists",value:function(e,t){var n={levelId:e,memberType:nh.Playlists,action:i.Subjects.EDIT_LEVEL_PLAYLISTS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(Pg,Object.assign({key:"".concat(e,":playlists")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelSeries",value:function(e,t){var n={levelId:e,memberType:nh.Series,action:i.Subjects.EDIT_LEVEL_SERIES,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(Pg,Object.assign({key:"".concat(e,":series")},n))),this.renderLevelsLeftNav(e)}},{key:"editLevelVideos",value:function(e,t){var n={levelId:e,memberType:nh.Videos,action:i.Subjects.EDIT_LEVEL_VIDEOS,presentationId:null==t?void 0:t.presentationId};this.layout.showChildView(T,l.createElement(Pg,Object.assign({key:"".concat(e,":videos")},n))),this.renderLevelsLeftNav(e)}},{key:"removeLevelMember",value:function(e,t,n){var r=Object.assign({levelId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(k,l.createElement(Dg,Object.assign({},r)))}},{key:"audiences",value:function(){var e={objectType:"audiences",getAppLink:function(e){return{application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e.id]}}};this.layout.showChildView(T,l.createElement(Yg,Object.assign({},e))),this.hideLeftNav()}},{key:"removeAudienceMember",value:function(e,t,n){var r=Object.assign({audienceId:e,memberId:t,memberType:n},this.getPopupProps());this.layout.showChildView(k,l.createElement(hE,Object.assign({},r)))}},{key:"presentationAudiences",value:function(e){this.subjectDataService.getAudiences(e,(function(t){var n=!!t&&t[0];n?p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.EDIT_AUDIENCE,args:[e,n.masterId]},{replace:!0}):p.AppLinkHelper.trigger({application:c.SUBJECTS,action:i.Subjects.NEW_AUDIENCE,args:[e]},{replace:!0})}))}},{key:"newAudience",value:function(e){this.layout.showChildView(T,l.createElement(_b,{presentationId:e})),this.hideLeftNav()}},{key:"editAudience",value:function(e,t){var n={presentationId:e,audienceId:t};this.layout.showChildView(T,l.createElement(Ib,Object.assign({key:t},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudiencePlaylists",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:nh.Playlists};this.layout.showChildView(T,l.createElement(Fb,Object.assign({key:"".concat(t,":playlists")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceSeries",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:nh.Series};this.layout.showChildView(T,l.createElement(Fb,Object.assign({key:"".concat(t,":series")},n))),this.renderAudienceLeftNav(e,t)}},{key:"editAudienceVideos",value:function(e,t){var n={presentationId:e,audienceId:t,memberType:nh.Videos};this.layout.showChildView(T,l.createElement(Fb,Object.assign({key:"".concat(t,":videos")},n))),this.renderAudienceLeftNav(e,t)}},{key:"deleteAudience",value:function(e,t){var n={application:c.SUBJECTS,action:i.Subjects.PRESENTATION_AUDIENCES,args:[e]},r=Object.assign({id:t,routeToOnDelete:n},this.getPopupProps());this.layout.showChildView(k,l.createElement(Ab,Object.assign({},r)))}},{key:"presentations",value:function(){this.layout.showChildView(T,l.createElement(qg,null)),this.hideLeftNav()}},{key:"newPresentation",value:function(){this.layout.showChildView(T,l.createElement(Jg,null))}},{key:"editPresentation",value:function(e){this.layout.showChildView(T,l.createElement(Fg,{key:e,id:e})),this.hideLeftNav()}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(rm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"renderClassificationLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedClassificationId:t};this.layout.showChildView(I,l.createElement($b,Object.assign({},n)))}},{key:"renderSubjectsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(I,l.createElement(wS,{selectedSubjectId:e}))}},{key:"renderAudienceLeftNav",value:function(e,t){this.setCurrentLeftNavItem(t);var n={presentationId:e,selectedAudienceId:t};this.layout.showChildView(I,l.createElement(Db,Object.assign({},n)))}},{key:"renderLevelsLeftNav",value:function(e){this.setCurrentLeftNavItem(e),this.layout.showChildView(I,l.createElement(Cg,{selectedLevelId:e}))}},{key:"setCurrentLeftNavItem",value:function(e){this.currentLeftNavId=e||null}},{key:"hideLeftNav",value:function(){this.setCurrentLeftNavItem(),this.layout.hideLeftNav()}},{key:"getTopNav",value:function(e){return l.createElement(IS,{currentAppLink:e})}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Subjects Application"}},{key:"channelName",get:function(){return c.SUBJECTS}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{provider:Ou,getTopNavView:this.getTopNav}}}}],[{key:"router",get:function(){return wE}}]),n}(p.Application),TE=function(e){return{url:"/api/domain/v1/themes/".concat(e),key:"themes:".concat(e)}},kE=function(e){var t="/api/domain/v1/themes",n="themes";return e&&(t+="?type=".concat(e),n+=":type:".concat(e)),{url:t,key:n}},LE=function(e,t,n,r){return{url:"/api/domain/v1/themes",key:"theme",data:e,type:ce.a.POST,invalidationKeys:"themes",success:t,error:n,always:r}},_E=function(e,t,n,r,i){return{url:"/api/domain/v1/themes/".concat(e),key:"update:theme:".concat(e),data:t,type:ce.a.PUT,success:n,error:r,always:i}},xE=function(e,t,n,r){return{url:"/api/domain/v1/themes/".concat(e),key:"delete:theme:".concat(e),type:ce.a.DELETE,invalidationKeys:"themes",success:t,error:n,always:r}},PE=function(e){return{application:c.THEMES,action:i.Themes.EDIT_THEME,args:[e.id]}};function NE(){var e=ae.useBasicFetch(kE());return e.data?l.createElement(tl,{objects:e.data,getObjectAppLink:PE,newObjectAppLink:{application:c.THEMES,action:i.Themes.NEW_THEME},objectName:"Theme"}):l.createElement(l.Fragment,null)}!function(e){e.Glance="glance"}(jE||(jE={}));var RE=[{key:"topLeft",label:"Top Left"},{key:"topRight",label:"Top Right"},{key:"bottomLeft",label:"Bottom Left"},{key:"bottomRight",label:"Bottom Right"}];function DE(){var e=ci();return l.createElement("div",{className:"form-group"},RE.map((function(t){var n="data.".concat(t.key);return l.createElement(Fu,{label:t.label,imageType:nu.HeroBanners,fieldName:n,application:c.THEMES,uploadAction:i.Videos.UPLOAD_IMAGE,setSelectedImage:function(t){e.setFieldValue(n,{fileId:t.id,url:t.url,fileIdType:iu.ImageAPIv2})}})})))}var ME=wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),UE=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),type:wi.mixed().required("Type is required"),data:wi.mixed().when("type",{is:jE.Glance,then:wi.object().shape({topLeft:ME,topRight:ME,bottomLeft:ME,bottomRight:ME}).noUnknown(),otherwise:wi.mixed().strip(!0)}).default({})}).noUnknown();function FE(e){var t=ci(),n=function(e){switch(e){case jE.Glance:return DE;default:return}}(t.values.type);return l.createElement(vi,null,l.createElement(Ri,{label:"Name",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this theme",autoFocus:!0}),l.createElement(Ri,{as:"select",label:"Type",name:"type",id:"type",value:t.values.type},l.createElement("option",{value:null},"Select a type..."),Ci.a.getEnumKeys(jE).map((function(e){return l.createElement("option",{key:e,value:jE[e]},e)}))),!!n&&l.createElement(n,null),l.createElement("div",{className:"d-flex justify-content-between align-items-center"},l.createElement(ro,{isNew:e.isNew}),!!e.actions&&l.createElement(Qu,{actions:e.actions})))}function VE(e){var t;return l.createElement(ji,{initialValues:e.theme,validationSchema:UE,onSubmit:e.saveTheme},l.createElement(FE,{isNew:!(null===(t=e.theme)||void 0===t?void 0:t.id),actions:e.actions}))}function BE(){var e=Object(v.useDispatch)();return l.createElement(VE,{saveTheme:function(t,n){ae.fetch(e,LE(t,(function(e){n(),p.AppLinkHelper.trigger({application:c.THEMES,action:i.Themes.EDIT_THEME,args:[e.id]})}),null,n))}})}function zE(e){var t=Object(v.useDispatch)(),n=zf(),r=ae.useBasicFetch(TE(e.id));return r.data?l.createElement(VE,{theme:r.data,saveTheme:function(r,i){ae.fetch(t,_E(e.id,r,(function(){n.success("Successfully updated theme")}),(function(){n.error("Failed to update theme")}),i))},actions:[{label:"Delete theme",className:"btn btn-danger",button:!0,appLink:{application:c.THEMES,action:i.Themes.DELETE_THEME,args:[e.id]}}]}):l.createElement(l.Fragment,null)}function HE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JE(e){var t=Object(v.useDispatch)(),n=zf(),r=HE(l.useState(!1),2),o=r[0],a=r[1],s=ae.useBasicFetch(TE(e.id));return l.createElement(qf,{title:"Delete Theme",closePopup:e.closePopup,showLoadingSpinner:!s.data},l.createElement(l.Fragment,null,l.createElement("p",null,"Are you sure you want to delete ",l.createElement("strong",null,s.data.name),"?"),l.createElement($f,{buttons:[{variant:"link",onClick:e.closePopup,buttonText:"Cancel"},{variant:"danger",onClick:function(){a(!0),ae.fetch(t,xE(e.id,(function(){n.success("Successfully deleted theme"),p.AppLinkHelper.trigger({application:c.THEMES,action:i.Themes.THEMES})}),(function(){n.error("Failed to delete theme")})))},buttonText:"Yes, delete this theme",isSpinnerButton:!0,showSpinner:o}]})))}var $E=function(e){var t=e.children;return l.createElement(Ou,null,t)};function KE(e){return(KE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function YE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZE(e,t,n){return t&&WE(e.prototype,t),n&&WE(e,n),e}function GE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QE(e,t)}function QE(e,t){return(QE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function XE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tO(e);if(t){var i=tO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eO(this,n)}}function eO(e,t){return!t||"object"!==KE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tO(e){return(tO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nO=function(e){GE(n,e);var t=XE(n);function n(){return YE(this,n),t.apply(this,arguments)}return ZE(n,[{key:"channelName",get:function(){return c.THEMES}},{key:"appRoutes",get:function(){return{"manage/themes(/)":"themes","manage/themes/new(/)":"newTheme","manage/themes/:id(/)":"editTheme"}}},{key:"appLinks",get:function(){return["deleteTheme","uploadImage"]}}]),n}(p.AppRouter),rO=function(e){GE(n,e);var t=XE(n);function n(){return YE(this,n),t.apply(this,arguments)}return ZE(n,[{key:"themes",value:function(){this.layout.showChildView(T,l.createElement(NE,null))}},{key:"newTheme",value:function(){this.layout.showChildView(T,l.createElement(BE,null))}},{key:"editTheme",value:function(e){this.layout.showChildView(T,l.createElement(zE,{id:e}))}},{key:"deleteTheme",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(JE,{id:e,closePopup:function(){return t.layout.closePopup()}}))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(rm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"name",get:function(){return"Themes Application"}},{key:"channelName",get:function(){return c.THEMES}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{provider:$E}}}}],[{key:"router",get:function(){return nO}}]),n}(Ef),iO=function(e){var t=e.children;return l.createElement(Ou,null,t)},oO=function(e,t){var n=c.VIDEOS,r=i.Videos,o=[{label:"Edit Video Details",appLink:{application:n,action:r.EDIT_VIDEO,args:[t]}}];return um(e)?[].concat(o,[{label:"Backbone Classifications",appLink:{application:n,action:r.EDIT_VIDEO_SUBJECTS,args:[t]}},{label:"Audiences",appLink:{application:n,action:r.EDIT_VIDEO_AUDIENCES,args:[t]}},{label:"Aliases",appLink:{application:n,action:r.EDIT_VIDEO_ALIASES,args:[t]}}]):o};function aO(e){var t,n=oO(e.currentUser,e.videoId);return n.length<2?l.createElement(l.Fragment,null):l.createElement("div",{className:"py-2"},l.createElement(pl,{tabs:n,isItemActive:(t=e.activeAction,function(e){return e.appLink.action===t})}))}var cO,sO=wi.object().shape({name:wi.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:wi.string().trim().default(""),status:wi.mixed().required("Status is required"),productionYear:wi.number().min(1900),rating:wi.object().shape({id:wi.string()}).default({}).noUnknown(),thumbnail:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),heroBanner:wi.object().shape({fileId:wi.string(),fileIdType:wi.mixed(),url:wi.string()}).default({}).noUnknown(),glance:wi.object().shape({theme:wi.string(),format:wi.mixed(),content:wi.string(),type:wi.mixed()}).default({}).noUnknown()}).noUnknown();!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(cO||(cO={}));var uO,lO=n(52),fO=n.n(lO);function pO(e){var t,n,r,i,o,a,c=ci();return l.createElement("div",{className:"form-group p-2 border"},l.createElement("div",{className:"border-bottom mb-2"},l.createElement("label",null,"Summary")),l.createElement(Ri,{as:"select",label:"Theme",name:"glance.theme",id:"type",value:null===(t=c.values.glance)||void 0===t?void 0:t.theme},l.createElement("option",{value:null},"Select a theme..."),e.themes.map((function(e){return l.createElement("option",{key:e.id,value:e.name},e.name)}))),l.createElement(Ri,{as:"select",label:"Format",name:"glance.format",id:"type",value:null===(n=c.values.glance)||void 0===n?void 0:n.format},l.createElement("option",{value:null},"Select a format..."),Ci.a.getEnumKeys(uO).map((function(e){return l.createElement("option",{key:e,value:uO[e]},e)}))),l.createElement(Ri,{label:"Content",as:"textarea",name:"glance.content",id:"content",value:null===(r=c.values.glance)||void 0===r?void 0:r.content}),(null===(i=c.values.glance)||void 0===i?void 0:i.format)===uO.Markdown&&(null===(o=c.values.glance)||void 0===o?void 0:o.content)&&l.createElement("div",{className:"form-group"},l.createElement("label",null,"Content Preview"),l.createElement("div",{className:"border rounded py-2",dangerouslySetInnerHTML:{__html:lO(null===(a=c.values.glance)||void 0===a?void 0:a.content)}})))}function dO(e){switch(e){case cO.Published:return"badge-success";case cO.Archived:return"badge-danger";case cO.Draft:return"badge-warning";case cO.Pending:return"badge-info";case cO.Rejected:return"badge-dark";default:return"badge-secondary"}}function mO(e){var t=ci(),n=!!e.rightslineId,r=um(e.currentUser);return l.createElement(vi,null,n&&l.createElement(Ri,{label:"Rightsline ID",name:"rightslineId",id:"rightslineId",value:e.rightslineId,disabled:!0}),l.createElement(Ri,{label:"Name",type:"text",name:"name",id:"name",value:t.values.name,placeholder:"Enter a name for this video",disabled:n,autoFocus:!0}),l.createElement("div",{className:"form-group"},l.createElement("label",null,"Status"),l.createElement("div",null,l.createElement("span",{className:"badge ".concat(dO(t.values.status))},cO[t.values.status]))),l.createElement(Ri,{label:"Description",as:"textarea",name:"description",id:"description",value:t.values.description,placeholder:"Describe this video here",disabled:n,showCharacterCounter:!0}),l.createElement(Ri,{label:"Production Year",type:"number",name:"productionYear",id:"productionYear",value:t.values.productionYear,disabled:n}),l.createElement(rl,{ratings:e.ratings,disabled:n}),l.createElement(Fu,{imageType:nu.Thumbnails,fieldName:"thumbnail",application:c.VIDEOS,uploadAction:i.Videos.UPLOAD_IMAGE}),l.createElement(Fu,{imageType:nu.HeroBanners,fieldName:"heroBanner",application:c.VIDEOS,uploadAction:i.Videos.UPLOAD_IMAGE}),r&&l.createElement(pO,{themes:e.themes}),l.createElement(ro,{isNew:!e.id}))}function hO(e,t){if(e)return t?Object.assign(Object.assign({},e),t):e}function yO(e){return l.createElement(ji,{initialValues:hO(e.video,e.rightslineVideo),validationSchema:sO,onSubmit:e.saveVideo,allowInitialSubmit:!!e.rightslineVideo},l.createElement(mO,{id:e.video&&e.video.id,ratings:e.ratings,themes:e.themes,currentUser:e.currentUser,rightslineId:e.rightslineId}))}function vO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gO(e){var t,n=Object(v.useDispatch)(),r=vO(l.useState(!1),2),o=r[0],a=r[1],s=ae.useBasicFetch(ob(e.videoId)),u=ae.useBasicFetch(cb(e.videoId)),f=ae.useBasicFetch(VS()),p=ae.useBasicFetch(kE(jE.Glance)),d=ae.useBasicFetch(jm());var m,h=!!s.data&&!!f.data&&!!p.data&&!!d.data&&u.isComplete;return l.createElement(l.Fragment,null,!!d.data&&l.createElement(aO,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO,currentUser:d.data}),!!u.data&&l.createElement("div",{className:"pt-3 text-right"},l.createElement(Ti.Button,{variant:"outline-dark",size:"sm",onClick:function(){u.isFetching||(a(!0),ae.fetch(n,cb(e.videoId)))}},"Sync from Rightsline")),h&&l.createElement(yO,{video:s.data,saveVideo:function(t,r){ae.fetch(n,sb(e.videoId,t,null,null,r))},ratings:f.data,themes:p.data,currentUser:d.data,rightslineId:null===(t=u.data)||void 0===t?void 0:t.rightslineId,rightslineVideo:o&&u.data}),l.createElement("div",{className:"py-3 text-right"},"Can't find what you're looking for? Try the old edit video page ",l.createElement(Gs,{className:"info-link",appLink:(m=e.videoId,{application:c.VIDEOS,action:i.Videos.LEGACY_EDIT_VIDEO,args:[m]})},"here"),"."))}function SO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return EO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OO(e){var t=SO(l.useState({}),2),n=t[0],r=t[1],o=ae.useBasicFetch(ob(e.videoId)),a=ae.useBasicFetch(jm()),c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Hm(jy.getObjectLevelsFetchOptions(e,th.Videos,r("videoLevels")),[e]),Hm(jy.getObjectAudiencesFetchOptions(e,th.Videos,r("videoAudiences")),[e,t.videoLevels]),Um([jy.getPresentationsFetchOptions(r("presentations")),jy.getLevelsFetchOptions(r("levels"))],[]),Hm(!!t.currentPresentation&&jy.getAudiencesFetchOptions(t.currentPresentation.id,r("presentationAudiences")),[t.currentPresentation],!!t.currentPresentation)}(e.videoId,n,r),Bv(n,r);var s=!!(n.presentations&&n.levels&&n.presentationAudiences&&n.videoLevels&&n.videoAudiences);return l.createElement(l.Fragment,null,!!a.data&&l.createElement(aO,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_AUDIENCES,currentUser:a.data}),l.createElement(Xu,{object:o.data}),!!s&&l.createElement(Ny,{objectLevels:n.videoLevels,objectAudiences:n.videoAudiences,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:qm(r,"currentPresentation"),levels:n.levels,presentationAudiences:n.presentationAudiences,memberType:th.Videos,saveLevels:function(t,n,r){return c.updateObjectLevels(e.videoId,t,th.Videos,n,r,r)},saveAudiences:function(t,r){return c.updateObjectAudiences(e.videoId,n.currentPresentation.id,t,th.Videos,r,r)}}))}function CO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||jO(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AO(e){return function(e){if(Array.isArray(e))return wO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jO(e,t){if(e){if("string"==typeof e)return wO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wO(e,t):void 0}}function wO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IO(e){var t=CO(l.useState({}),2),n=t[0],r=t[1],o=ae.useBasicFetch(ob(e.videoId)),a=ae.useBasicFetch(jm()),c=kf(u.SUBJECT);!function(e,t,n){var r=function(e){return qm(n,e)};Um([jy.getSubjectTreeFetchOptions(r("subjectTree")),jy.getPresentationsFetchOptions(r("presentations"))],[]),Hm(jy.getObjectSubjectsFetchOptions(e,th.Videos,r("videoSubjects")),[e]),Hm(!!t.currentPresentation&&jy.getClassificationTreeFetchOptions(t.currentPresentation.id,r("classificationTree")),[t.currentPresentation],!!t.currentPresentation),l.useEffect((function(){return r("subjectClassifications")([])}),[t.videoSubjects]);var i=function(e,t){return[].concat(AO(t.subjectClassifications||[]),AO(e))},o=t.videoSubjects&&t.videoSubjects.map((function(e){return jy.getSubjectClassificationFetchOptions(e.id,qm(n,"subjectClassifications",i))}));Um(o,[t.videoSubjects],!!o),Hm(jy.getObjectClassificationsFetchOptions(e,th.Videos,r("videoClassifications")),[e,t.videoSubjects])}(e.videoId,n,r),Bv(n,r);var s=!!(n.videoSubjects&&n.subjectTree&&n.presentations&&n.classificationTree&&n.videoClassifications&&n.subjectClassifications);return l.createElement(l.Fragment,null,!!a.data&&l.createElement(aO,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_SUBJECTS,currentUser:a.data}),l.createElement(Xu,{object:o.data}),s&&l.createElement(Ev,{objectSubjects:n.videoSubjects,subjectTree:n.subjectTree,memberType:th.Videos,presentations:n.presentations,currentPresentation:n.currentPresentation,setCurrentPresentation:qm(r,"currentPresentation"),objectClassifications:n.videoClassifications,objectSubjectClassifications:n.subjectClassifications,classificationTree:n.classificationTree,saveSubjects:function(t,n,r){return c.updateObjectSubjects(e.videoId,t,th.Videos,n,r,r)},saveClassifications:function(t,r){return c.updateObjectClassifications(e.videoId,n.currentPresentation.id,t,th.Videos,r,r)}}))}!function(e){e.Markdown="text/markdown"}(uO||(uO={}));var TO=function(e){return{key:"aliases:".concat(e),url:"/api/master/v2/objects/".concat(e,"/aliases")}},kO=function(e,t,n,r){return{key:"create:alias",url:"/api/master/v2/objects/".concat(e,"/aliases"),type:ce.a.POST,invalidationKeys:"aliases:".concat(e),data:t,success:n,error:r}},LO=function(e,t,n,r){return{key:"delete:alias",url:"/api/domain/v2/objects/".concat(e,"/aliases/").concat(t),type:ce.a.DELETE,invalidationKeys:"aliases:".concat(e),success:n,error:r}};function _O(e){var t=Object(v.useDispatch)(),n=zf(),r=ae.useBasicFetch(TO(e.videoId)),o=ae.useBasicFetch(jm());return r.data?l.createElement(l.Fragment,null,!!o.data&&l.createElement(aO,{videoId:e.videoId,activeAction:i.Videos.EDIT_VIDEO_ALIASES,currentUser:o.data}),l.createElement(Gl,{aliases:r.data.data,onSave:function(r,i){ae.fetch(t,kO(e.videoId,r,(function(){n.success("Successfully created alias"),i()}),(function(){n.error("Something went wrong creating your alias")})))},onDelete:function(r){ae.fetch(t,LO(e.videoId,r,(function(){n.success("Successfully deleted alias")}),(function(){n.error("Something went wrong deleting your alias")})))}})):l.createElement(l.Fragment,null,"Loading...")}function xO(e){return(xO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RO(e,t,n){return t&&NO(e.prototype,t),n&&NO(e,n),e}function DO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&MO(e,t)}function MO(e,t){return(MO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function UO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VO(e);if(t){var i=VO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FO(this,n)}}function FO(e,t){return!t||"object"!==xO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VO(e){return(VO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var BO,zO=function(e){DO(n,e);var t=UO(n);function n(){return PO(this,n),t.apply(this,arguments)}return RO(n,[{key:"channelName",get:function(){return c.VIDEOS}},{key:"appRoutes",get:function(){return{"manage/videos/:id(/)":"editVideo","manage/videos/:id/audiences(/)":"editVideoAudiences","manage/videos/:id/classifications(/)":"editVideoSubjects","manage/videos/:id/aliases(/)":"editVideoAliases","tools/programlookup/:id":"legacyEditVideo"}}},{key:"appLinks",get:function(){return["uploadImage"]}}]),n}(p.AppRouter),HO=function(e){DO(n,e);var t=UO(n);function n(){return PO(this,n),t.apply(this,arguments)}return RO(n,[{key:"initialize",value:function(){var e=this;Ci.a.values(u).forEach((function(t){return Tf.getInstance(t,e)}))}},{key:"editVideo",value:function(e){this.layout.showChildView(T,l.createElement(gO,{videoId:e}))}},{key:"editVideoAudiences",value:function(e){this.layout.showChildView(T,l.createElement(OO,{videoId:e}))}},{key:"editVideoSubjects",value:function(e){this.layout.showChildView(T,l.createElement(IO,{videoId:e}))}},{key:"editVideoAliases",value:function(e){this.layout.showChildView(T,l.createElement(_O,{videoId:e}))}},{key:"legacyEditVideo",value:function(e){p.LocationUtils.Redirect("/tools/programlookup/".concat(e))}},{key:"uploadImage",value:function(e){var t=this;this.layout.showChildView(k,l.createElement(rm,{imageType:e,popupSize:"lg",closePopup:function(){return t.layout.closePopup()}}))}},{key:"name",get:function(){return"Videos Application"}},{key:"channelName",get:function(){return c.VIDEOS}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT,options:{provider:iO,alertRegion:L}}}}],[{key:"router",get:function(){return zO}}]),n}(Ef),qO="UPDATE_VIEW_MODEL";function JO(e){return(JO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KO(e,t)}function KO(e,t){return(KO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function YO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZO(e);if(t){var i=ZO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return WO(this,n)}}function WO(e,t){return!t||"object"!==JO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ZO(e){return(ZO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XO(e,t,n){return t&&QO(e.prototype,t),n&&QO(e,n),e}!function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage"}(BO||(BO={}));var eC=function(){function e(t){GO(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return XO(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),tC=function(e){$O(n,e);var t=YO(n);function n(){return GO(this,n),t.apply(this,arguments)}return XO(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:BO.LocalStorage}))}}]),n}(eC),nC=function(e){$O(n,e);var t=YO(n);function n(){return GO(this,n),t.apply(this,arguments)}return XO(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:BO.SessionStorage}))}}]),n}(eC),rC=tC.Instance,iC=nC.Instance;var oC=function(e,t,n){var r,i=(r=null==n?void 0:n.storage)?r===BO.SessionStorage?iC:rC:null,o=Object(v.useDispatch)(),a=Object(v.useSelector)((function(t){return t.viewModelData[e]}));function c(t,n){i&&function(t,n){if(!i)return;var r=i.get(e);if("string"==typeof t&&void 0!==n)return void i.set(e,Object.assign(Object.assign({},r),{dataOrKey:n}));i.set(e,t)}(t,n),o({type:qO,payload:{viewModelKey:e,dataOrKey:t,keyData:n}})}return void 0!==t&&void 0===a?c(t):i&&void 0===a&&c(i.get(e)),[a,c]},aC="release:notes:config",cC=[{id:"798",name:"Monorepo"},{id:"109",name:"Online"},{id:"822",name:"Lite"},{id:"534",name:"Library Editor"},{id:"62",name:"Curator"}];function sC(e){var t=ci(),n=Ui(t),r="798"===t.values.project;return f.a.useEffect((function(){e.getMilestones(t.values.project),r&&e.getBranchNames(t.values.project)}),[t.values.project]),f.a.useEffect((function(){t.setFieldValue("milestone",rp.a.first(e.milestones))}),[e.milestones]),f.a.useEffect((function(){t.setFieldValue("branchName",rp.a.first(e.branchNames))}),[e.branchNames]),f.a.createElement(vi,null,f.a.createElement(Ri,{as:"select",label:"Project",name:"project",id:"project",value:t.values.project},cC.map((function(e){return f.a.createElement("option",{key:e.id,value:e.id},e.name)}))),f.a.createElement(Ri,{as:"select",label:"Milestone",name:"milestone",id:"milestone",value:t.values.milestone,disabled:!e.milestones.length},e.milestones.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),r&&f.a.createElement(Ri,{as:"select",label:"Branch Name",name:"branchName",id:"branchName",value:t.values.branchName,disabled:!e.branchNames.length},e.branchNames.map((function(e){return f.a.createElement("option",{key:e,value:e},e)}))),f.a.createElement("div",{className:"d-flex justify-content-between"},f.a.createElement(Kl,{showSpinner:t.isSubmitting,type:"submit",disabled:!n},"Generate")))}var uC="U_Jxes3Htv-xiaDX5wfn",lC="https://gitlab.cvinternal.net/api/v4",fC=function(e,t){return{key:"milestones:".concat(e),url:uu("".concat(lC,"/projects/").concat(e,"/milestones"),{private_token:uC}),normalize:!1,formatData:function(e){return e.map((function(e){return e.title}))},success:t}},pC=function(e,t){return{key:"branch:names:".concat(e),url:uu("".concat(lC,"/projects/").concat(e,"/repository/branches"),{private_token:uC,per_page:50}),normalize:!1,formatData:function(e){return e.map((function(e){return e.name}))},success:t}},dC=function(e,t,n,r){return{key:"merge:requests:".concat(e,":").concat(t,":").concat(n),url:uu("".concat(lC,"/projects/").concat(e,"/merge_requests"),{private_token:uC,milestone:t,state:"merged",per_page:50,page:n}),success:r}},mC=function(e,t,n){return{key:"file:paths:".concat(t,":").concat(e),url:uu("".concat(lC,"/projects/").concat(e,"/search"),{scope:"blobs",search:t,private_token:uC}),normalize:!1,formatData:function(e){return e.filter((function(e){return e.filename.includes(t)}))},success:n}},hC=function(e,t,n,r){return{key:"file:".concat(e,":").concat(t,":").concat(n),url:uu("".concat(lC,"/projects/").concat(e,"/repository/files/").concat(encodeURIComponent(t),"/raw"),{ref:n,private_token:uC}),normalize:!1,formatData:function(e){return JSON.parse(e)},success:r}},yC=wi.object().shape({project:wi.string().required("Project is required").default(""),milestone:wi.string().required("Milestone is required").default(""),branchName:wi.string().when("project",(function(e,t){return"798"===e?t.required("Branch name is required"):t})).default("")}).noUnknown();function vC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gC={project:rp.a.first(cC).id};function SC(){var e=vC(f.a.useState([]),2),t=e[0],n=e[1],r=vC(f.a.useState([]),2),o=r[0],a=r[1],s=vC(oC(aC),2)[1],u=Object(v.useDispatch)();return f.a.createElement(f.a.Fragment,null,f.a.createElement("h4",{className:"py-2"},"Generate Release Notes"),f.a.createElement(ji,{initialValues:gC,onSubmit:function(e){s(e),p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.GENERATOR})},validationSchema:yC},f.a.createElement(sC,{getMilestones:function(e){n([]),ae.fetch(u,fC(e,n))},milestones:t,getBranchNames:function(e){a([]),ae.fetch(u,pC(e,a))},branchNames:o})))}var EC=n(211),OC=/#*/;function CC(e){return e=e.replace("-"," "),e="## "+(e=(e=cl(e)).replace(OC,"").trim())}function AC(e){var t=e.toLowerCase();return"## notes"===t||"## dependencies"===t}function jC(e){return e=e.replace("-"," "),e=cl(e)}function wC(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return IC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IC(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function IC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var TC=["# online","# curator","# library editor","# lite","# styles","# tooling","# analytics","# common","# shared","# player"];function kC(e){for(var t={name:"",changes:""},n=0;t.name||n<e.length;n++){var r=e[n];if(!r)break;if("#"===r){var i=e.indexOf("\n",n),o=e.slice(n,i);TC.includes(o.toLowerCase().trim())&&(t.name=cl(o.replace("#","").trim()),e=e.slice(i),n=-1)}}for(var a=0;!t.changes&&a<e.length;a++){if(a+1===e.length){t.changes=e,e="";break}if("#"===e[a]&&"#"!==e[a+1]){var c=e.indexOf("\n",a),s=e.slice(a,c);TC.includes(s.toLowerCase().trim())&&(t.changes=e.slice(0,a),e=e.slice(a),a=-1)}}return{section:t,remainingDescription:e}}function LC(e){var t,n={},r=wC(e);try{for(r.s();!(t=r.n()).done;)for(var i=t.value;i;){var o=kC(i),a=o.section;if(i=o.remainingDescription,!a.name)break;n[a.name]||(n[a.name]=[]),n[a.name].push(a.changes)}}catch(e){r.e(e)}finally{r.f()}var c={};return Object.keys(n).forEach((function(e){var t,r;c[e]=(t=n[e],r={},t.forEach((function(e){for(var t=e.split("");t&&t.length;){for(var n=0;n<t.length&&t.length!==n+1;n++)if("#"===t[n]&&"#"===t[n+1]){var i=t.indexOf("\n",n),o=jC(t.slice(n,i).join(""));r[o]||(r[o]="");for(var a=i;a<t.length;a++){if(t.length===a+1){var c=t.slice(i+1).join("");r[o]+=c,t=[];break}if("#"===t[a]&&"#"===t[a+1]){var s=t.slice(i+1,a).join("");if(!s.length){t=t.slice(a),n=-1;break}r[o]+=s,t=t.slice(a),n=-1;break}}r[o]+="\n"}break}})),Object.keys(r).reduce((function(e,t){return e+=t+"\n",e+=r[t]+"\n"}),""))})),Object.keys(c).reduce((function(e,t){return e+="\n",e+="\n# ".concat(t),e+="\n".concat(c[t])}),"")}var _C=n(212),xC=n.n(_C);function PC(e){return function(e){if(Array.isArray(e))return DC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||RC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||RC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RC(e,t){if(e){if("string"==typeof e)return DC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DC(e,t):void 0}}function DC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MC(){var e=NC(f.a.useState(!0),2),t=e[0],n=e[1],r=NC(f.a.useState(1),2),o=r[0],a=r[1],s=NC(f.a.useState([]),2),u=s[0],l=s[1],d=NC(f.a.useState([]),2),m=d[0],h=d[1],y=NC(f.a.useState(!0),2),b=y[0],g=y[1],S=NC(f.a.useState(""),2),E=S[0],O=S[1],C=NC(f.a.useState("Copy"),2),A=C[0],j=C[1],w=NC(oC(aC),1)[0],I=w&&"798"===w.project,T=Object(v.useDispatch)();return f.a.useEffect((function(){if(w){var e=w.project,t=w.milestone;ae.fetch(T,dC(e,t,o,(function(e){l([].concat(PC(u),PC(e))),50===e.length?a(o+1):n(!1)})))}}),[o]),f.a.useEffect((function(){if(!(t||I&&b)){var e=u.map((function(e){return e.description.replace("\r\n","\n").replace("\r","")})),n=I?function(e,t){var n=function(e){var t="# Final Package Versions\n\n| Package | Version |\n| ------------------------- | ------------------------ |\n| @clickview/analytics | <analytics-version> |\n| @clickview/styles | <styles-version> |\n| @clickview/tooling | <tooling-version> |\n| @clickview/curator | <curator-version> |\n| @clickview/library-editor | <library-editor-version> |\n| @clickview/lite | <lite-version> |\n| @clickview/online | <online-version> |\n| @clickview/player | <player-version> |\n";return e.forEach((function(e){var n=e.name,r=e.version;r&&(t=t.replace("<".concat(n.replace("@clickview/",""),"-version>"),r))})),t}(t),r=LC(e);return"".concat(n,"\n").concat(r)}(e,m):function(e){var t={};return e.forEach((function(e){for(var n=e.split("");;){var r=!1;if(!n||!n.length)break;for(var i=0;i<n.length&&n.length!==i+1;i++)if("#"===n[i]){var o=n.indexOf("\n",i),a=CC(n.slice(i,o).join(""));t[a]||(AC(a)?r=!0:t[a]="");for(var c=o;c<n.length;c++){if(n.length===c+1){if(r){r=!1,n=[];break}var s=n.slice(o+1).join("");t[a]+=s,n=[];break}if("#"===n[c]){if(r){r=!1,n=n.slice(c),i=-1;break}var u=n.slice(o+1,c).join("");if(!u.length){n=n.slice(c),i=-1;break}t[a]+=u,n=n.slice(c),i=-1;break}}t[a]?t[a]+="\n":delete t[a]}break}})),Object.keys(t).reduce((function(e,n){return t[n]?(e+=n+"\n",e+=t[n]+"\n"):e}),"")}(e);O(n)}}),[t,b]),f.a.useEffect((function(){if(w&&I){var e=[];ae.fetch(T,mC(w.project,"package.json",(function(t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=RC(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;ae.fetch(T,hC(w.project,i.path,w.branchName,(function(n){e.push(n),e.length===t.length&&(h(e),g(!1))})))}}catch(e){r.e(e)}finally{r.f()}})))}}),[]),w?f.a.createElement(f.a.Fragment,null,E?f.a.createElement("div",{className:"position-relative border rounded p-3"},f.a.createElement(EC,{onCopy:function(){return j("Copied")},text:E},f.a.createElement("button",{className:"btn btn-white ".concat(xC.a.copyBtn)},A)),f.a.createElement("div",{dangerouslySetInnerHTML:{__html:fO()(E)}})):t?"Fetching merge requests..":"Merging descriptions.."):(p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.FORM}),f.a.createElement(f.a.Fragment,null))}function UC(e){return(UC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function BC(e,t,n){return t&&VC(e.prototype,t),n&&VC(e,n),e}function zC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&HC(e,t)}function HC(e,t){return(HC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$C(e);if(t){var i=$C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return JC(this,n)}}function JC(e,t){return!t||"object"!==UC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $C(e){return($C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var KC,YC=function(e){zC(n,e);var t=qC(n);function n(){return FC(this,n),t.apply(this,arguments)}return BC(n,[{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"appRoutes",get:function(){return{"developer/release-notes(/)":"index","developer/release-notes/generate(/)":"form","developer/release-notes/generator(/)":"generator"}}}]),n}(p.AppRouter),WC=function(e){zC(n,e);var t=qC(n);function n(){return FC(this,n),t.apply(this,arguments)}return BC(n,[{key:"index",value:function(){p.AppLinkHelper.trigger({application:c.RELEASE_NOTES,action:i.ReleaseNotes.GENERATOR},{replace:!0})}},{key:"form",value:function(){this.layout.showChildView(T,l.createElement(SC,null))}},{key:"generator",value:function(){this.layout.showChildView(T,l.createElement(MC,null))}},{key:"onShowAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.collection,n=t?t.toJSON():[],r=function(e){return Bs.Radio.channel(W.a.ALERT).trigger("remove:alert",e)};this.layout.showChildView(L,l.createElement(Ip,{alerts:n,removeAlert:r}))}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()}}}},{key:"name",get:function(){return"Release Notes Application"}},{key:"channelName",get:function(){return c.RELEASE_NOTES}},{key:"layoutOptions",get:function(){return{name:a.CURATOR_LAYOUT}}}],[{key:"router",get:function(){return YC}}]),n}(p.Application);function ZC(e){return(ZC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GC(e){return function(e){if(Array.isArray(e))return QC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return QC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QC(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eA(e,t){return(eA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rA(e);if(t){var i=rA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nA(this,n)}}function nA(e,t){return!t||"object"!==ZC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rA(e){return(rA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Fifo="FifoMemoryCache"}(KC||(KC={}));var iA,oA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eA(e,t)}(o,e);var t,n,r,i=tA(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=o,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=d.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||zi.c.throw(new Ji.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=d.object(this.cachedkeys,this.cachedkeys),i=[];d.each(e,(function(e){var t;r[e]&&i.push(e);var n=new RegExp(e,"i"),o=d.filter(r,(function(e){return n.test(e)}));(t=i).push.apply(t,GC(o))})),i.length&&(i=d.uniq(i),d.each(i,(function(e){delete n.cache[e],d.isFunction(t)&&t(e)})),this.cachedkeys=d.without.apply(d,[this.cachedkeys].concat(GC(i))))}},{key:"name",get:function(){return KC.Fifo}}])&&XC(t.prototype,n),r&&XC(t,r),o}(Bi.a),aA=n(17);!function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(iA||(iA={}));var cA,sA={type:iA.Unknown,message:"",code:0};!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(cA||(cA={}));var uA=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function lA(e){return(lA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pA(e,t){return(pA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hA(e);if(t){var i=hA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}function mA(e,t){return!t||"object"!==lA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hA(e){return(hA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pA(e,t)}(o,e);var t,n,r,i=dA(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=o,(n=[{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=ce.a.GET);var i=d.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===ce.a.POST||n===ce.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);var a=$.ajax(o);return d.keys(this.successMiddleware).length&&a.done(d.values(this.successMiddleware)),d.keys(this.errorMiddleware).length&&a.fail(d.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,ce.a.POST).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,ce.a.GET).done((function(e,t,i){n.trigger(r,e,t,i)})).fail((function(e,t,r){n.trigger(i,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,ce.a.PUT).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,ce.a.DELETE).done((function(e,t,i){return n.trigger(r,e,t,i)})).fail((function(e,t,r){return n.trigger(i,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=sA;switch(n.code=e.status,n.message=uA(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=iA.BadRequest;break;case 401:n.type=iA.Unauthorized;break;case 403:n.type=iA.Forbidden;break;case 404:n.type=iA.NotFound;break;case 500:n.type=iA.InternalServer}return n}},{key:"name",get:function(){return cA.Ajax}}])&&fA(t.prototype,n),r&&fA(t,r),o}(aA.Object);function vA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bA(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),vA({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),vA({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),vA({},t.payload.viewModelKey,t.payload.dataOrKey))}function gA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qO:return bA(e,t)}return e}var SA="LanguageDataService",EA="locale",OA="phrases",CA="language:data:service";function AA(e){return(AA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function IA(e,t){return(IA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TA(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LA(e);if(t){var i=LA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kA(this,n)}}function kA(e,t){return!t||"object"!==AA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function LA(e){return(LA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&IA(e,t)}(o,e);var t,n,r,i=TA(o);function o(){return jA(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:EA,expiryTime:ch.STANDARD,bootstrapName:Cm,callback:function(n){t.locale=n,t.phrases&&d.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:OA,expiryTime:ch.STANDARD,bootstrapName:Am,callback:function(n){t.phrases=n,t.locale&&d.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return SA}},{key:"channelName",get:function(){return CA}}])&&wA(t.prototype,n),r&&wA(t,r),o}(oh);n.d(t,"Layouts",(function(){return a})),n.d(t,"AppChannels",(function(){return c})),n.d(t,"DataChannels",(function(){return s})),n.d(t,"Actions",(function(){return i})),n.d(t,"DataPrefixes",(function(){return o})),n.d(t,"DataServices",(function(){return u})),n.d(t,"CuratorLayoutView",(function(){return z})),n.d(t,"LayoutComponent",(function(){return Y})),n.d(t,"CuratorAppNavService",(function(){return oe})),n.d(t,"CompaniesApplication",(function(){return df})),n.d(t,"CustomersApplication",(function(){return bp})),n.d(t,"DomainOptionsApplication",(function(){return hd})),n.d(t,"PeopleApplication",(function(){return Kd})),n.d(t,"PlaylistsApplication",(function(){return US})),n.d(t,"SeriesApplication",(function(){return pE})),n.d(t,"SubjectDataService",(function(){return Cy})),n.d(t,"SubjectDataServiceHelper",(function(){return jy})),n.d(t,"SubjectsApplication",(function(){return IE})),n.d(t,"ThemesApplication",(function(){return rO})),n.d(t,"VideosApplication",(function(){return HO})),n.d(t,"DomainOptionsApplication",(function(){return hd})),n.d(t,"ReleaseNotesApplication",(function(){return WC})),n.d(t,"Core",(function(){return p})),n.d(t,"InstanceManager",(function(){return Tf})),n.d(t,"FifoMemoryCache",(function(){return oA})),n.d(t,"AjaxDataProvider",(function(){return yA})),n.d(t,"AlertList",(function(){return Ip})),n.d(t,"AlertType",(function(){return Lf})),n.d(t,"BaseAlertService",(function(){return Bf})),n.d(t,"LanguageService",(function(){return eo})),n.d(t,"Flight",(function(){return ae})),n.d(t,"CacheDurations",(function(){return ch})),n.d(t,"ViewModelReducer",(function(){return gA})),n.d(t,"LanguageDataService",(function(){return _A}))}])}));