@clickview/lite 0.0.26-rc.5 → 0.0.26

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.
@@ -28,4 +28,4 @@ var r=n(885),i=n(886),o=n(887);function a(){return c.TYPED_ARRAY_SUPPORT?2147483
28
28
  * Released under the MIT license
29
29
  */!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in o)o[c]&&(s+="; "+c,!0!==o[c]&&(s+="="+o[c].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(i[l]=c,e===l)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(49),i={libraries:function(e,t){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,error:t,normalize:!1}},folder:function(e,t,n){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(r.a.FOLDER),key:"folder:".concat(e),success:t,error:n}}}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),u=Object.prototype.toString,p=Math.max,h=Math.min,d=function(){return l.Date.now()};function f(e,t,n){var r,i,o,a,s,c,l=0,u=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(C,t),u?v(e):a}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=o}function C(){var e=d();if(_(e))return T(e);s=setTimeout(C,function(e){var n=t-(e-c);return f?h(n,o-(e-l)):n}(e))}function T(e){return s=void 0,y&&r?v(e):(r=i=void 0,a)}function S(){var e=d(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return b(c);if(f)return s=setTimeout(C,t),v(c)}return void 0===s&&(s=setTimeout(C,t)),a}return t=m(t)||0,g(n)&&(u=!!n.leading,o=(f="maxWait"in n)?p(m(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},S.flush=function(){return void 0===s?a:T(d())},S}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return g(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),f(e,t,{leading:r,maxWait:t,trailing:i})}}).call(this,n(95))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),u=Object.prototype.toString,p=Math.max,h=Math.min,d=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,a,s,c,l=0,u=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){return l=e,s=setTimeout(C,t),u?v(e):a}function _(e){var n=e-c;return void 0===c||n>=t||n<0||m&&e-l>=o}function C(){var e=d();if(_(e))return T(e);s=setTimeout(C,function(e){var n=t-(e-c);return m?h(n,o-(e-l)):n}(e))}function T(e){return s=void 0,y&&r?v(e):(r=i=void 0,a)}function S(){var e=d(),n=_(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return b(c);if(m)return s=setTimeout(C,t),v(c)}return void 0===s&&(s=setTimeout(C,t)),a}return t=g(t)||0,f(n)&&(u=!!n.leading,o=(m="maxWait"in n)?p(g(n.maxWait)||0,t):o,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},S.flush=function(){return void 0===s?a:T(d())},S}}).call(this,n(95))},function(e,t,n){"use strict";var r=n(44),i=n(7),o=n(13),a=n(118),s={getVideoAppLink:function(e){return{application:i.a.DEFAULT,action:o.a.Default.PLAY_VIDEO,args:[e.id,r.a.slugify(e.name)],params:a.a.getVideoProgress(e)?{t:Math.floor(a.a.getVideoProgress(e))}:{}}},getSeriesAppLink:function(e){return{application:i.a.DEFAULT,action:o.a.Default.SERIES,args:[e.id,r.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:i.a.CONTENT_UPDATES,action:o.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,r.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:i.a.SUBJECT,action:o.a.Subjects.CLASSIFICATION,args:[e.id,r.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:i.a.SHARE,action:o.a.Share.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:i.a.PLAYLISTS,action:o.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:i.a.DASHBOARD,action:o.a.Dashboard.HOME},contentUpdatesAppLink:{application:i.a.CONTENT_UPDATES,action:o.a.ContentUpdates.CONTENT_UPDATES}};n.d(t,"a",(function(){return s}))},function(e,t,n){e.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(e,t){e.exports=f},function(e,t,n){e.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(e,t,n){e.exports={searchIcons:"_17ill",searchSvgContainer:"_1-crd",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={avatarContainer:"_1nhdk"}},function(e,t,n){"use strict";var r=n(879),i=n(189),o=n(880);function a(e,t,n){var r=e;return o(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=i({},t,{uri:e}),r.callback=n,r}function s(e,t,n){return c(t=a(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(l),m)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function o(){if(!c){var t;clearTimeout(u),t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=y,o=null;return 0!==t?(i={body:r(),statusCode:t,method:h,headers:{},url:p,rawRequest:l},l.getAllResponseHeaders&&(i.headers=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}(l.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,i,i.body)}}var a,c,l=e.xhr||null;l||(l=e.cors||e.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var u,p=l.url=e.uri||e.url,h=l.method=e.method||"GET",d=e.body||e.data,f=l.headers=e.headers||{},g=!!e.sync,m=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:p,rawRequest:l};if("json"in e&&!1!==e.json&&(m=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),d=JSON.stringify(!0===e.json?d:e.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(o,0)},l.onload=o,l.onerror=i,l.onprogress=function(){},l.onabort=function(){c=!0},l.ontimeout=i,l.open(h,p,!g,e.username,e.password),g||(l.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(u=setTimeout((function(){if(!c){c=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),l.setRequestHeader)for(a in f)f.hasOwnProperty(a)&&l.setRequestHeader(a,f[a]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(d||null),l}e.exports=s,e.exports.default=s,s.XMLHttpRequest=r.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){s["delete"===e?"del":e]=function(t,n,r){return(n=a(t,n,r)).method=e.toUpperCase(),c(n)}}))},function(e,t,n){var r=n(4),i=e.exports={WebVTT:n(881),VTTCue:n(882),VTTRegion:n(883)};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,a=i.VTTRegion,s=r.VTTCue,c=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=a},i.restore=function(){r.VTTCue=s,r.VTTRegion=c},r.VTTCue||i.shim()},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){"use strict";(function(e){var t=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}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=t,a=!0,s=0;for(o=a?o:o[Symbol.iterator]();;){var c;if(a){if(s>=o.length)break;c=o[s++]}else{if((s=o.next()).done)break;c=s.value}var l=c;l.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){var i=n[r];if(i===t){n.splice(r,1);break}}return this}}]),e}(),o=function(e){function o(e,t){r(this,o);var i,a=n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),s=void 0;if(a.element=e,a.version=o.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(a),a.element.dropzone=a;var c,l=null!=(i=o.optionsForElement(a.element))?i:{};if(a.options=o.extend({},a.defaultOptions,l,null!=t?t:{}),a.options.forceFallback||!o.isBrowserSupported())return c=a.options.fallback.call(a),n(a,c);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(s=a.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=o.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=o.getElements(a.options.clickable,"clickable")),a.init(),a}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)}(o,e),t(o,null,[{key:"initClass",value:function(){this.prototype.Emitter=i,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=o.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var i=e.getElementsByTagName("span")[0];return i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,i.srcWidth))/(n=Math.min(n,i.srcHeight));if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>a?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*a):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>a?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=o.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var i=r[n++];i.textContent=e.name}for(var a=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(i=s[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=o.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var c=function(n){return n.preventDefault(),n.stopPropagation(),e.status===o.UPLOADING?o.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?o.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},l=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(l>=u.length)break;u[l++].addEventListener("click",c)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var i=r[n++];i.alt=e.name,i.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,i=i=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=i.length)break;var o=i[r++];"PROGRESS"===o.nodeName?o.value=t:o.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value: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 i=n,o=!0,a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var c=s;for(var l in c){var u=c[l];e[l]=u}}return e}}]),t(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===o.UPLOADING||e.status===o.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",o.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,i=i=n;;){if(r>=i.length)break;var o=i[r++];e.addFile(o)}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var i=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return i(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",i(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return i(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||o.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,i=i=this.getActiveFiles();;){if(r>=i.length)break;var o=i[r++];t+=o.upload.bytesSent,n+=o.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=o.createElement(n);return"FORM"!==this.element.tagName?(t=o.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,i=t[n];if(r=e(this.element.getElementsByTagName(i)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],i=0;i<r.length;i++){var o=r[i];if(e>=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,i=i=e;;){if(r>=i.length)break;var o,a=i[r++];null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?n.push(t.addFile(a.getAsFile())):o.isDirectory?n.push(t._addFilesFromDirectory(o,o.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var i=0,o=o=r;;){if(i>=o.length)break;var a=o[i++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),i)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:o.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=o.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==o.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===o.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==o.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,i){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return i(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=l.restore(e.dataURL,s)),i(o.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var a=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,i,o);null!=o&&o(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(a=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(i){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,r),u=document.createElement("canvas"),p=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,i>4&&(u.width=a.trgHeight,u.height=a.trgWidth),i){case 2:p.translate(u.width,0),p.scale(-1,1);break;case 3:p.translate(u.width,u.height),p.rotate(Math.PI);break;case 4:p.translate(0,u.height),p.scale(1,-1);break;case 5:p.rotate(.5*Math.PI),p.scale(1,-1);break;case 6:p.rotate(.5*Math.PI),p.translate(0,-u.width);break;case 7:p.rotate(.5*Math.PI),p.translate(u.height,-u.width),p.scale(-1,1);break;case 8:p.rotate(-.5*Math.PI),p.translate(-u.height,0)}c(p,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var h=u.toDataURL("image/png");if(null!=o)return o(h,u)}))},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=o.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===o.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=o.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var i=0,a=a=t;;){if(i>=a.length)break;var s=a[i++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==o.ADDED&&e.status!==o.QUEUED||(e.status=o.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],i=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,s=Math.min(a+t.options.chunkSize,r.size),c={name:t._getParamName(0),data:i.webkitSlice?i.webkitSlice(a,s):i.slice(a,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:c,status:o.UPLOADING,progress:0,retries:0},t._uploadData(e,[c])}};if(r.upload.finishedChunkUpload=function(n){var i=!0;n.status=o.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<r.upload.totalChunkCount;s++){if(void 0===r.upload.chunks[s])return a();r.upload.chunks[s].status!==o.SUCCESS&&(i=!1)}i&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<r.upload.totalChunkCount;s++)a();else a()}else{for(var c=[],l=0;l<e.length;l++)c[l]={name:t._getParamName(l),data:n[l],filename:e[l].upload.filename};t._uploadData(e,c)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,i=0,a=a=e;;){if(i>=a.length)break;a[i++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,e),c=this.resolveOption(this.options.url,e);r.open(s,c,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var l={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&o.extend(l,this.options.headers),l){var p=l[u];p&&r.setRequestHeader(u,p)}var h=new FormData;if(this.options.params){var d=this.options.params;for(var f in"function"==typeof d&&(d=d.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),d){var g=d[f];h.append(f,g)}}for(var m=0,y=y=e;;){if(m>=y.length)break;var v=y[m++];this.emit("sending",v,r,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,h),this._addFormElementData(h);for(var b=0;b<t.length;b++){var _=t[b];h.append(_.name,_.data,_.filename)}this.submitRequest(r,h,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],i=0,o=function(o){n.options.transformFile.call(n,e[o],(function(n){r[o]=n,++i===e.length&&t(r)}))},a=0;a<e.length;a++)o(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],i=r.getAttribute("name"),o=r.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=i)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,s=s=r.options;;){if(a>=s.length)break;var c=s[a++];c.selected&&e.append(i,c.value)}else(!o||"checkbox"!==o&&"radio"!==o||r.checked)&&e.append(i,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded;i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var a=0;a<i.upload.totalChunkCount;a++)void 0!==i.upload.chunks[a]&&void 0!==i.upload.chunks[a].progress&&(i.upload.progress+=i.upload.chunks[a].progress,i.upload.total+=i.upload.chunks[a].total,i.upload.bytesSent+=i.upload.chunks[a].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else for(var s=0,c=c=e;;){if(s>=c.length)break;var l=c[s++];l.upload.progress=r,l.upload.total=n.total,l.upload.bytesSent=n.loaded}for(var u=0,p=p=e;;){if(u>=p.length)break;var h=p[u++];this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}else{var d=!0;r=100;for(var f=0,g=g=e;;){if(f>=g.length)break;var m=g[f++];100===m.upload.progress&&m.upload.bytesSent===m.upload.total||(d=!1),m.upload.progress=r,m.upload.bytesSent=m.upload.total}if(d)return;for(var y=0,v=v=e;;){if(y>=v.length)break;var b=v[y++];this.emit("uploadprogress",b,r,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==o.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==o.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var i=0,a=a=e;;){if(i>=a.length)break;a[i++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),o}(i);o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(e){return e.getAttribute("id")?o.options[s(e.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!0,o.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,i=i=t;;){if(r>=i.length)break;var o=i[r++];/(^| )dropzone($| )/.test(o.className)?n.push(e.push(o)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var i=r[n++];!1!==o.optionsForElement(i)?t.push(new o(i)):t.push(void 0)}return t}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=o.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},o.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,a=t.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},o.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=0,o=o=e;!(i>=o.length);)n=o[i++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,s=s=document.querySelectorAll(e);!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},o.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},o.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=0,o=o=t;;){if(i>=o.length)break;var a=o[i++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new o(this,e)}))}),null!==e?e.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var c=function(e,t,n,r,i,o,a,s,c,l){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t).data,o=0,a=t,s=t;s>o;){0===i[4*(s-1)+3]?a=s:o=s,s=a+o>>1}var c=s/t;return 0===c?1:c}(t);return e.drawImage(t,n,r,i,o,a,s,c,l/u)},l=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,a=void 0,s=void 0,c="",l=0;o=(n=e[l++])>>2,a=(3&n)<<4|(r=e[l++])>>4,s=(15&r)<<2|(i=e[l++])>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(c),n=r=i="",o=a=s=c="",l<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=(s=s.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,a="",s=0,c=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&i)<<4|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),c.push(t),64!==o&&c.push(n),64!==a&&c.push(r),t=n=r="",i=o=a="",s<e.length;);return c}}]),e}();l.initClass();o._autoDiscoverFunction=function(){if(o.autoDiscover)return o.discover()},function(e,t){var n=!1,r=!0,i=e.document,o=i.documentElement,a=i.addEventListener?"addEventListener":"attachEvent",s=i.addEventListener?"removeEventListener":"detachEvent",c=i.addEventListener?"":"on",l=function r(o){if("readystatechange"!==o.type||"complete"===i.readyState)return("load"===o.type?e:i)[s](c+o.type,r,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==i.readyState){if(i.createEventObject&&o.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return l("poll")}()}i[a](c+"DOMContentLoaded",l,!1),i[a](c+"readystatechange",l,!1),e[a](c+"load",l,!1)}}(window,o._autoDiscoverFunction)}).call(this,n(677)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){return r.createElement("div",{role:"button",tabIndex:0,className:(e.className?e.className:"")+" cursor-pointer",onKeyDown:t=>"Enter"===t.key&&e.onClick(t),onClick:e.onClick,style:e.style?e.style:{}},e.children)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(46),o=n(182);function a(e,t=[]){const{setPageTitle:n}=r.useContext(o.a);r.useEffect(()=>{"boolean"!=typeof e&&i.a.isFunction(n)&&(e||(e=""),n(e))},[e,...t])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n(40),o=n(498),a=n(319);function s(e){var t;const n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((e,t)=>r.createElement(a.a,Object.assign({key:t},e))):r.createElement(r.Fragment,null);return r.createElement(i.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&r.createElement(i.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},r.createElement(i.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?r.createElement(o.a,null):r.createElement(i.Modal.Body,{className:e.bodyClassName},e.children))}s.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={getRandomInt:(e=1e4)=>Math.floor(Math.random()*Math.floor(e))}},function(e,t,n){"use strict";var r=n(471);n.d(t,"BaseCollectionIdentifier",(function(){return r.a}));n(472),n(473),n(474),n(181),n(475),n(476),n(477),n(478)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n(40),o=n(46),a=n(48),s=n(188),c=n(166),l=n(59);function u(e){let t="ml-2";e.className&&(t+=" "+e.className);const n=e.showSpinner?r.createElement(i.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip)return r.createElement(c.a,{title:e.tooltip},r.createElement("span",null,r.createElement(s.a,{appLink:e.appLink,svgName:e.svgName,onClick:e.onClick,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n)));if(e.svgName)return r.createElement(s.a,{onClick:e.onClick,appLink:e.appLink,svgName:e.svgName,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);if(e.appLink)return r.createElement(l.a,{onClick:e.onClick,appLink:e.appLink,className:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n);return r.createElement("button",{onClick:function(t){e.analyticsData&&e.analyticsOptions&&a.a.logUserAction(e.analyticsData,e.analyticsOptions),o.a.isFunction(e.onClick)&&e.onClick(t)},className:t},n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n(40),o=n(339),a=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 s({buttons:e}){return r.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:s="button",isSpinnerButton:c,showSpinner:l=!1,className:u}=e,p=a(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),h=Object.assign({key:t,type:s,className:"ml-2"+(u?" "+u:"")},p);return c?r.createElement(o.a,Object.assign({showSpinner:l},h),n):r.createElement(i.Button,Object.assign({},h),n)})(e,t)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),i=n(27),o=n(144);function a(e){return function(e){if(Array.isArray(e))return s(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 s(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 s(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 s(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={getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{url:"{gateway}/v1/classrooms".concat(l(e)),key:"classrooms".concat(e?":".concat(e):"")}},getClassroom:function(e){return{url:"{gateway}/v1/classrooms/".concat(e),key:"classroom:".concat(e)}},createClassroom:function(e,t,n){return{url:"{gateway}/v1/classrooms",key:"create:classroom",type:i.a.POST,data:{name:e.name,description:""},invalidationKeys:["classrooms"],success:t,error:n}},editClassroom:function(e,t,n){return{url:"{gateway}/v1/classrooms/".concat(e.id),key:"update:classroom",type:i.a.PUT,data:e,invalidationKeys:["classrooms","classroom:".concat(e.id)],success:t,error:n}},deleteClassroom:function(e,t,n){return{url:"{gateway}/v1/classrooms/".concat(e),key:"delete:classroom",type:i.a.DELETE,invalidationKeys:["classrooms"],success:t,error:n}},getClassroomStudents:function(e){return{url:"{gateway}/v1/classrooms/".concat(e,"/learners?query=avatar"),key:"classroom:".concat(e,":learners")}},addStudents:function(e,t,n,r){return{url:"{gateway}/v1/classrooms/".concat(t,"/learners"),key:"add:students:classroom",type:i.a.POST,data:{learnerIds:e},invalidationKeys:["classroom:".concat(t,":learners"),"school:users:".concat(o.a.Learner,":")].concat(a(e.map((function(e){return"school:users:".concat(e)})))),success:n,error:r}},removeStudents:function(e,t,n,r){return{url:"{gateway}/v1/classrooms/".concat(t,"/learners/delete"),key:"remove:students:classroom",type:i.a.POST,data:{learnerIds:e},invalidationKeys:["classroom:".concat(t,":learners"),"school:users:".concat(o.a.Learner,":")].concat(a(e.map((function(e){return"school:users:".concat(e)})))),success:n,error:r}},getClassroomGroups:function(e){return{url:"{gateway}/v1/classrooms/".concat(e,"/classroomgroups?query=users"),key:"classroom:".concat(e,":groups")}},getClassroomGroup:function(e){return{url:"{gateway}/v1/classroomgroups/".concat(e),key:"classroom:group:".concat(e)}},createClassroomGroup:function(e,t,n,r){return{url:"{gateway}/v1/classrooms/".concat(t,"/classroomgroup"),key:"add:classroom:group",type:i.a.POST,data:e,invalidationKeys:["classroom:".concat(t,":groups")],success:n,error:r}},deleteGroup:function(e,t,n,r){return{url:"{gateway}/v1/classrooms/".concat(t,"/classroomgroups/delete"),key:"delete:group",type:i.a.POST,invalidationKeys:["classroom:".concat(t,":groups")],data:{classroomGroupIds:[e]},success:n,error:r}},editGroup:function(e,t,n,r){return{url:"{gateway}/v1/classroomgroups/".concat(e.id),key:"edit:group",type:i.a.PUT,data:e,invalidationKeys:["classroom:".concat(t,":groups"),"classroom:group:".concat(e.id)],success:n,error:r}},addStudentsToGroup:function(e,t,n,r,o){return{url:"{gateway}/v1/classroomgroups/".concat(t,"/learners"),key:"add:student:group",data:{learnerIds:e},type:i.a.POST,invalidationKeys:["classroom:".concat(n,":group"),"classroom:group:".concat(t)],success:r,error:o}},removeStudentsFromGroup:function(e,t,n,r,o){return{url:"{gateway}/v1/classroomgroups/".concat(t,"/learners/delete"),key:"remove:student:group",type:i.a.POST,data:{learnerIds:e},invalidationKeys:["classroom:".concat(n,":group"),"classroom:group:".concat(t)],success:r,error:o}},starClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/star"),key:"star:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!0}))},success:t,error:n}},unstarClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/unstar"),key:"unstar:classroom:".concat(e.id),type:i.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!1}))},success:t,error:n}}};function l(e){return e?"&cursor=".concat(e):""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(27),i=n(100),o=n(246),a=n(49),s=function(e){return"{gateway}/v1/objects/".concat(e,"?query=").concat(o.a.VIDEO)},c=function(e,t,n,r){var i="";t&&n?i=a.b.VideoCollectionWithAssocs(t,!0,r):t?i=a.b.VideoCollectionWithAssocs(t):n&&(i=a.b.VideoCollectionWithAssocs());var o=e.map((function(e){return"id=".concat(e)})).join("&"),s=i?"?query=".concat(i,"&").concat(o):"?".concat(o);return"{gateway}/v1/objects".concat(s)},l={video:function(e){return{url:s(e),key:"videos:".concat(e)}},workspace:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e,"/videos?query={orderbydesc:datecreated}").concat(a.b.VideoCollectionWithAssocs(t,!0)).concat(u(n)),key:"workspace:".concat(e,":").concat(n)}},videos:function(e,t){return{url:c(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t,n){return{url:c(e,t,!0,{videoProgress:!1}),key:"watch:history:videos:by:id:".concat(e.join(",")),success:n}},updateVideo:function(e,t,n){return{key:"update:video:".concat(e),url:"/api/domain/v2/objects/".concat(e),type:r.a.PUT,data:t,success:n}},videoRatings:function(e){var t=e.map((function(e){return"id=".concat(e)}));if(t.length)return{url:"/api/domain/v2/objects?query=rating&".concat(t.join("&")),key:"video:ratings:by:id:".concat(e.join(","))}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(i.a.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}}};function u(e){return e?"&cursor=".concat(e):""}},function(e,t,n){"use strict";var r=n(0),i=n(44);const o={padNumber(e,t){let n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}};var a=n(59),s=n(167),c=n(265),l=n.n(c);function u(e){const{video:t}=e,{season:n}=t;if(!t.episodeNumber||!n)return r.createElement(r.Fragment,null);const i=o.padNumber(n.number,2),a=o.padNumber(t.episodeNumber,2);return r.createElement("span",{className:"d-inline-block "+(e.appLink?l.a.hoverUnderline:"")}," ",!!i&&`S${i} • `,"E",a)}function p(e){const{appLink:t,video:n,className:o=""}=e,c=null==n?void 0:n.series;if(!c||!c.id)return r.createElement(r.Fragment,null);const p=t&&Object.assign(Object.assign({},t),{args:[c.id,i.a.slugify(c.name)]}),h=Object.assign(Object.assign({},e.analyticsData),{id:null==c?void 0:c.id,name:null==c?void 0:c.name,videoId:null==n?void 0:n.id,videoName:null==n?void 0:n.name}),d=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.d.Series,actionType:s.n.Click,descriptor:s.b.Title});return p?r.createElement(a.a,{appLink:p,className:`text-uppercase ${l.a.appLink} ${o}`,analyticsData:h,analyticsOptions:d},c.name,r.createElement(u,Object.assign({},e))):r.createElement("span",{className:`text-uppercase ${l.a.appLink} ${o}`},c.name,r.createElement(u,Object.assign({},e)))}n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(105),a=n(214),s=n(163),c=n(663),l=n.n(c);function u(e){const t=e.imageUrl||(n=e.imageCdnUrl,r=e.initials,a.a.createUrl(o.a.safeUrlConcat(n,"/v1/profile-images?initials="+r),{size:s.a.Small}));var n,r;return i.a.createElement("div",{className:l.a.avatar,style:{backgroundImage:`url('${t}')`}}," ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={getInitials(e,t){let n="";return(null==e?void 0:e.length)&&(n=e[0]),(null==t?void 0:t.length)&&(n+=t[0]),n.toUpperCase()}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.MustCompleteOnboarding="must_complete_onboarding",e.StudentWorkspaceSharing="student_ws_sharing",e.StudentToStudentMessaging="student_to_student_messaging",e.HideResourcesForStudents="hide_resources_for_students",e.LibraryReview="library_review",e.SchoolMessaging="school_messaging",e.LegacyTvNaming="legacy_tv_naming",e.LegacyAlbertCustomer="legacy_albert_customer",e.HideHostedLibraries="hide_hosted_libraries",e.StaffRequest="staff_request",e.MaxCustomLibraries="max_custom_libraries",e.CustomLibrariesBetaAccess="custom_libraries_beta_access",e.AutoCaptioning="auto_captioning",e.HasCompletedOnboarding="has_completed_onboarding",e.BulkOnboardingPreferencesState="bulk_onboarding_preferences_state"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(143),i=n(27);const o={setting:(e,t,n,i)=>({key:`settings:${e}:${t}`,url:`/api/domain/v3/settings/${e}?type=${t}`,normalize:!1,formatData:e=>r.a.first(e),success:n,error:i}),updateSetting:(e,t,n,r,o,a)=>({key:"update:setting",url:"/api/domain/v3/settings/"+e,data:{name:t,value:n,kind:r},type:i.a.PUT,invalidationKeys:[`settings:${e}:${t}`],success:o,error:a})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(27),i=n(105),o=n(100),a=n(246);var s={namespace:"share"},c={getSharedObject:function(e,t,n){var r="";switch(n){case o.a.Video:r=a.a.VIDEO}return{key:"share:".concat(e,":object:").concat(t),url:i.a.urlBuilder("{gateway}/v1/objects/".concat(t),{shareId:e,query:r})}},getSentDirectShareByObjectId:function(e){return{url:"{gateway}/v1/share/direct/sent?objectId=".concat(e),key:"direct:share:sent:object:".concat(e),normalizeOptions:s}},createDirectShare:function(e,t,n,i){return{url:"{gateway}/v1/share/direct",key:"create:direct:share",data:e,type:r.a.POST,normalizeOptions:s,invalidationKeys:"direct:share:sent:object:".concat(e.objectId),success:t,error:n,always:i}},updateDirectShareRecipients:function(e,t,n,i,o){var a="direct:share:recipients:".concat(e);return{url:"{gateway}/v1/share/direct/".concat(e),key:"edit:direct:share",data:t,type:r.a.PUT,normalizeOptions:s,updateState:{keys:a,updateData:function(e){return!e[a]||t.recipientIds.length?e:Object.assign(Object.assign({},e),(i=[],(r=a)in(n={})?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n));var n,r,i}},success:n,error:i,always:o}},getDirectShareRecipientsById:function(e,t){var n=t.map((function(e){return"id=".concat(e)})).join("&");return{url:"{gateway}/v1/objects?".concat(n),key:"direct:share:recipients:".concat(e)}},getRecipientsById:function(e){e.sort();var t=e.map((function(e){return"id=".concat(e)})).join("&");return{url:"{gateway}/v1/objects?".concat(t),key:"share:recipients:".concat(e.join(","))}},getRecipientUsers:function(e,t){return{url:"{gateway}/v1/objects/".concat(e,"/users?query={limit:100}"),key:"share:recipients:".concat(e,":users"),success:t}},getHydratedRecipients:function(e,t){e.sort();var n=e.map((function(e){return"id=".concat(e)})).join("&");return t===o.a.User&&(n+="&query=yearGroups"),t===o.a.Classroom&&(n+="&query=users[count()]{limit:0}"),t===o.a.ClassroomGroup&&(n+="&query=classroom,users[count()]{limit:0}"),{url:"{gateway}/v1/objects?".concat(n),key:"share:recipients:".concat(e.join(","))}},getShareLink:function(e,t,n,r){return{url:"{gateway}/v1/share/links/".concat(e),key:"share:link:".concat(e),normalizeOptions:s,success:t,error:n,always:r}},getShareLinkByObjectId:function(e){return{url:"{gateway}/v1/share/links?objectId=".concat(e),key:"share:link:object:".concat(e),normalizeOptions:s}},createShareLink:function(e,t,n,i){return{url:"{gateway}/v1/share/links",key:"create:share:link",type:r.a.POST,data:e,normalizeOptions:s,invalidationKeys:"share:link:object:".concat(e.resourceId),success:t,error:n,always:i}},editShareLink:function(e,t,n,i,o){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"edit:share:link",data:t,type:r.a.PUT,normalizeOptions:s,invalidationKeys:["share:link:".concat(e.id),"share:link:object:".concat(e.objectId)],success:n,error:i,always:o}},deleteShareLink:function(e,t,n,i){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"delete:share:link",type:r.a.DELETE,normalizeOptions:s,invalidationKeys:["share:link:".concat(e.id),"share:link:object:".concat(e.objectId)],success:t,error:n,always:i}},checkPassword:function(e,t){return{url:"{gateway}/v1/share/links/".concat(e,"/password?password=").concat(t),key:"share:password:status:".concat(e,":").concat(t),normalizeOptions:s}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);const i=(e,t,n)=>{const r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},o={ToDisplayDuration(e){if(!r.isNumber(e))return"";const t=new Date(e),n=t.getUTCHours(),o=i(t.getUTCMinutes(),2,"0"),a=i(t.getUTCSeconds(),2,"0");return n>0?`${n}:${o}:${a}`:`${o}:${a}`}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={PERMISSIONS:"permissions",AUDIENCE_FILTER:"audience:filter"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(0),i=n.n(r),o=n(11),a=n(23),s=n(2),c=n(9),l=n(143),u=n(30),p=n(57),h=n(497);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)||g(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){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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||g(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 g(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}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}var y=c.a.encloseNamespace("shared.hooks"),v=function(){var e=f(i.a.useState([]),2),t=e[0],n=e[1],r=o.Radio.channel(a.a.SHELL);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.find((function(t){return t.id===e.id}))||(e.allowAppLinks||r.trigger(s.a.EventNames.LOCK_NAV),n([].concat(d(t),[e])))}function g(e){var i=t.filter((function(t){return t.id!==e}));0!==i.length&&i.find((function(e){return!e.allowAppLinks}))||r.trigger(s.a.EventNames.UNLOCK_NAV),n(i)}function m(e){if(t.length){var n=t.find((function(e){return!e.allowAppLinks})),o=[{buttonText:y("cancel"),className:"btn btn-secondary"},{buttonText:y("discard"),className:"btn btn-danger",onClick:n.onConfirmUnlock?n.onConfirmUnlock:function(){},success:!0}];h.a.render(i.a.createElement("p",null,n.text),{title:n.title,buttons:o,success:function(){return function(e){r.trigger(s.a.EventNames.NAV_UNLOCKED_BY_USER),t.forEach((function(e){e.allowAppLinks||g(e.id)})),s.a.AppLinkHelper.trigger(e)}(e)}})}}function v(e){var n=t.find((function(e){return e.allowAppLinks}));return n||(n=l.a.first(t)),e.returnValue=n.text,n.text}return i.a.useEffect((function(){return t.find((function(e){return!e.allowAppLinks}))&&r.on(s.a.EventNames.NAV_IS_LOCKED,m),t.length&&window.addEventListener("beforeunload",v),function(){r.off(s.a.EventNames.NAV_IS_LOCKED,m),window.removeEventListener("beforeunload",v)}}),[t]),i.a.useEffect((function(){function e(){c({id:"upload",title:y("uploadLockTitle"),text:y("uploadLockBody"),allowAppLinks:!0})}var t=o.Radio.channel(u.c.VIDEO_UPLOAD);return t.on(p.a.FILES_ADDED,e),t.on(p.a.UNLOCK_NAV,g),function(){t.off(p.a.FILES_ADDED,e),t.off(p.a.UNLOCK_NAV,g)}}),[]),{lock:c,unlock:g}}},function(e,t,n){"use strict";var r=n(11),i=n(62),o=n(21),a=n(2),s=n(10),c=n(73),l=n(9),u=n(137),p=n(30),h=n(127),d=n(141);const f="upload.utils",g={getStatus(e){if(g.hasError(e))return l.a.getPhrase(f,"videoProcessingError");if(!e.get("foregroundComplete")){const t=g.getProgress(e);return 0===t?l.a.getPhrase(f,"waiting"):l.a.getPhrase(f,"processing",{progress:t})}return g.isDone(e)?l.a.getPhrase(f,"complete"):l.a.getPhrase(f,"readyToWatch")},hasError:e=>e.get("pendingProcessStatus")===d.a.Error,isDone:e=>2===e.get("pendingProcessStatus"),getProgress:e=>e.get("foregroundProgress"),hasExpired(e,t){const n=e.get("timeInitialized");return h().diff(n,"days")>=t}};var m=n(57),y=n(29),v=n(7),b=n(13),_=n(44),C=n(87);function T(e){return(T="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 E(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function k(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)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(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=O(e);if(t){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==T(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"b",(function(){return L})),n.d(t,"a",(function(){return R}));var L,P=l.a.encloseNamespace("upload.services"),N=function(e){k(n,e);var t=x(n);function n(){return S(this,n),t.apply(this,arguments)}return E(n,[{key:"modelId",value:function(e){return e.pendingProcessId||e.id}},{key:"comparator",get:function(){return function(e,t){var n=e.get("status"),r=t.get("status");return n===L.Errored?1:r===L.Errored?-1:0}}}]),n}(a.a.Collection);!function(e){e[e.Uploading=0]="Uploading",e[e.Processing=1]="Processing",e[e.Errored=2]="Errored"}(L||(L={}));var R=function(e){k(n,e);var t=x(n);function n(){return S(this,n),t.apply(this,arguments)}return E(n,[{key:"initialize",value:function(){this.initializeServices(),this.initializeCollections(),this.bindListeners()}},{key:"initializeServices",value:function(){this.videoUploadService=s.a.getInstance(y.b.VideoUpload,this),this.pendingItemsService=s.a.getInstance(y.b.PendingItems,this),this.alertService=s.a.getInstance(c.a.ALERT,this)}},{key:"initializeCollections",value:function(){this.uploads=this.videoUploadService.getCollection(),this.pendingItems=this.pendingItemsService.getPendingItems(),this.combined=new N,this.erroredVideos=new a.a.Collection,this.uploads.each(this.addUpload,this),this.pendingItems.each(this.addPendingItem,this)}},{key:"bindListeners",value:function(){this.listenTo(this.uploads,"add",this.addUpload),this.listenTo(this.pendingItems,"add",this.addPendingItem),this.listenTo(this.uploads,"remove",this.removeUpload),this.listenTo(this.pendingItems,"remove",this.removePendingItem),this.listenTo(this.uploads,"change",this.onChangeUpload),this.listenTo(this.pendingItems,"change",this.onChangePendingItem),this.listenTo(p.c.PENDING_ITEMS,m.a.PENDING_ITEM_READY_TO_WATCH,this.onPendingItemReadyToWatch)}},{key:"getUploadAttrs",value:function(e){return{id:e.get("id"),name:e.get("name"),progress:e.get("progress"),status:L.Uploading,pendingProcessId:e.get("pendingProcessId")}}},{key:"getPendingItemAttrs",value:function(e){return{id:e.get("pendingProcessId"),name:e.get("video").get("name"),progress:e.get("foregroundProgress"),status:g.hasError(e)?L.Errored:L.Processing,pendingProcessId:e.get("pendingProcessId"),videoId:e.get("video").get("id")}}},{key:"addUpload",value:function(e){this.combined.add(this.getUploadAttrs(e))}},{key:"addPendingItem",value:function(e){var t=this.combined.findWhere({pendingProcessId:e.get("pendingProcessId")});t?t.set(this.getPendingItemAttrs(e)):this.combined.add(this.getPendingItemAttrs(e))}},{key:"removeUpload",value:function(e){var t=this.combined.get(e.get("id"));this.combined.remove(t),this.erroredVideos.remove(t)}},{key:"removePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));this.combined.remove(t),this.erroredVideos.remove(t),r.Radio.channel(this.channelName).trigger(m.a.PROCESSING_CANCELLED)}},{key:"onChangeUpload",value:function(e){this.combined.get(e.get("id")).set(this.getUploadAttrs(e))}},{key:"onChangePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));t.set(this.getPendingItemAttrs(e)),g.hasError(e)&&this.onPendingItemError(t)}},{key:"onPendingItemError",value:function(e){if(!this.erroredVideos.findWhere({id:e.get("id")})){this.erroredVideos.add(e);var t={heading:i.c.Fail,type:i.a.Fail,message:P("errorAlertMessage",{videoName:e.get("name")})},n=u.a.getCurrentContext().appLink;!!C.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=P("errorAlertAppLinkText"),t.appLinkClassName="info-link",t.appLink={application:v.a.DEFAULT,action:b.a.Default.MY_VIDEOS}),this.alertService.createAlert(t)}}},{key:"onPendingItemReadyToWatch",value:function(e){var t=e.get("video"),n={application:v.a.DEFAULT,action:b.a.Default.PLAY_VIDEO,args:[t.get("id"),_.a.slugify(t.get("name"))]};this.alertService.createAlert({type:i.a.Success,heading:P("completeUploadAlertHeading",{videoName:t.get("name")}),message:P("completeUploadAlertMessage",{videoName:t.get("name")}),appLink:n,appLinkText:P("completeUploadAlertAppLinkText",{videoName:t.get("name")}),appLinkClassName:"info-link"})}},{key:"cancelUpload",value:function(e){this.videoUploadService.cancelUpload(e)}},{key:"cancelProcessing",value:function(e){var t=this.pendingItems.findWhere({pendingProcessId:e});this.pendingItemsService.clearPendingItem(t)}},{key:"retryItem",value:function(e){var t=this;e.status===L.Uploading&&a.a.ErrorHelper.throw(new o.a("Cannot retry uploading items.")),this.erroredVideos.remove(e);var n=this.pendingItems.findWhere({pendingProcessId:e.id});this.pendingItemsService.retryPendingItem(n,(function(){t.pendingItemsService.forceFetchPendingItems()}))}},{key:"editUpload",value:function(e){e.status===L.Uploading&&(this.uploads.get(e.id).get("sending")||a.a.AppLinkHelper.trigger({application:v.a.UPLOAD,action:b.a.Upload.EDIT_UPLOAD,args:[e.id]}))}},{key:"updateUploadMetadata",value:function(e,t){var n=this.combined.findWhere({videoId:e});n&&n.set({name:t})}},{key:"getCollection",value:function(){return this.combined}},{key:"name",get:function(){return y.b.CombineUploads}},{key:"channelName",get:function(){return v.b.COMBINE_UPLOADS}}]),n}(a.a.Service)},function(e,t,n){"use strict";var r,i=n(49);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(r||(r={})),n.d(t,"a",(function(){return p}));const o=()=>`/api/domain/v1/subjects?query=${i.a.CLASSIFICATION}&type=subject`,a=(e,t)=>`/api/domain/v1/subjects/${e}?query=${i.b.ClassificationWithFollowersAndMemberCount(t)}`,s=e=>`/api/domain/v1/subjects/${e}/path`,c=e=>`/api/domain/v1/subjects/${e}/children?query=${i.a.CLASSIFICATION}`,l=(e,t,n="",r="")=>{let i=`/api/domain/v1/subjects/${e}/${t}`;const o=[];n&&o.push("query="+n),r&&o.push("cursor="+r);const a=o.join("&");return a&&(i+="?"+a),i},u=e=>`/api/domain/v1/subjects/objects/${e}/classifications/paths?type=curriculum`,p={presentation:()=>({url:"/api/domain/v1/subjects/presentations?type=subject",key:"presentation",bootstrapName:"presentation"}),classifications:()=>({url:o(),key:"classifications",expiryTime:1/0}),classification:(e,t,n)=>({url:a(e,t),key:"classification:"+e,error:n,expiryTime:1/0}),path:e=>({url:s(e),key:`classification:${e}:path`,expiryTime:1/0}),children:e=>({url:c(e),key:`classification:${e}:children`,expiryTime:1/0}),videos(e,t,n){if(!t)return;let o="limit:100";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));const a=`{${o}}${i.a.VIDEO_COLLECTION},_hasInteractives,`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Videos,a),key:`classification:${e}:${r.Videos}:${n.join(":")}`,expiryTime:1/0}},playlists(e,t,n){if(!t)return;let o="limit:100,orderby:name";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));const a=`{${o}}${i.a.PLAYLIST_COLLECTION},`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Playlists,a),key:`classification:${e}:${r.Playlists}:${n.join(":")}`,expiryTime:1/0}},series(e,t,n){if(!t)return;let o="limit:100";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));const a=`{${o}}${i.a.SERIES},`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Series,a),key:`classification:${e}:${r.Series}:${n.join(":")}`,expiryTime:1/0}},curriculumLinks:e=>({url:u(e),key:"curriculum:links:"+e,expiryTime:1/0,normalize:!1})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.unspecifiedError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"UnspecifiedError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.privateResourceError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.regionLockedResourceError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);class i extends r.a.Model{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n.n(r);function o(){return i.a.createElement("svg",{viewBox:"0 0 24 24"},i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},i.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},i.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),i.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),i.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),i.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("line",{x1:"16.2",y1:"15",x2:"12.6",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round",transform:"translate(14.400000, 16.800000) scale(-1, 1) translate(-14.400000, -16.800000) "}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(40),o=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 a(e){const{showSpinner:t,children:n}=e,a=o(e,["showSpinner","children"]),s=r.useRef(),[c,l]=r.useState({});return r.useEffect(()=>{const{width:e,height:t}=c;if(e&&t)return;const n=s.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&l({width:i,height:r})}),r.useEffect(()=>{const{width:e,height:t}=c;if(!e||!t)return;const n=s.current;n.style.width=e+1+"px",n.style.height=t+1+"px"},[c]),r.createElement(i.Button,Object.assign({ref:s,disabled:t},a),t?r.createElement(i.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}},function(e,t,n){"use strict";var r=n(6),i=n(12),o=n.n(i);function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function e(t){var n=this;if(r.a.browser.IS_IE8)for(var i in n=o.a.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);return n.id=t.id,n.label=n.id,n.width=t.width,n.height=t.height,n.bitrate=t.bandwidth,n.enabled_=t.enabled,Object.defineProperty(n,"enabled",{get:function(){return n.enabled_()},set:function(e){n.enabled_(e)}}),n},c=function(e){
30
30
  /*! @name videojs-contrib-quality-levels @version 2.0.9 @license Apache-2.0 */
31
- var t,n;function i(){var t,n=a(a(t=e.call(this)||this));if(r.a.browser.IS_IE8)for(var s in n=o.a.createElement("custom"),i.prototype)"constructor"!==s&&(n[s]=i.prototype[s]);return n.levels_=[],n.selectedIndex_=-1,Object.defineProperty(n,"selectedIndex",{get:function(){return n.selectedIndex_}}),Object.defineProperty(n,"length",{get:function(){return n.levels_.length}}),n||a(t)}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.addQualityLevel=function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var n=this.levels_.length;return t=new s(e),""+n in this||Object.defineProperty(this,n,{get:function(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t},c.removeQualityLevel=function(e){for(var t=null,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},c.getQualityLevelById=function(e){for(var t=0,n=this.length;t<n;t++){var r=this[t];if(r.id===e)return r}return null},c.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},i}(r.a.EventTarget);for(var l in c.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},c.prototype.allowedEvents_)c.prototype["on"+l]=null;var u=r.a.registerPlugin||r.a.plugin,p=function(e){return t=this,r.a.mergeOptions({},e),n=t.qualityLevels,i=new c,t.on("dispose",(function e(){i.dispose(),t.qualityLevels=n,t.off("dispose",e)})),t.qualityLevels=function(){return i},t.qualityLevels.VERSION="2.0.9",i;var t,n,i};u("qualityLevels",p),p.VERSION="2.0.9";class h{constructor(e,t){this.id=t.id,this.plugin=e,this.source=t,this.enabled=this.enabled.bind(this)}enabled(e){return void 0===e?this.plugin.currentSource===this.source:(e&&this.plugin.setSource(this.source.id),e)}}const d=r.a.getPlugin("plugin");r.a.registerPlugin("progressiveFiles",class extends d{constructor(e,t){super(e),this.sources=[],this.qualityLevels=e.qualityLevels(),this.populateSources(t.sources)}get currentSource(){return this._currentSource}setSource(e){const t=this.getSourceById(e);if(null===t)return this.currentSource;const n=this.player.currentTime(),r=!this.player.paused();this._currentSource=t,this.player.src({src:t.url,type:t.mimeType});return this.player.one("loadedmetadata",()=>{this.player.currentTime()!==n&&this.player.currentTime(n),r&&this.player.play()}),this.trigger({event:"sourcechange",source:t}),this.sourceChangeUpdateQualityLevels(t),t}getSourceById(e){return this.sources.find(t=>t.id===e)}populateSources(e){let t=null;e.forEach(e=>{this.qualityLevels.addQualityLevel(new h(this,e)),this.sources.push(e),this.trigger({event:"addsource",source:e}),e.default&&(t=e)}),null===t&&(t=this.sources[0]),null!==t&&this.setSource(t.id)}sourceChangeUpdateQualityLevels(e){const t=this.qualityLevels;let n=-1;for(let r=0;r<t.length;r++)if(t[r].id===e.id){n=r;break}t.selectedIndex_=n,t.trigger({selectedIndex:n,type:"change"})}});var f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class g{constructor(e){this.name=e.name,this.playbackProfile=e.playbackProfile,this.address=new URL(e.httpsAddress)}getUrl(e){return e?this.address+"cache?file="+encodeURIComponent(e):null}ping(){return f(this,void 0,void 0,(function*(){const e=new AbortController,t=setTimeout(()=>e.abort(),1e3);try{const n=yield fetch(this.address+"ping",{method:"GET",mode:"cors",signal:e.signal}),r=yield n.text();return clearTimeout(t),"PONG"===r}catch(e){return!1}}))}}var m=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class y{constructor(e){this.player=e,this.logger=r.a.log.createLogger("localcache")}setSource(e,t){return m(this,void 0,void 0,(function*(){t(null,e)}))}}r.a.use("*",e=>new y(e));n(894);var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const b=r.a.getComponent("Component");r.a.registerComponent("localCacheIndicator",class extends b{constructor(e,t){super(e,t),this.hide(),this.onLocalCacheChange=this.onLocalCacheChange.bind(this),e.ready(()=>{this.initialize()})}createEl(){return super.createEl("div",{className:"vjs-local-cache-indicator",innerHTML:'<div class="vjs-local-cache-indicator-icon"><?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.9"><g id="Local-Cache" transform="translate(2.000000, 2.000000)"><rect id="Rectangle" fill="#FFFFFF" x="0" y="2.4" width="18.8" height="15.2"></rect><ellipse id="Oval" fill="#FFFFFF" cx="9.4" cy="2.4" rx="9.4" ry="2.4"></ellipse><ellipse id="Oval-Copy" fill="#FFFFFF" cx="9.4" cy="17.6" rx="9.4" ry="2.4"></ellipse><g id="Logo/Circle" transform="translate(2.500000, 3.000000)"><circle id="Oval" fill="#FFFFFF" cx="7" cy="7" r="7"></circle><polygon id="Fill-1" fill="#F8981D" points="4.66666667 2.33333333 4.66666667 11.4245258 10.0383286 6.87866667"></polygon></g></g></g></svg></div>',title:"Streaming from ClickView Local Cache"})}initialize(){this.localCachePlugin=this.player_.localCache(),this.localCachePlugin&&(this.localCachePlugin.on("localcachechanged",this.onLocalCacheChange),this.player_.on("dispose",()=>{this.localCachePlugin.off("localcachechanged",this.onLocalCacheChange)}),this.onLocalCacheChange())}onLocalCacheChange(){return v(this,void 0,void 0,(function*(){(yield this.localCachePlugin.getActiveLocalCache())?this.show():this.hide()}))}});var _=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const C=r.a.getPlugin("plugin");r.a.registerPlugin("localCache",class extends C{constructor(e,t){if(super(e),this.logger_=r.a.log.createLogger("localcache"),void 0===t)throw Error("no options defined");this.onPlayerError=this.onPlayerError.bind(this),this.dispose=this.dispose.bind(this),this.localCaches_=t.localCacheAddresses.map(e=>new g(e)),this.player.ready(()=>{this.initialize(),t.enabled&&this.enable()})}get isEnabled(){return this.enabled_}enable(){this.enabled_=!0,this.resetActiveLocalCache()}disable(){this.enabled_=!1}getActiveLocalCache(){return this.enabled_?this.activeLocalCache_:null}resetActiveLocalCache(){this.clearActiveLocalCache(),this.activeLocalCache_=this.getActiveLocalCacheInternal()}clearActiveLocalCache(){this.activeLocalCache_&&(this.activeLocalCache_=null,this.onLocalCacheChange(null))}dispose(){this.player.off("error",this.onPlayerError)}initialize(){this.player.on("error",this.onPlayerError),this.player.on("dispose",this.dispose),this.player.controlBar.addChild("localCacheIndicator")}onPlayerError(){var e;(null===(e=this.player.error())||void 0===e?void 0:e.code)===MediaError.MEDIA_ERR_NETWORK&&this.resetActiveLocalCache()}getActiveLocalCacheInternal(){return _(this,void 0,void 0,(function*(){const e=[],t=t=>_(this,void 0,void 0,(function*(){(yield t.ping())&&e.push(t)}));if(yield Promise.all(this.localCaches_.map(e=>t(e))),e.length>0){const t=e[0];return this.onLocalCacheChange(t),t}return null}))}onLocalCacheChange(e){this.logger_.debug("Local Cache changed",e),this.trigger("localcachechanged",{localCache:e});let t=!1;e&&e.playbackProfile&&(this.logger_.debug("Changing active profile for local cache",e.playbackProfile),class{static getKnownProfiles(){return["1080","720","480","360","240"]}static enableProfileOrNextBest(e,t){let n=e.getQualityLevelById(t);if(n||(n=this.getNextBestQuality(e,t)),!n)return null;for(let t=0;t<e.length;t++){const r=e[t];r.enabled=n.id===r.id}return n}static getNextBestQuality(e,t){const n=this.getKnownProfiles(),r=n.indexOf(t);if(r>=0){for(let t=r+1;t<n.length;t++){const r=n[t],i=e.getQualityLevelById(r);if(i)return i}for(let t=r-1;t>0;t--){const r=n[t],i=e.getQualityLevelById(r);if(i)return i}}return null}}.enableProfileOrNextBest(this.player.qualityLevels(),e.playbackProfile),t=!0),t||this.player.src(this.player.src())}});n(895);const T=r.a.getComponent("Component");class S extends T{buildCSSClass(){return"cv-time-wrapper "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}}S.prototype.options_={children:["currentTimeDisplay","remainingTimeDisplay"]},r.a.registerComponent("TimeWrapper",S);const w=r.a.getComponent("MenuItem");r.a.registerComponent("NextVideoMenuItem",class extends w{constructor(e,t){super(e,t),this.playNext=e.nextVideoPlugin().getShouldPlayNext(),this.toggle(this.playNext)}handleToggle(){this.toggle(!this.playNext)}toggle(e){e?this.toggleOn():this.toggleOff()}toggleOn(){this.playNext=!0,r.a.dom.addClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext)}toggleOff(){this.playNext=!1,r.a.dom.removeClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext)}handleClick(e){e.stopImmediatePropagation()}createEl(e,t,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=r.a.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);const i=super.createEl(e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">autoplay</span>\n <span class="cv-toggle-container"></span>'},n);return i.children[1].appendChild(this.toggleEl),i}});n(896);const E=r.a.getComponent("MenuItem"),k=r.a.getComponent("NextVideoMenuItem");class A extends E{constructor(e,t){super(e,t)}handleClick(e){super.handleClick(e),this.requestAnimationFrame(()=>{this.options_.item.showCollapsibleMenu()})}createEl(e,t,n){if(!this.options_.item)return super.createEl(e,t,n);const r=`\n <span class="vjs-menu-item-text">${this.options_.item.getCollabsibleName()}</span>\n <span>${this.options_.item.getCollabsibleValue()}</span>`;return super.createEl(e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:r},n)}}const x=r.a.getComponent("MenuButton");r.a.registerComponent("cogButton",class extends x{constructor(e,t){super(e,t)}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}buildCSSClass(){return"cv-cog-button "+super.buildCSSClass()}pressButton(){this.update(),x.prototype.pressButton.apply(this)}createItems(){const e=[];this.renderPlayNext&&e.push(new k(this.player_,this.options_));for(let t=0;t<this.options_.items.length;t++){const n=this.options_.items[t];n.isCollabsible&&(n.showInCollabsibleMenu()&&n.isCollapsed&&e.push(new A(this.player_,{item:n})))}return e}update(){super.update(),this.player_.trigger("resizemenus")}showPlayNext(){this.renderPlayNext=!0,this.update()}});n(897),n(898),n(899);const I=r.a.getComponent("Component");class O extends I{constructor(e,t){super(e,t),this.addChild("cogButton",{items:this.children_},this.children_.length-1),this.update=this.update.bind(this),this.player_.on("playerresize",this.update),this.player_.on("dispose",()=>{this.player_.off("playerresize",this.update)})}togglehidden(e){for(let t=0;t<this.children_.length;t++){const n=this.children_[t];n.isCollabsible&&(n.alwaysCollapsed||e?(n.isCollapsed=!0,n.addClass("cv-collapsed")):(n.isCollapsed=!1,n.removeClass("cv-collapsed")))}this.getChild("cogButton").update()}update(){const e=this.player_.el().getBoundingClientRect();0!==e.width&&this.togglehidden(e.width<600)}buildCSSClass(){return"cv-collapsorator "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}}O.prototype.options_={children:["playToggle","volumePanel","customControlSpacer","playbackRateMenuButton","chaptersButton","qualityButton","subsCapsButton","fullscreenToggle"]},r.a.registerComponent("collapserator",O);n(900);const L=r.a.getComponent("Component");class P extends L{buildCSSClass(){return"cv-chapter-bar-items "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(){this.children_.forEach(e=>{e.update()})}}const N=r.a.getComponent("Component");class R extends N{buildCSSClass(){return"cv-chapter-bar-load-progress "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(e){this.el_.style.width=100*e+"%"}}const D=r.a.getComponent("Component");class U extends D{buildCSSClass(){return"cv-chapter-bar-play-progress "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(e){e>0&&e<1?this.addClass("cv-current"):this.removeClass("cv-current"),this.el_.style.width=100*e+"%"}}const B=r.a.getComponent("Component");class V extends B{constructor(e,t){super(e,t),this.playProgress=new U(this.player_),this.addChild(this.playProgress),this.loadProgress=new R(this.player_),this.addChild(this.loadProgress),this.update()}buildCSSClass(){return"cv-chapter-bar-item "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}getCurrentTime(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}update(){const e=this.player_.duration(),t=this.options_.endTime-this.options_.startTime;if(e!==this.duration_){const n=t/e;this.el_.style.width=100*n+"%";const r=this.options_.startTime/e;this.el_.style.left=100*r+"%",this.duration_=e}const n=this.getCurrentTime();n<this.options_.startTime?this.playProgress.update(0):n>this.options_.endTime?this.playProgress.update(1):this.playProgress.update((n-this.options_.startTime)/t);const r=this.player_.bufferedEnd();r<this.options_.startTime?this.loadProgress.update(0):r>this.options_.endTime?this.loadProgress.update(1):this.loadProgress.update((r-this.options_.startTime)/t)}}var M=n(112);const j=r.a.getComponent("SeekBar");class F extends j{constructor(e,t){super(e,t),this.onDurationChange=this.onDurationChange.bind(this),this.createChapterItems=this.createChapterItems.bind(this),M.a.useTrack(this.player_,"chapters",null,this.createChapterItems),this.player_.on("durationchange",this.onDurationChange),this.player_.on("dispose",()=>{this.player_.off("durationchange",this.onDurationChange)})}createEl(){return r.a.dom.createEl("div",{className:"vjs-progress-holder cv-chapter-seek-bar"},{"aria-label":this.localize("Progress Bar")})}onDurationChange(){this.createChapterItems(),this.update()}update(){const e=super.update();return this.chapterBarItems&&this.chapterBarItems.update(),e}createChapterItems(e){e&&(this.track_=e);const t=new P(this.player_);if(this.track_)for(let e=0;e<this.track_.cues.length;e++){const n=this.track_.cues[e],r=n.startTime;let i=n.endTime;const o=this.player_.duration();o&&(e===this.track_.cues.length-1&&n.endTime<this.player_.duration()&&(i=this.player_.duration()),i>o&&(i=o));const a=new V(this.player_,{startTime:r,endTime:i});if(t.addChild(a),o&&i===o)break}else t.addChild(new V(this.player_,{startTime:0,endTime:this.player_.duration()}));this.chapterBarItems&&this.removeChild(this.chapterBarItems),this.chapterBarItems=t,this.addChild(this.chapterBarItems)}}F.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},r.a.browser.IS_IOS||r.a.browser.IS_ANDROID||F.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),r.a.registerComponent("ChapterSeekBar",F);n(901);const H=r.a.getComponent("ProgressControl");class z extends H{constructor(){super(...arguments),this.seekBarName_="seekBar"}setSeekBarName(e){this.seekBarName_=e}getChild(e){return(null==e?void 0:e.toLowerCase())==="seekBar".toLowerCase()&&(e=this.seekBarName_),super.getChild(e)}}function W(e,t=e){e=e<0?0:e;let n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600);const o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||a>0?i+":":"",r=((i||o>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n}z.prototype.options_={children:[]},r.a.registerComponent("ProgressControl",z);n(902);const q=r.a.getComponent("TimeTooltip");r.a.registerComponent("TimeTooltip",class extends q{constructor(e,t){super(e,t),M.a.useTrack(this.player_,"chapters",!1,e=>{this.track_=e})}createEl(){const e=super.createEl();return this.chapter_=r.a.dom.createEl("div"),e.appendChild(this.chapter_),this.time_=r.a.dom.createEl("div"),e.appendChild(this.time_),e}updateTime(e){const t=this.player_.duration();if(r.a.dom.textContent(this.time_,W(e,t)),this.track_){for(let t=0;t<this.track_.cues.length;t++){const n=this.track_.cues[t];if(n.startTime<=e&&n.endTime>=e)return void r.a.dom.textContent(this.chapter_,n.text)}r.a.dom.textContent(this.chapter_,"")}}});n(903);const G=r.a.getComponent("Component");class $ extends G{constructor(e,t){super(e,t)}setTrack(e){this.track_=e}createEl(){const e=super.createEl("div",{className:"cv-thumbnail-display"});return this.img_=r.a.dom.createEl("img"),e.appendChild(this.img_),e}enable(){this.addClass("cv-thumbnail-display-enabled")}disable(){this.removeClass("cv-thumbnail-display-enabled")}parseImageLink(e){const t=e.indexOf("#");if(-1===t)return{src:e,w:0,h:0,x:0,y:0};const n=e.substr(0,t),r=e.substr(t+1);if("xywh="!==r.substr(0,5))return{src:e,w:0,h:0,x:0,y:0};const i=this.options_.scaleFactor,o=r.substr(5).split(",");return{src:n,w:parseInt(o[2])*i,h:parseInt(o[3])*i,x:parseInt(o[0])*i,y:parseInt(o[1])*i}}update(e){var t,n;if(!(null===(n=null===(t=this.track_)||void 0===t?void 0:t.cues)||void 0===n?void 0:n.length))return;const r=e;let i,o=0;for(;o<this.track_.cues.length;){const e=this.track_.cues[o];if(e.startTime<=r&&e.endTime>=r){i=this.parseImageLink(e.text);break}o++}if(!(null==i?void 0:i.src))return void this.disable();this.enable();const{src:a,w:s,h:c,x:l,y:u}=i,p=this.options_.scaleFactor;this.img_.src=a,this.img_.style.left=-l+"px",this.img_.style.top=-u+"px",this.img_.style.transformOrigin="0 0",this.img_.style.transform=`scale(${p})`,this.el_.style.width=s+"px",this.el_.style.height=c+"px"}}$.prototype.options_={scaleFactor:1},r.a.registerComponent("ThumbnailDisplay",$);n(904);const K=r.a.getComponent("MouseTimeDisplay");class Y extends K{constructor(e,t){super(e,t),M.a.useTrack(this.player_,"metadata","thumbnails",e=>{this.getChild("ThumbnailDisplay").setTrack(e)})}update(e,t){this.requestAnimationFrame(()=>{const n=t*this.player_.duration();this.getChild("ThumbnailDisplay").update(n),this.getChild("TimeTooltip").updateTime(n);const r=this.el_.getBoundingClientRect();this.el_.style.marginLeft=-r.width/2+"px";const i=e.width*t;i<r.width/2?this.el_.style.left=r.width/2+"px":i>e.width-r.width/2?this.el_.style.left=e.width-r.width/2+"px":this.el_.style.left=e.width*t+"px"})}}Y.prototype.options_={children:["ThumbnailDisplay","TimeTooltip"]},r.a.registerComponent("MouseTimeDisplay",Y);n(271),n(287);var J=n(258),X=n.n(J),Q=(n(272),n(146),n(273),n(274),n(275),n(219),n(276),n(277),n(302)),Z=n.n(Q),ee=n(303),te=n.n(ee),ne=n(495),re=n.n(ne),ie=n(496),oe=(n(278),n(279),n(280),n(281),n(282),null),ae=null;function se(){if(null===oe){if("undefined"==typeof document)return oe=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),oe=n}return oe}X.a&&window.addEventListener("resize",(function(){ae!==window.devicePixelRatio&&(ae=window.devicePixelRatio,oe=null)}));var ce=function(e){return Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})};function le(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ue(e){return e&&e.ownerDocument?e.ownerDocument:document}var pe=function(){function e(t,n){var r=this;this.onScroll=function(){var e=le(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,i=n.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],s=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var c=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(i-o.size)*(a-s);"x"===r.draggedAxis&&(c=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?c-(i+o.size):c,c=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-c:c),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=c},this.onEndDrag=function(e){var t=ue(r.el),n=le(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=Z()(this.recalculate.bind(this),64),this.onMouseMove=Z()(this.onMouseMove.bind(this),64),this.hideScrollbars=te()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=te()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=re()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=999;var a=e.getOffset(r);return{isRtlScrollingInverted:i.left!==o.left&&o.left-a.left!=0,isRtlScrollbarInverted:i.left!==o.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=ue(e),r=le(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),X.a&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=le(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=t.ResizeObserver||ie.a;this.resizeObserver=new r((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=le(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=s+"px";var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=c>r,this.axis.y.isOverflowing=s>l,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,p=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>i-p,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>l-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],i=r/n;return t=Math.max(~~(i*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-i),c=~~((r-o.size)*s);c="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?c+(r-o.size):c,o.el.style.transform="x"===t?"translate3d("+c+"px, 0, 0)":"translate3d(0, "+c+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=ue(this.el),r=le(this.el),i=this.axis[t].scrollbar,o="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=o-i.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=le(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var i=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=("y"===t?this.mouseY-i:this.mouseX-i)<0?-1:1,c=-1===s?a-o:a+o;!function e(){var i,o;-1===s?a>c&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=a,i)),r.requestAnimationFrame(e)):a<c&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:se()}catch(e){return se()}},t.removeListeners=function(){var e=this,t=le(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();pe.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},pe.instances=new WeakMap,pe.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||pe.instances.has(e)||new pe(e,ce(e.attributes))}))},pe.removeObserver=function(){this.globalObserver.disconnect()},pe.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(pe.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},pe.handleMutations=function(e){e.forEach((function(e){Array.prototype.forEach.call(e.addedNodes,(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!pe.instances.has(e)&&new pe(e,ce(e.attributes)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||pe.instances.has(e)||new pe(e,ce(e.attributes))})))})),Array.prototype.forEach.call(e.removedNodes,(function(e){1===e.nodeType&&(e.hasAttribute('[data-simplebar="init"]')?pe.instances.has(e)&&pe.instances.get(e).unMount():Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),(function(e){pe.instances.has(e)&&pe.instances.get(e).unMount()})))}))}))},pe.getOptions=ce,X.a&&pe.initHtmlApi();var he=pe;const de={initMenuScrollbar(e){de.unMountScrollbar(e);const t=de.getMenuEl(e);t&&(e.simpleBar_=new he(t,{autoHide:!1}),e.one("dispose",()=>de.unMountScrollbar(e)))},unMountScrollbar(e){e.simpleBar_&&e.simpleBar_.unMount()},getMenuEl:e=>e.el().querySelector(".vjs-menu-content")};n(905);const fe=r.a.getComponent("ChaptersTrackMenuItem");class ge extends fe{constructor(e,t){super(e,t),this.nonIconControl=!1,this.thumbnailDisplay=new $(this.player_,{scaleFactor:.5}),this.el().insertBefore(this.thumbnailDisplay.el(),this.el().firstChild),M.a.useTrack(this.player_,"metadata","thumbnails",e=>{this.addClass("cv-has-thumbnails"),this.thumbnailDisplay.setTrack(e),this.thumbnailDisplay.update(this.options_.cue.startTime)})}update(){this.player_&&fe.prototype.update.call(this)}buildCSSClass(){return"vjs-menu-item cv-chapter-menu-item"}createEl(e,t,n){return this.nonIconControl=!0,super.createEl("li",Object.assign({className:this.buildCSSClass(),innerHTML:this.getInnerHTML(),tabIndex:-1},t),n)}getInnerHTML(){const e=this.player_.duration();return`<span class="vjs-menu-item-text cv-chapter-menu-item-text"><p>${this.localize(this.options_.label)}</p><p>(${W(this.options_.cue.startTime,e)})</p></span>`}}n(906);const me=r.a.getComponent("ChaptersButton");r.a.registerComponent("ChaptersButton",class extends me{constructor(e,t,n){super(e,t,n),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildCSSClass(){return"cv-chapters-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"cv-menu-big "+super.buildWrapperCSSClass()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,r=t.length;n<r;n++){const r=t[n],i=new ge(this.player_,{track:this.track_,cue:r});e.push(i)}return e}setTrack(e){super.setTrack(e),this.track_&&"chapters"===this.track_.kind&&e.one("loadeddata",()=>{this.update()})}update(e){super.update(e),de.initMenuScrollbar(this)}getCollabsibleName(){return"Chapters"}getCollabsibleValue(){const e=this.track_.activeCues[0];return(null==e?void 0:e.text)||""}showInCollabsibleMenu(){if(!this.track_)return!1;const e=this.track_.cues;return!(!e||!e.length)}showCollapsibleMenu(){this.handleClick(null)}});n(907);const ye=r.a.getComponent("SubsCapsButton");r.a.registerComponent("SubsCapsButton",class extends ye{constructor(){super(...arguments),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}update(){super.update(),de.initMenuScrollbar(this)}getCollabsibleName(){return"Subtitles"}getCollabsibleValue(){const e=this.player_.textTracks();for(let t=0;t<e.length;t++){const n=e[t];if(this.kinds_.indexOf(n.kind)>-1&&"showing"===n.mode)return n.label}return"Off"}showInCollabsibleMenu(){const e=this.player_.textTracks();for(let t=0;t<e.length;t++){const n=e[t];if(this.kinds_.indexOf(n.kind)>-1)return!0}return!1}showCollapsibleMenu(){ye.prototype.handleClick.apply(this)}});const ve=r.a.getComponent("MenuItem");class be extends ve{constructor(e,t){super(e,t),this.qualityId=t.qualityId;const n=e.qualityLevels(),r=this.handleQualityChange.bind(this);n.on("change",r),e.on("dispose",()=>{n.off("change",r)})}buildCSSClass(){return"vjs-menu-item cv-quality-menu-item"}handleClick(){const e=this.player_.qualityLevels();for(let t=0;t<e.length;t++){const n=e[t];n.enabled=n.id===this.qualityId}}handleQualityChange(){if(!this.player_)return;const e=this.player_.qualityLevels(),t=e[e.selectedIndex],n=t&&t.id===this.qualityId;n!==this.isSelected_&&this.selected(n)}}n(908);const _e={240:"240p",360:"360p",480:"480p",720:"720p",1080:"1080p"},Ce=r.a.getComponent("MenuButton");r.a.registerComponent("QualityButton",class extends Ce{constructor(e,t){super(e,t),this.alwaysCollapsed=!0,this.isCollapsed=!1,this.isCollabsible=!0;const n=this.player_.qualityLevels(),r=this.update.bind(this);n.on("addqualitylevel",r),n.on("removequalitylevel",r),e.on("dispose",()=>{n.removeEventListener("addqualitylevel",r),n.removeEventListener("removequalitylevel",r)})}buildCSSClass(){return"cv-quality-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"cv-menu-small vjs-quality-button "+super.buildWrapperCSSClass()}createItems(){const e=[],t=this.player_.qualityLevels();for(let n=0;n<t.length;n++){const r=t[n];if(!r)continue;const i=_e[r.id];i&&e.push(new be(this.player_,{qualityId:r.id,label:i,selectable:!0,multiSelectable:!1}))}return e}update(){super.update(),de.initMenuScrollbar(this)}getCollabsibleName(){return"Playback quality"}getCollabsibleValue(){const e=this.player_.qualityLevels(),t=e[e.selectedIndex];return t?_e[t.id]:""}showInCollabsibleMenu(){return!!this.player_.qualityLevels().length}showCollapsibleMenu(){Ce.prototype.handleClick.apply(this)}});n(909);const Te=r.a.getComponent("Menu"),Se=r.a.getComponent("MenuButton"),we=r.a.getComponent("PlaybackRateMenuItem"),Ee=r.a.getComponent("PlaybackRateMenuButton");r.a.registerComponent("PlaybackRateMenuButton",class extends Ee{constructor(){super(...arguments),this.alwaysCollapsed=!0,this.isCollapsed=!1,this.isCollabsible=!0}createEl(...e){return Se.prototype.createEl.apply(this,...e)}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}createMenu(){const e=new Te(this.player(),{menuButton:this}),t=this.playbackRates();if(t)for(let n=t.length-1;n>=0;n--)e.addItem(new we(this.player(),{rate:t[n]+"x"}));return e}handleClick(...e){return Se.prototype.handleClick.apply(this,...e)}updateLabel(...e){return this.setupLabelEl(),Ee.prototype.updateLabel.apply(this,...e)}setupLabelEl(){if(this.labelEl_)return;const e=this.$("button");e&&(this.labelEl_=r.a.dom.createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_))}getCollabsibleName(){return"Playback rate"}getCollabsibleValue(){return this.player().playbackRate()+"x"}showInCollabsibleMenu(){return!!this.playbackRates()}showCollapsibleMenu(){this.handleClick(null)}});n(910),n(911),n(912),n(913);var ke=n(24),Ae=n.n(ke);function xe(e){e.paused()?e.play():e.pause()}function Ie(e,t){e.currentTime(e.currentTime()+t)}function Oe(e,t){e.volume(e.volume()+t)}const Le={f:function(e){document[e.fsApi_.fullscreenEnabled]&&(e.isFullscreen()?e.exitFullscreen():e.requestFullscreen())},m:function(e){const t=e.volume(),n=e.lastVolume_();if(0===t){const t=n<.1?.1:n;e.volume(t),e.muted(!1)}else e.muted(!e.muted())},k:xe,space:xe,left:e=>Ie(e,-5),right:e=>Ie(e,5),j:e=>Ie(e,-10),l:e=>Ie(e,10),up:e=>Oe(e,.05),down:e=>Oe(e,-.05)};function Pe(e){const t=Ae()(e);Le[t]&&(e.preventDefault(),e.stopPropagation(),Le[t](this,e))}class Ne extends Error{constructor(e,t){super(e),this.url=t}}var Re=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const De=new class{get(e){return Re(this,void 0,void 0,(function*(){return yield this.parseResponse(yield fetch(e,{method:"GET",mode:"cors"}))}))}parseResponse(e){return Re(this,void 0,void 0,(function*(){if(404===e.status)return null;if(!e.ok)throw new Ne("Ajax error",e.url);return yield e.json()}))}};n.d(t,"a",(function(){return Ve}));var Ue=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Be=450;class Ve{constructor(e,t){if(this.options=r.a.mergeOptions({},Ve.options_,t),null===this.options.playerApi)throw new Error("PlayerApi required");this.initialize(),this.createEl(e),this.buildVideoJs(),this.bindEventListeners(),this.setupSeekBar(),this.player.ready(()=>{this.configurePlugins(),this.options.setup&&this.options.setup(this.options,this.player),this.options.startTime&&this.player.currentTime(this.options.startTime);this.fetch().catch(e=>{this.player.error(e.message),this.options.onError&&this.options.onError(e)})})}initialize(){}configurePlugins(){}buildVideoJs(){return this.player=Object(r.a)(this.el,this.getPlayerOptions())}getPlayerOptions(){return{controls:this.options.controls,autoplay:this.options.autoplay,fluid:!this.options.embed,fill:!!this.options.embed,inactivityTimeout:500,controlBar:{children:["timeWrapper","progressControl","collapserator"]},userActions:{hotkeys:Pe},playbackRates:this.options.playbackRates}}fetch(){return Ue(this,void 0,void 0,(function*(){let e=this.options.fetch;if(void 0===this.options.fetch&&(e=e=>{const t=`${this.options.playerApi.origin}/api/playback?viewKey=${e}`;return De.get(t)}),!this.options.viewKey)throw new Error("Please specify a viewKey or a fetch function");const t=yield e(this.options.viewKey);if(!t)throw new Error("Error fetching playback object");if(t.chapters.list.length>0){const e=this.player.addTextTrack("chapters");t.chapters.list.forEach(t=>{e.addCue({startTime:t.timestamp,endTime:t.endTimestamp,text:t.name})}),e.trigger({type:"loadeddata",target:e})}this.player.progressiveFiles({sources:t.files.progressive.map(e=>({id:e.profile,mimeType:e.mimeType,url:e.url}))}),t.subtitles.list.length>0&&t.subtitles.list.forEach(e=>{"text/vtt"===e.mimeType&&this.player.addRemoteTextTrack({kind:"subtitles",src:e.url,language:e.language,label:e.label,default:e.isDefault},!0)}),t.posterUrl&&this.player.poster(t.posterUrl),this.additionalSetup(t)}))}additionalSetup(e){}createEl(e){let t;"string"==typeof e?(e=(e=>0===e.indexOf("#")?e.slice(1):e)(e),t=r.a.dom.$("#"+e)):t=e;let n="video-js";return this.getPlayerClassName()&&(n+=" "+this.getPlayerClassName()),this.el=r.a.dom.createEl("video",{},{class:n}),t.appendChild(this.el),this.el}getPlayerClassName(){return""}on(e,t){this.player.on(e,t)}one(e,t){this.player.one(e,t)}off(e,t){this.player.off(e,t)}trigger(e,t){return this.player.trigger(e,t)}dispose(){this.player.dispose()}ready(e){this.player.ready(e)}play(){this.player.play()}currentTime(e){return this.player.currentTime(e)}bindEventListeners(){const e=()=>this.configureMenuDimensions();if(this.on("resize",e),this.on("fullscreenchange",e),this.one("play",e),this.on("resizemenus",e),this.player.on("dispose",()=>{this.off("resize",e),this.off("fullscreenchange",e),this.off("resizemenus",e)}),!this.options.hotkeyElQuerySelector)return;const t=r.a.dom.$(this.options.hotkeyElQuerySelector);t&&(this.player.on(t,"keydown",this.player.handleKeyDown),this.player.on("dispose",()=>{this.player.off(t,"keydown",this.player.handleKeyDown)}))}setupSeekBar(){const e=this.getSeekBarName(),t=this.player.controlBar.getChild("progressControl");t.addChild(e),t.setSeekBarName(e)}getSeekBarName(){return"ChapterSeekBar"}configureMenuDimensions(){const e=this.player.currentWidth(),t=this.player.currentHeight()/e*100,n=this.player.el().querySelector(".cv-collapsorator"),r=this.player.el().querySelectorAll(".vjs-menu"),i=n&&n.offsetHeight;i?r&&r.length&&r.forEach(n=>{n.style.paddingTop=`calc(${t}% - ${i}px)`,n.style.marginBottom=i+"px";n.querySelector(".vjs-menu-content")&&(e<=Be?this.player.addClass("cv-player-small"):this.player.removeClass("cv-player-small"))}):this.one("play",()=>this.configureMenuDimensions())}}Ve.options_={viewKey:null,controls:!0,playbackRates:[.5,1,1.5,2],playerApi:new URL("http://localhost:52000"),enableLocalCache:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),i=n(11),o=n(50),a=n(56),s=n(55),c=n(241),l=n(41),u=n(14),p=n(102),h=n(23);const d=/([A-Z])/g,f=/(^|:)(\w)/gi;class g extends o.AppRouter{constructor(e){super(e),this.bindDisposal(),this.processInternalRoutes(),this.processExternalRoutes(),this.processAppLinks()}bindDisposal(){this.listenTo(h.a.SHELL,l.a.ROUTE,e=>{e.application!==this.channelName&&this.destroyApp()})}addRouteLookup(e,t){this.options.shell.addRouteLookup(`${this.channelName}:${e}`,(n,r)=>a.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 i=r.extend({},this.controller.getAndClearDefaultQueryParams(),t.params);t.params=i,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(a.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 o=this.toMethodName(e.action);a.b.routingStarted();const s=i.Radio.channel(h.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(l.a.NAV_IS_LOCKED,e),void a.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 i=this.controller;if(r.isFunction(i[o])||(a.b.routingEnded(),u.c.throw(new u.b(`${o} does not exist on the ${r.result(i,"name")}.`))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void a.b.routingEnded();i.triggerMethod("load:layout"),i[o].apply(i,[...e.args||[],e.params||{}]),r.isFunction(n)&&n(),a.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(f,(e,t,n)=>n.toUpperCase());return t[0].toLowerCase()+t.slice(1,t.length)}validateAppLink(e){e.application&&e.action||(a.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 o}));var r=n(50),i=n(55);class o extends r.Behavior{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 s}));var r=n(1),i=n(50),o=n(55),a=n(14);class s extends i.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]||a.c.throw(new a.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)||a.c.throw(new a.b(`Layout: ${e.prototype.name} must define an ${t} region.`))})}listenTo(...e){return o.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),i=n(11),o=n(50),a=n(56),s=n(55),c=n(23),l=n(14),u=n(41),p=n(102);class h{constructor(e,t){this.application=e,this.options=t||{}}get Application(){return this.application}get Options(){return this.options}}class d extends o.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=i.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",()=>{a.b.routingEnded()})}bindErrorListener(){const e=i.Radio.channel(c.a.SHELL);this.listenTo(e,u.a.ERROR,this.handleError)}bindRouteLookup(){i.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 h(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,i)=>t(n,r,()=>e(n,r,i))),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){},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";n.r(t);var r=n(360);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(361);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(362);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);var s=n(363);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);var c=n(364);for(var i in c)"default"!==i&&function(e){n.d(t,e,(function(){return c[e]}))}(i);var l=n(365);for(var i in l)"default"!==i&&function(e){n.d(t,e,(function(){return l[e]}))}(i);var u=n(366);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);var p=n(367);for(var i in p)"default"!==i&&function(e){n.d(t,e,(function(){return p[e]}))}(i);var h=n(368);for(var i in h)"default"!==i&&function(e){n.d(t,e,(function(){return h[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 u}));var r=n(204),i=n(27),o=n(68),a=n(65),s=n(125),c=n(186),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 u(e){const{fetchData:t,bootstrappedData:n,defaultExpiryTime:u}=e,p=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:e=>e,expiryTime:u});return function(e){return i=>u=>{if(u.type!==a.a.API_REQUEST)return void i(u);const h=e.getState(),d=Object.assign({},p,u.request),{success:f,error:g,always:m,formatData:y}=d,v=l(d,["success","error","always","formatData"]),b=h.flightData.resources[v.key];if(i(u),b&&b.status===o.a.Fetching)return;if(v.bootstrapName&&n[u.request.bootstrapName])return C(n[u.request.bootstrapName]),T(),void delete n[u.request.bootstrapName];const _={resource:v.url,type:v.type,data:v.data,success:C,error:function(t){e.dispatch({type:a.a.API_ERROR,errorResponse:t.responseJSON,request:u.request,timestamp:r.a.currentTimestamp(),xhr:t}),v.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:v.invalidationKeys,request:v});g&&g(t)},always:T};return void(c.a.isSimulated(v)?c.a.simulateFetchData(_,v):t(_));function C(t,n){const i=y(t);let o={result:i,entities:{}};if(v.normalize&&(o=Object(s.b)(i,v.normalizeOptions)),e.dispatch({type:a.a.API_REPONSE,result:o.result,entities:o.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(h.flightData,t.keys),r=Object.assign({},Object.keys(h.flightData.resources).filter(e=>n[e]).reduce((e,t)=>{const n=h.flightData.resources[t];let r=n.response;return n.request.normalize&&(r=Object(s.a)(n.response,h.flightData.entities)),e[t]=r,e},{})),i=t.updateData(r);Object.keys(i).forEach(t=>{const n=h.flightData.resources[t],r=i[t];let o={result:r,entities:{}};n.request.normalize&&(o=Object(s.b)(r,n.request.normalizeOptions)),e.dispatch({type:a.a.UPDATE,result:o.result,entities:o.entities,request:n.request})})}(t)})}if(v.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:v.invalidationKeys,request:v}),!f)return;let l=o.result;v.normalize&&(l=Object(s.a)(o.result,Object.assign(Object.assign({},h.flightData.entities),o.entities))),f(l)}function T(){m&&m()}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(65),i=n(68),o=n(186);function a(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:i.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:a(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[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}})}}(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:i.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=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(e=>r[e]).reduce((t,n)=>{const r=e.resources[n];return t[n]=Object.assign({},r,{status:i.a.None}),t},{}))}}(e,t);case r.a.UPDATE:return function(e=s,t){const n=t.entities?Object.keys(t.entities):[];return{entities:a(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(143);const i="id";function o(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function a(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}const s={getAll(e,t){const n=a(e);return n&&n.length?n:!n&&t?(t.forEach(t=>s.create(e,t)),a(e)):[]},get(e,t){const n=s.getAll(e);return n.length?n.find(e=>e[i]===t):null},create(e,t){const n=s.getAll(e),r=Object.assign(Object.assign({},t),{[i]:t[i]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()});return n.push(r),o(e,n),r},update(e,t){const n=s.getAll(e);if(!n.length)return t;const r=n.findIndex(e=>e[i]===t[i]);return n[r]=t,o(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[i]===e);n.splice(t,1)}),o(e,n))},assoc(e,t,n,i,a){const c=Array.isArray(a);let l=c?a:[a];"string"==typeof r.a.first(l)&&(l=s.getAll(i).filter(e=>l.includes(e.id)));const u=l.map(e=>e.id?e:s.create(i,e));let p=s.getAll(e);if(!p.length)return;const h=p.find(e=>e.id===t);return h?(u.forEach(e=>{if(h[n])if(Array.isArray(h[n])){if(h[n].find(t=>t.id===e.id))return;h[n].push(e)}else h[n]=e;else h[n]=c?[e]:e}),p=p.map(e=>e.id!==h.id?e:h),o(e,p),c?u:r.a.first(u)):void 0},dissoc(e,t,n,r){let i=s.getAll(e);if(!i.length)return;const a=i.find(e=>e.id===t);if(!a)return;let c=a[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)}),a[n]=c,i=i.map(e=>e.id!==a.id?e:a),o(e,i),i):void 0}}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(220);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,s=t,c=[],l=void 0;i<a&&(l=s.next(e[i]));)s=l,i++;if(i>=a)return[];for(;i<a-1;)l=new o(r),c.push(l),s.on(e[i],l),s=l,i++;return l=new o(n),c.push(l),s.on(e[a-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";n.d(t,"a",(function(){return a}));var r=n(58),i=n(126);const o=i.a.Newest,a={getSortTypeFromName(e){switch(e){case"recently_added":return i.a.RecentlyUpdated;case"atoz":return i.a.AtoZ;case"ztoa":return i.a.ZtoA;case"newest":return i.a.Newest;case"oldest":return i.a.Oldest;default:return i.a.Newest}},getOrSetSortType(e,t){const n=(e=>"playlist:sort:"+e)(e);return!t&&r.a.cacheExists(n)||r.a.cacheSet(n,t||o),t||(t=r.a.cacheGet(n)),t}}},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";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.videoNotFoundError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.videoPrivateError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.playlistNotFoundError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"PlaylistNotFoundError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.playlistPrivateError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"PlaylistPrivateError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(10);function o(e){const t=i.a.getInstance(e);return r.useEffect(()=>()=>i.a.releaseInstance(e)),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(14),i=n(21);class o{constructor(e){this.setData(e)}setData(e){const{collectionPrefix:t,id:n,sort:r,cursor:i}=e;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}toString(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}toParams(){const e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}getSortTypeParam(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}},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){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+' partial-loading-background"></div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(r||(r={}))},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-2"><a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+" - "+c("function"==typeof(o=null!=(o=n.libraryName||(null!=t?t.libraryName:t))?o:s)?o.call(a,{name:"libraryName",hash:{},data:i}):o)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+c("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:s)?o.call(a,{name:"templateText",hash:{},data:i}):o)+'</span>\r\n <span class="query-text">'+c("function"==typeof(o=null!=(o=n.query||(null!=t?t.query:t))?o:s)?o.call(a,{name:"query",hash:{},data:i}):o)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(o=null!=(o=n.dataset||(null!=t?t.dataset:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,u=i.ENTITY_NODE=6,p=i.PROCESSING_INSTRUCTION_NODE=7,h=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,f=i.DOCUMENT_TYPE_NODE=10,g=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,y={},v={},b=(y.INDEX_SIZE_ERR=(v[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),y.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),_=(y.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(v[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),y.NOT_FOUND_ERR=(v[8]="Not found",8)),C=(y.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),y.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));y.INVALID_STATE_ERR=(v[11]="Invalid state",11),y.SYNTAX_ERR=(v[12]="Syntax error",12),y.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),y.NAMESPACE_ERR=(v[14]="Invalid namespace",14),y.INVALID_ACCESS_ERR=(v[15]="Invalid access",15);function T(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,T);return n.code=e,t&&(this.message=this.message+": "+t),n}function S(){}function w(e,t){this._node=e,this._refresh=t,E(this)}function E(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function k(){}function A(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function x(e,t,n,r){if(r?t[A(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&D(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function I(e,t,n){var r=A(t,n);if(!(r>=0))throw T(_,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(D(o,e,n),n.ownerElement=null)}}function O(e){if(this._features={},e)for(var t in e)this._features=e[t]}function L(){}function P(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function N(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(N(e,t))return!0}while(e=e.nextSibling)}function R(){}function D(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function U(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,U(e.ownerDocument,e),t}function V(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===g){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function j(){}function F(){}function H(){}function z(){}function W(){}function q(){}function G(){}function $(){}function K(){}function Y(){}function J(){}function X(){}function Q(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,n,e,t,a),n.join("")}function Z(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);i.length;var u=e.attributes,m=u.length,y=e.firstChild,v=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",v);for(var b=0;b<m;b++){"xmlns"==(_=u.item(b)).prefix?i.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&i.push({prefix:"",namespace:_.value})}for(b=0;b<m;b++){var _;if(Z(_=u.item(b),0,i)){var C=_.prefix||"",T=_.namespaceURI,S=C?" xmlns:"+C:" xmlns";t.push(S,'="',T,'"'),i.push({prefix:C,namespace:T})}ee(_,t,n,r,i)}if(Z(e,0,i)){C=e.prefix||"",T=e.namespaceURI,S=C?" xmlns:"+C:" xmlns";t.push(S,'="',T,'"'),i.push({prefix:C,namespace:T})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),n&&/^script$/i.test(v))for(;y;)y.data?t.push(y.data):ee(y,t,n,r,i),y=y.nextSibling;else for(;y;)ee(y,t,n,r,i),y=y.nextSibling;t.push("</",v,">")}else t.push("/>");return;case d:case g:for(y=e.firstChild;y;)ee(y,t,n,r,i),y=y.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,P),'"');case s:return t.push(e.data.replace(/[<&]/g,P));case c:return t.push("<![CDATA[",e.data,"]]>");case h:return t.push("\x3c!--",e.data,"--\x3e");case f:var w=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),w)t.push(' PUBLIC "',w),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var k=e.internalSubset;k&&t.push(" [",k,"]"),t.push(">")}return;case p:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}T.prototype=Error.prototype,n(y,T),S.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ee(this[r],n,e,t);return n.join("")}},w.prototype.item=function(e){return E(this),this[e]},r(w,S),k.prototype={length:0,item:S.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new T(C);var n=this.getNamedItem(e.nodeName);return x(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new T(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),x(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return I(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return I(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},O.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new R;if(r.implementation=this,r.childNodes=new S,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new q;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},L.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return V(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var s in n){var c=n[s];"object"!=typeof c&&c!=i[s]&&(i[s]=c)}n.childNodes&&(i.childNodes=new S);switch(i.ownerDocument=t,i.nodeType){case o:var l=n.attributes,u=i.attributes=new k,p=l.length;u._ownerElement=i;for(var h=0;h<p;h++)i.setAttributeNode(e(t,l.item(h),!0));break;case a:r=!0}if(r)for(var d=n.firstChild;d;)i.appendChild(e(t,d,r)),d=d.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,L),n(i,L.prototype),R.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),V(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=t;case g:break;case a:r=!0}i||(i=n.cloneNode(!1));if(i.ownerDocument=t,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(e(t,s,r)),s=s.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return N(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new M;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new S,(t.attributes=new k)._ownerElement=t,t},createDocumentFragment:function(){var e=new Y;return e.ownerDocument=this,e.childNodes=new S,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new J;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new j;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new k;return n.childNodes=new S,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new j,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(R,L),M.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new w(this,(function(t){var n=[];return N(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new w(this,(function(n){var r=[];return N(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},R.prototype.getElementsByTagName=M.prototype.getElementsByTagName,R.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,L),j.prototype.nodeType=a,r(j,L),F.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(F,L),H.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,F),z.prototype={nodeName:"#comment",nodeType:h},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),q.prototype.nodeType=f,r(q,L),G.prototype.nodeType=m,r(G,L),$.prototype.nodeType=u,r($,L),K.prototype.nodeType=l,r(K,L),Y.prototype.nodeName="#document-fragment",Y.prototype.nodeType=g,r(Y,L),J.prototype.nodeType=p,r(J,L),X.prototype.serializeToString=function(e,t,n){return Q.call(e,t,n)},L.prototype.toString=Q;try{if(Object.defineProperty){Object.defineProperty(w.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(L.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case g:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case o:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=O,t.XMLSerializer=X},function(e,t,n){"use strict";e.exports={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[(i=3*n)+2],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},discardEmulationPreventionBytes:function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},USER_DATA_REGISTERED_ITU_T_T35:4}},function(e,t,n){"use strict";var r=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};r.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},r.prototype.push=function(e){this.trigger("data",e)},r.prototype.flush=function(e){this.trigger("done",e)},r.prototype.partialFlush=function(e){this.trigger("partialdone",e)},r.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},r.prototype.reset=function(e){this.trigger("reset",e)},e.exports=r},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();var a,s=Array.prototype,c=Function.prototype,l=Object.prototype,u=o["__core-js_shared__"],p=(a=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",h=c.toString,d=l.hasOwnProperty,f=l.toString,g=RegExp("^"+h.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,y=E(o,"Map"),v=E(Object,"create");function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function S(e){return!(!A(e)||(t=e,p&&p in t))&&(function(e){var t=A(e)?f.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:n).test(function(e){if(null!=e){try{return h.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function w(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function k(e,t){if("function"!=typeof e||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),a};return n.cache=new(k.Cache||C),n}function A(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=v?v(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(v){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return d.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return v?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=v&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=T(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=T(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return T(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=T(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new b,map:new(y||_),string:new b}},C.prototype.delete=function(e){return w(this,e).delete(e)},C.prototype.get=function(e){return w(this,e).get(e)},C.prototype.has=function(e){return w(this,e).has(e)},C.prototype.set=function(e,t){return w(this,e).set(e,t),this},k.Cache=C,e.exports=k}).call(this,n(95))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function s(){o(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=y(0,0,0,0);function h(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var l=Math.round(s+o)-t,f=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(f)&&(c-=f)}return y(i.left,i.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):f(e):p}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,i,o,a,s,c,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),l(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);l(this,{target:e,contentRect:u})},_=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new n,T=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new _(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:T;t.a=S}).call(this,n(95))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(103),a=n(46),s=n(9),c=n(320),l=n(316);const u={render:(e,t={})=>{const n=document.getElementById("dialog-region");function r(){a.a.isFunction(t.cancel)&&t.cancel(),Object(o.unmountComponentAtNode)(n)}const s=(t.buttons||[u.getConfirmDefault(),u.getCancelDefault()]).map(e=>{const i=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){i&&(a.a.isFunction(t.success)&&t.success(),Object(o.unmountComponentAtNode)(n)),r(),a.a.isFunction(e.onClick)&&e.onClick()}})});Object(o.render)(i.a.createElement(l.a,{title:t.title,closePopup:r,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName},e,!t.hideButtons&&i.a.createElement(c.a,{buttons:s})),n)},getCancelDefault:()=>({variant:"light",buttonText:s.a.getPhrase("shared.shared-utils","cancel")}),getConfirmDefault:()=>({variant:"dark",success:!0,buttonText:s.a.getPhrase("shared.shared-utils","confirm")})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(40);function o(){return r.createElement("div",{className:"text-center p-5"},r.createElement(i.Spinner,{as:"div",animation:"border",role:"status"}))}},function(e,t,n){"use strict";var r=n(500);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(502);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(503);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(504);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(505);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(506);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(231);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var u=n(507);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var p=n(508);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var h=n(509);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return h.ClassroomGroupColour})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var d=n(510);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var f=n(511);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var g=n(512);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return g.ClassroomGroupColour})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType})),n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var m=n(513);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return m.ClassroomGroupColour})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var y=n(514);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return y.ClassroomGroupColour})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var v=n(515);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return v.ClassroomGroupColour})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var b=n(516);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return b.ClassroomGroupColour})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var _=n(517);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return _.ClassroomGroupColour})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var C=n(518);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return C.ClassroomGroupColour})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(519);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return T.ClassroomGroupColour})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var S=n(520);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return S.ClassroomGroupColour})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var w=n(521);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return w.ClassroomGroupColour})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var E=n(522);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return E.ClassroomGroupColour})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(523);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return k.ClassroomGroupColour})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var A=n(524);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return A.ClassroomGroupColour})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}))},function(e,t,n){"use strict";var r=n(501);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},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){},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";var r=n(526);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(529);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(536);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(537);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(538);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(539);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(540);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var u=n(541);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var p=n(542);n.d(t,"ClassroomGroupColour",(function(){return p.a}));var h=n(543);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var d=n(544);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var f=n(545);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var g=n(232);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var m=n(546);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var y=n(547);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var v=n(548);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var b=n(549);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var _=n(550);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var C=n(551);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(233);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var S=n(552);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType})),n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var w=n(553);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var E=n(554);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(555);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var A=n(556);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var x=n(557);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables})),n.o(x,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return x.InteractionTypeId})),n.o(x,"WidgetType")&&n.d(t,"WidgetType",(function(){return x.WidgetType}));var I=n(234);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var O=n(558);n.d(t,"WidgetType",(function(){return O.a}));var L=n(559);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId}));var P=n(560);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId}));var N=n(561);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables})),n.o(N,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return N.InteractionTypeId}));var R=n(562);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables})),n.o(R,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId}));var D=n(563);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables})),n.o(D,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return D.InteractionTypeId}));var U=n(564);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables})),n.o(U,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return U.InteractionTypeId}));var B=n(565);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables})),n.o(B,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return B.InteractionTypeId}));var V=n(566);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables})),n.o(V,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return V.InteractionTypeId}));var M=n(567);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables})),n.o(M,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return M.InteractionTypeId}));var j=n(568);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables})),n.o(j,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return j.InteractionTypeId}));var F=n(569);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables})),n.o(F,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return F.InteractionTypeId}));var H=n(570);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables})),n.o(H,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return H.InteractionTypeId}));var z=n(571);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables})),n.o(z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return z.InteractionTypeId}));var W=n(572);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(W,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(573);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables})),n.o(q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(574);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables})),n.o(G,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return G.InteractionTypeId}));var $=n(575);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o($,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return $.InteractionTypeId})),n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId}));var K=n(576);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(K,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Y=n(577);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables})),n.o(Y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Y.InteractionTypeId}));var J=n(578);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables})),n.o(J,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return J.InteractionTypeId}));var X=n(579);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables})),n.o(X,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return X.InteractionTypeId})),n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId}));var Q=n(580);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables})),n.o(Q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var Z=n(581);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables})),n.o(Z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Z.InteractionTypeId}));var ee=n(582);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables})),n.o(ee,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ee.InteractionTypeId}));var te=n(583);n.o(te,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return te.BaseNotificationsAppVariables})),n.o(te,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return te.BaseSearchAppVariables})),n.o(te,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return te.InteractionTypeId}));var ne=n(584);n.o(ne,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ne.BaseNotificationsAppVariables})),n.o(ne,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ne.BaseSearchAppVariables})),n.o(ne,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ne.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(527);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(528);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(530);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(531);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(532);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(533);n.d(t,"InteractionTypeId",(function(){return a.a}));var s=n(534);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(535);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(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,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Pizazz="colour:1",e.Emerald="colour:2",e.PictonBlue="colour:3",e.EastSide="colour:4",e.Portage="colour:5"}(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){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(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){},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";var r=n(586);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t,n){"use strict";var r=n(588);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(589);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(590);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(591);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(592);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(593);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(594);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}))},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";var r=n(596);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(597);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(598);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(599);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(600);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(601);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(602);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}))},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";var r=n(1),i=n(11),o=n(3),a=n(48),s=n(187),c=n(2),l=n(58),u=n(9),p=n(10),h=n(44),d=n(30),f=n(39),g=n(20),m=n(254),y=n(247),v=n(17);const b={showMask(e={}){const{targetSelector:t,additionalClasses:n,fade:r=!0}=e;if($(".mask").length)return;const i=$("<div>",{class:"mask "+(n||"")});return r&&i.addClass("fade show"),$(i).appendTo(b.getTarget(t)),$(b.getTarget(t)).addClass("mask-lock"),i},hideMask(e){const t=e||$(".mask");if(!t.length)return;$(".mask-lock").removeClass("mask-lock"),t.remove()},getTarget(e){const t=$(e||"#app");if(t.length)return t}},_={libraries:{dataServiceName:g.a.Library,eventName:"libraries:sync",getData:e=>e.getLibraries(),getInstance:e=>p.a.getInstance(g.a.Library,e),beforeOnBeforeRender:!0}};var C,T,S;!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(C||(C={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(T||(T={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Subjects="subjects"}(S||(S={}));const w={getContextualSearchQueryParams(e){if(!e||!e.get("filterParam"))return{};return{[e.get("filterParam")]:e.get("filterValue")}}};var E=n(481);const k={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}},A=k.SuggestionLimit,x={prepareQuery:(e,t,n={})=>{const{model:r,libraryIds:i,presentationId:o}=n;r&&r.get("filterValue")&&(e+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`);let a=`${t.url}?q=${e}`;return i&&(a+="&ids="+i),o&&(a+="&presentationId="+o),a},bloodhoundConfig:(e,t)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:r.partial(x.prepareQuery,r,r,t),transform:r.partial(x.handleResult,r,e)}}),handleResult:(e={},t,n={})=>t===S.Subjects?x.processSubjectResult(e[t]):t===S.Video?x.processVideoResult(e[t]):n.showFolder&&t===S.Folder?x.processFolderResult(e[t]):t===S.Series?x.processSeriesResult(e[t]):t===S.Tags?x.processTagsResult(e[t]):[],processSubjectResult:e=>e?(e=x.processCollection(e),r.map(e,e=>(e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e))):[],processVideoResult:e=>e?(e=x.processCollection(e),r.map(e,e=>(e.cached||(e.topics=r.map(e.topics,e=>({name:e})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e))):[],processTagsResult(e){if(!e)return[];const t=p.a.getInstance(f.a.SEARCH,this);return e=x.processCollection(e),r.map(e,e=>(e.cached||(e.url=c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},t.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e))},processSeriesResult:e=>e?(e=x.processCollection(e),r.map(e,e=>{let t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=r.first(e.folder)),r.extend({},e,{collectionType:void 0,collection:t})})):[],processFolderResult:e=>e?(e=x.processCollection(e,{limit:A.Folder}),r.map(e,e=>{const{library:t={}}=e;return t.type===E.a.Exchange&&(t.name="Exchange"),r.extend({},e,{libraryId:t.id,libraryName:t.name,libraryType:t.type})})):[],processCollection(e,t={}){const{limit:n=A.Default}=t;return e.slice(0,n)}},I={getRecentSearches(e,t){let n=t.cacheGet(e);return r.isArray(n)||(n=[]),n},setRecentSearches(e,t,n){r.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches(e,t,n){const{add:i,remove:o,query:a,limit:s=5}=n;let c=I.getRecentSearches(e,t);const l=r.indexOf(c,a);return i&&-1===l&&c.unshift(a),o&&l>-1&&c.splice(l,1),c.length>s&&(c=c.slice(0,s)),I.setRecentSearches(e,c,t),c}};var O=n(306),L=n(649),P=n.n(L),N=n(263),R=n.n(N);class D extends c.a.Component{constructor(e){super(e)}get name(){return"ConfirmSelectionComponent"}get template(){return P.a}get className(){return`suggestion-footer empty-suggestion px-2 ${R.a.selectionContainer} clearfix`}viewOptions(){return{styles:R.a,confirmSelectionText:u.a.getPhrase("shared.utils","confirmSelection",{svg:`<kbd><span class="${R.a.svgContainer}">${v.a.getSvg(v.b.Enter)}</span></kbd>`})}}}const U={handleQuery:(e,t)=>(n,r,i)=>{if(t||(t={}),n&&t.ignoreOnQuery)return r([]);const o=n&&n.length>=k.ActivationLength;return t.fetchType!==T.Local||o?o?e instanceof O?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())},getTemplate(e,t={}){const{fallbackTemplate:n,templateText:i}=t;return t=>{const{query:o}=t;if(!o)return n(...arguments);if(o.length&&o.length<k.ActivationLength)return n(...arguments);const a=r.extend(t,{templateText:i});return e(a)}},getSearchSources:e=>r.map(e,(e,t)=>{const{typeaheadConfig:n,bloodhoundConfig:r,name:i,options:o}=e;let a;return r&&(a=U.buildBloodhound(r(i,o))),n({bloodhound:a,name:i},t,o)}),buildBloodhound:e=>new O(e),selectFirstResult(e,t,n){if(!n)return;if(this.$el.find(".tt-cursor").length)return;const i=r.first(t);if(!i||r.isEmpty(i))return void this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion");const o=this.$el.find(".add-new");!o||i.id?(o&&o.hasClass("tt-cursor")&&o.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):o.addClass("tt-cursor")},emitEventOnInput(e,t,n,o){if(e)return(a,s)=>{i.Radio.channel(e).trigger(t,a,n,r.extend({},o,s))}},resetAssociationOnBlur:e=>function(t,n){const o=this.model.get(n),a=r.isNumber(this.model.id);return e[n]||a?"string"==typeof o&&o.length?a?void(e.id===this.model.id&&(this.model.set(e),i.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(i.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void i.Radio.channel(t).trigger("typeahead:clear:input"))},getConfirmSelectionTemplate:(e={})=>()=>new D(e).render().el,clearInputOnBlur(e){i.Radio.channel(e).trigger("typeahead:clear:input")}};var B;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(B||(B={}));class V extends c.a.Behavior{get defaults(){return{title:"",placement:B.bottom,size:"popover-md"}}set defaults(e){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}events(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}bindListeners(){this.options.toggleEventName&&this.listenTo(this.view.channelName,""+this.options.toggleEventName,this.toggle)}bindBodyClickListener(){$("body").one("click.popover"+this.view.cid,this.onClickOutside.bind(this))}bindDropdownListener(){$("body").one("show.bs.dropdown.popover"+this.view.cid,this.onClickOutside.bind(this))}onPopoverInserted(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}onPopoverHidden(){$("body").off("click.popover"+this.view.cid),$("body").off("show.bs.dropdown.popover"+this.view.cid)}toggle(){this.view.$el.popover("toggle")}hide(){this.view.$el.popover("hide")}onClickPopover(e){e.stopPropagation()}onClickOutside(){this.hide()}getTrigger(){return this.options.toggleEventName?"manual":"click"}onAttach(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}}var M=n(650),j=n.n(M),F=n(651),H=n.n(F),z=n(264),W=n.n(z);class q extends c.a.Component{get name(){return"SearchTipComponentItem"}get template(){return H.a}get className(){return"py-2 "+W.a.tip}viewOptions(){return{styles:W.a}}}class G extends c.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return q}}class K extends c.a.Component{initialize(){this.collection=new c.a.Collection([{term:[""+u.a.getPhrase(this.lang,"firstTerm")],description:""+u.a.getPhrase(this.lang,"firstDescription")},{term:[""+u.a.getPhrase(this.lang,"secondTerm")],description:""+u.a.getPhrase(this.lang,"secondDescription")},{term:[""+u.a.getPhrase(this.lang,"thirdTerm")],description:""+u.a.getPhrase(this.lang,"thirdDescription")},{term:[""+u.a.getPhrase(this.lang,"fourthTerm1"),""+u.a.getPhrase(this.lang,"fourthTerm2")],description:""+u.a.getPhrase(this.lang,"fourthDescription")},{term:[""+u.a.getPhrase(this.lang,"fifthTerm")],description:""+u.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return j.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:V,containerSelector:".popover-container",title:u.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:e=>this.renderTips(e)}]}renderTips(e){this.showChildView(e,new G({collection:this.collection}))}viewOptions(){return{styles:W.a,searchInfoSvg:v.a.getSvg(v.b.Info)}}}class Y extends c.a.Behavior{get defaults(){return{placement:"top"}}set defaults(e){}get ui(){return this.options.selector?{tooltip:this.options.selector}:{}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}getElement(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}getOptions(){const e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}onRender(){const e=this.getElement();e.length&&e.tooltip(this.getOptions())}onBeforeDetach(){const e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}}var J=n(652),X=n.n(J),Q=n(161),Z=n.n(Q);class ee extends c.a.Component{initialize(){this.listenTo(d.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return X.a}get tagName(){return"span"}get className(){return Z.a.searchContextContainer}get behaviors(){return[{behaviorClass:Y,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+Z.a.searchContextTag,clearSvg:"."+Z.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}onMouseEnter(){this.model.set("preventTypeaheadClose",!0)}onMouseLeave(){this.model.set("preventTypeaheadClose",!1)}toggleFocus(e){const t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Z.a.tagFocus):t.removeClass(Z.a.tagFocus))}viewOptions(){return{styles:Z.a,closeSvg:v.a.getSvg(v.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var te=n(653),ne=n.n(te),re=n(654),ie=n.n(re);class oe extends c.a.Component{constructor(e){super(e)}get name(){return"RecentSearchResultComponent"}get template(){return ne.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:ie.a,closeSvg:v.a.getSvg(v.b.Close)}}onClick(e){return e.stopPropagation(),setTimeout(()=>{i.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var ae=n(655),se=n.n(ae);class ce extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"SeriesSearchResultComponent"}get template(){return se.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(h.a.slugify(this.model.get("name"))),c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}viewOptions(){return{url:this.getUrl(),name:this.model.get("name")}}}var le=n(656),ue=n.n(le);class pe extends c.a.Component{get name(){return"TagSearchResultComponent"}get template(){return ue.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}const he="lazy:load:behavior";var de=n(214),fe=n(329),ge=n(657),me=n.n(ge),ye=n(209),ve=n.n(ye);class be extends c.a.Component{constructor(e){super(e)}initialize(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}get name(){return"ThumbnailComponent"}get template(){return me.a}get tagName(){return"a"}get className(){if(this.options.classNameOverride)return this.options.classNameOverride;let e=ve.a.thumbnailContainer+" responsive-img";return this.options.onClickHandler&&(e+=" cursor-pointer"),e}get elements(){return{["."+ve.a.playSvgContainer]:"showPlayIcon",img:"img"}}events(){return{click:"onClick"}}get appLinks(){return this.options.appLink?{"[this]":this.options.appLink}:{}}get attributes(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}showPlayIcon(){this.$el.find("."+ve.a.playSvgContainer).show()}onClick(...e){if(!this.options.appLink&&r.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,...e)}onImageLoad(){this.options.channelName&&i.Radio.channel(this.options.channelName).trigger("thumbnail:load")}viewOptions(){const e=this.model.get("duration");return{styles:ve.a,url:de.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&fe.a.ToDisplayDuration(e),playSvg:v.a.getSvg(v.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}onRender(){if(i.Radio.channel(he).trigger("update:loader"),this.options.lazyload&&this.options.channelName){const e=this.getUI("img");e.length&&(e[0].onload=r.bind(this.onImageLoad,this))}}}var _e=n(658),Ce=n.n(_e);class Te extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return Ce.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getCollection(){const{categories:e,series:t}=this.model;if(e&&e.length){return{name:e.first().get("name"),type:"Folder"}}if(t&&t.get("name"))return{name:t.get("name"),type:"Series"}}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(h.a.slugify(this.model.get("name"))),c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}renderThumbnail(){const e=new be({model:this.model});this.showChildView("thumbnail",e)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var Se=n(307),we=n(659),Ee=n.n(we);class ke extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"ClassificationSearchResultComponent"}get template(){return Ee.a}get className(){return"p-2 container-fluid"}regions(){return{cover:{replaceElement:!0,el:".cover-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){return c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),h.a.slugify(this.model.get("name"))]}))}renderThumbnail(){const e=new be({model:this.model,classNameOverride:Se.coverImage+" responsive-img"});this.showChildView("cover",e)}viewOptions(){return{url:this.getUrl(),styles:Se}}onRender(){this.renderThumbnail()}}var Ae=n(482),xe=n.n(Ae),Ie=n(483),Oe=n.n(Ie),Le=n(484),Pe=n.n(Le),Ne=n(485),Re=n.n(Ne),De=n(486),Ue=n.n(De),Be=n(487),Ve=n.n(Be),Me=n(488),je=n.n(Me),Fe=n(489),He=n.n(Fe),ze=n(660),We=n.n(ze),qe=n(308),Ge=n.n(qe),$e=n(661),Ke=n.n($e),Ye=n(662),Je=n.n(Ye),Xe=n(46);n.d(t,"a",(function(){return Ze}));const{SuggestionLimit:Qe}=k;class Ze extends c.a.View{constructor(e){super(e),this.viewCache={}}initialize(){this.contextualSearchService=p.a.getInstance(g.b.ContextualSearch,this),this.appVariables=p.a.getInstance(f.a.SEARCH,this),this.storageHelper=l.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return We.a}get lang(){return"search.searchBar"}get channelName(){return"searchbar:"+this.cid}get className(){return"search-query-container position-relative m-0 w-100 form-control p-0 "+Ge.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}get bindings(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}regions(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:y.a.Component,options:{template:Je.a,className:"w-100",viewOptions:{styles:Ke.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}get recentSearchKey(){return"recent:search:"+this.currentUser.id}bindListeners(){this.listenTo(d.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(d.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(e,t){const{ctor:n,viewOptions:r}=t;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}clearViewCache(){r.each(this.viewCache,e=>e.destroy()),this.viewCache={}}getDynamicTemplate(e){return e===C.Recent?e=>this.getOrCacheView("recent:"+e,{ctor:oe,viewOptions:{model:new c.a.Model({name:e}),channelName:this.channelName}}).render().el:e===S.Subjects?e=>this.getOrCacheView(e.id,{ctor:ke,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Video?e=>this.getOrCacheView(e.id,{ctor:Te,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Folder?xe.a:e===S.Series?e=>this.getOrCacheView(e.id,{ctor:ce,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Tags?e=>this.getOrCacheView(e.id,{ctor:pe,viewOptions:{model:new c.a.Model(e)}}).render().el:void 0}getLimits(e){return S.Folder,Qe.Folder}updateSearchHistory(e){const{add:t,remove:n}=e;let{query:r}=e;r=r.trim();const i=I.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Qe.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(i),i}handleRecentSearch(){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(I.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(e,t){if(t===S.Series){const t=[e.id];return this.appVariables.addSlugs&&t.push(h.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:t})}if(t===S.Video){const t=[e.id];return this.appVariables.addSlugs&&t.push(h.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t})}return t===S.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===S.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id,h.a.slugify(e.name)]}):void 0}onTypeaheadSelect(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?S.Subjects:n,"object"==typeof t&&t.id){const e=this.getInstantSearchAppLink(t,n);if(!e)return!1;const{data:r,action:l}=a.a.buildInstantSearchEvent(this.model.get("query"),t,n);return s.a.log(o.UserAction.InstantSearch,r,l),this.model.clear(),this.getUI("input").typeahead("close"),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(e),!1}const r="string"==typeof t?t:t.query;this.model.set({query:r});const l=n===C.Recent?o.DirectSearchDescriptor.Recent:o.DirectSearchDescriptor.ShowAll;return this.submitQuery(l),!1}onClickSearch(e){return e.stopPropagation(),this.submitQuery(o.DirectSearchDescriptor.SearchIcon),!1}onClickClose(){Xe.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}onSubmit(e){return e.preventDefault(),this.submitQuery(o.DirectSearchDescriptor.Submit),!1}submitQuery(e){this.updateInitialQuery();const t=this.model.get("query");if(!t)return;this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=w.getContextualSearchQueryParams(this.searchContext);i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(e,t){const{data:n,action:r}=a.a.buildSearchEvent(e,t);s.a.log(o.UserAction.Search,n,r)}onTypeaheadOpen(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const e=this.model.get("query");e&&e.length>=k.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}onBeforeTypeaheadClose(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),b.showMask())}hideMask(){this.options.disableMask||b.hideMask()}alignTypeahead(){const e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}onTypeaheadRender(e,t,n,r){r===C.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:select",r.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",r.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",r.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",r.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",r.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:open",r.bind(this.showMask,this)),e.on("typeahead:close",r.bind(this.hideMask,this)),e.on("typeahead:select",r.bind(()=>{c.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(e){8!==e.keyCode||this.model.get("query")||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const e=I.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}getDynamicBloodhoundConfig(){return x.bloodhoundConfig}getDynamicTypeaheadConfig(){const e=U.getTemplate(Ve.a,{fallbackTemplate:Re.a}),t=U.getTemplate(Pe.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:this.getConfigName(n.name),source:U.handleQuery(n.bloodhound,{fetchType:T.Remote}),limit:this.getLimits(n.name),display:e=>e.name,async:!0,templates:{header:e,pending:0===r?t:Re.a,notFound:Re.a,suggestion:this.getDynamicTemplate(n.name),footer:Ue.a}})}getConfigName(e){switch(e){case S.Subjects:return u.a.getPhrase(this.lang,"classifications");case S.Video:return u.a.getPhrase(this.lang,"videos");case S.Tags:return u.a.getPhrase(this.lang,"tags");case S.Series:return u.a.getPhrase(this.lang,"series")}return e}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:C.Recent,source:U.handleQuery(this.recentSearchEngine,{fetchType:T.Local,ignoreOnQuery:!0}),limit:Qe.Default,templates:{header:()=>je.a({templateText:u.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(C.Recent)}}]}getDirectSearchSources(){return[{name:C.Direct,source:U.handleQuery(),display:e=>e.query,templates:{suggestion:U.getTemplate(Oe.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"allResults")}),footer:Ue.a}}]}getDynamicSearchSources(){const e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return U.getSearchSources([{name:S.Subjects,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}getSources(){const e=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&e.push(...this.getRecentSearchSources()),e}getNoLibrariesSource(){return[{name:"NoLibrary",source:U.handleQuery(),display:e=>e.query,templates:{suggestion:U.getTemplate(He.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(e=>e.id)}viewOptions(){return{styles:Ge.a,svg:v.a.getSvg(v.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:v.a.getSvg(v.b.Close),libraryText:this.appVariables.searchBarPlaceholder||u.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:m.b.currentUser,libraryCollection:_.libraries}}renderSearchTips(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new K)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),i.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new ee({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),i.Validation.unbind(this)}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(340),a=n(6);n(914);const s=a.a.getComponent("Button");class c extends s{constructor(e){super(e)}buildCSSClass(){return"vjs-example-button "+super.buildCSSClass()}}c.prototype.controlText_="Example Button",a.a.registerComponent("ExampleButton",c);var l=n(249);function u(){return i.a.createElement("button",{style:{height:"100%",cursor:"pointer"},onClick:()=>console.log("Clicked React Button")},"React Button")}a.a.registerComponent("ExampleReactButton",Object(l.a)(()=>i.a.createElement(u,null)));const p=a.a.getPlugin("plugin");a.a.registerPlugin("examplePlugin",class extends p{constructor(e,t){super(e,t),e.ready(()=>this.onReady())}onReady(){this.player.controlBar.getChild("collapserator").addChild("exampleReactButton")}});const h=a.a.getPlugin("plugin"),d="play",f="playing",g="pause",m="seeking",y="seekstart",v="seekend",b="ended",_="pausedseek",C="timeupdate";a.a.registerPlugin("progressReporterPlugin",class extends h{constructor(e,t){super(e,t),this.eventBuffer=[],this.latestTime=0,this.lastPlayingTime=0,this.isPlaying=!1,this.isSeeking=!1,this.hasEnded=!1,this.shouldLogPlayOnTimeUpdate=!1,this.options=t,this.initialize()}initialize(){this.validateOptions(),this.bindListeners(),this.startInterval()}validateOptions(){if("function"!=typeof this.options.onFlush)throw new Error("Please provide the onFlush option")}bindListeners(){const e={[d]:()=>this.onPlay(),[g]:()=>this.onPause(),[C]:()=>this.onTimeUpdate(),[m]:()=>this.onSeeking(),[b]:()=>this.onEnded()};for(const t in e)e.hasOwnProperty(t)&&this.player.on(t,e[t])}startInterval(){const e=this.options.interval||5e3;setInterval(()=>this.flushBuffer(),e)}onPlay(){return this.isPlaying=!0,this.isSeeking?(this.logEvent(v),void(this.isSeeking=!1)):this.hasEnded?(this.shouldLogPlayOnTimeUpdate=!0,void(this.hasEnded=!1)):void this.logEvent(d)}onPause(){this.isSeeking||(this.pauseTimeout=window.setTimeout(()=>{this.isPlaying=!1,this.logEvent(g),delete this.pauseTimeout},50))}onTimeUpdate(){this.shouldLogPlayOnTimeUpdate&&(this.shouldLogPlayOnTimeUpdate=!1,this.logEvent(d)),this.isPlaying&&!this.isSeeking&&this.logEvent(f)}onSeeking(){this.pauseTimeout&&(this.latestTime=this.previousLatestTime,window.clearTimeout(this.pauseTimeout),delete this.pauseTimeout),this.isPlaying||this.logEvent(_),!this.isSeeking&&this.isPlaying&&(this.isSeeking=!0,this.logEvent(y))}onEnded(){this.hasEnded=!0,this.logEvent(b)}logEvent(e){let t=this.player.currentTime();e===y&&(t=this.latestTime),this.previousLatestTime=this.latestTime,this.latestTime=this.player.currentTime(),this.eventBuffer.push({time:t,type:e})}shouldUseCarriedOverTime(e){return this.lastPlayingTime&&(e===f||e===d)}shouldClearCarriedOverTime(e){return e===b||e===_}flushBuffer(){const e=[];let t={};for(;this.eventBuffer.length;){const n=this.eventBuffer.shift();this.shouldClearCarriedOverTime(n.type)?delete this.lastPlayingTime:t.start?n.type===f&&this.eventBuffer.length>0||(this.shouldUseCarriedOverTime(n.type)&&(this.lastPlayingTime=n.time),t.end=n,e.push(t),t={}):(this.shouldUseCarriedOverTime(n.type)&&(n.time=this.lastPlayingTime,delete this.lastPlayingTime),t.start=n)}this.eventBuffer=[],e.length&&this.options.onFlush(e)}});const T=a.a.getPlugin("plugin"),S="cv-persisttest";a.a.registerPlugin("persistVolumePlugin",class extends T{constructor(e){super(e),this.initialize()}initialize(){if(!this.hasLocalStorage())return;this.player.on("volumechange",()=>{this.store("cv-volume",this.player.volume().toString()),this.store("cv-mute",this.player.muted().toString())});const e=this.get("cv-volume"),t=this.get("cv-mute");e&&this.player.volume(+e),t&&this.player.muted("true"===t)}store(e,t){window.localStorage.setItem(e,t)}get(e){return window.localStorage.getItem(e)}hasLocalStorage(){try{return window.localStorage.setItem(S,"persistVolume"),window.localStorage.removeItem(S),!0}catch(e){return!1}}});const w=a.a.getPlugin("plugin");a.a.registerPlugin("fullscreenOnRotatePlugin",class extends w{constructor(e){super(e),this.hasScreenOrientation()&&this.player.supportsFullScreen()&&(this.onRotate=this.onRotate.bind(this),this.onFullscreenChange=this.onFullscreenChange.bind(this),this.initialize())}initialize(){window.addEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.on("fullscreenchange",this.onFullscreenChange),this.player.one("dispose",()=>{window.removeEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.off("fullscreenchange",this.onFullscreenChange)})}onFullscreenChange(){!this.getAngle()&&this.player.isFullscreen()?window.screen.orientation.lock("portrait-primary"):window.screen.orientation.unlock()}onRotate(){const e=this.getAngle();90===e||-90===e||270===e?this.player.requestFullscreen():this.player.isFullscreen()&&this.player.exitFullscreen()}hasScreenOrientation(){var e,t;return"function"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.lock)}hasScreenLock(){var e,t;return"function"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.lock)}getAngle(){var e,t;return"number"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.angle)?window.screen.orientation.angle:0}});n(915);const E=a.a.getComponent("Button");class k extends E{constructor(e,t){super(e,t),this.update=function(e,t){let n=window.performance.now();return function(...r){const i=window.performance.now();i-n>=t&&(e(...r),n=i)}}(this.update.bind(this),1e3),e.on("timeupdate",this.update),e.on("dispose",()=>{e.off("timeupdate",this.update)})}update(){const e=this.player_.currentTime();this.el_.href=this.options_.getExternalLink({currentTime:Math.round(e)})}buildCSSClass(){return"cv-open-externally-button"}createEl(){const e={innerHTML:"<svg viewBox='0 0 434 71'><g><path fill='#FFFFFF' d='M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z'/><path fill='#F8981D' d='M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z'/></g></svg>",className:this.buildCSSClass()},t={type:"button",href:this.options_.getExternalLink({currentTime:0}),target:"_blank"},n=a.a.dom.createEl("a",e,t);return this.createControlTextEl(n),n}}k.prototype.controlText_="Open in ClickView",a.a.registerComponent("OpenExternallyButton",k);const A=a.a.getPlugin("plugin");a.a.registerPlugin("openExternallyPlugin",class extends A{constructor(e,t){super(e,t),this.options=t,e.ready(()=>this.onReady())}onReady(){const e=this.player.controlBar.getChild("collapserator");e.addChild("OpenExternallyButton",{getExternalLink:this.options.getExternalLink},e.children_.length-2)}});const x=a.a.getPlugin("plugin");a.a.registerPlugin("clipPlugin",class extends x{constructor(e,t){if(super(e),void 0===t.startTime)throw Error("Invalid clip start");if(void 0===t.endTime)throw Error("Invalid clip end");if(t.startTime>t.endTime)throw Error("Clip start cannot be greater than clip end");this._clipStart=t.startTime,this._clipEnd=t.endTime,this.playerEndedFn=this.player.ended.bind(e),this.playerDurationFn=this.player.duration.bind(e),this.playerCurrentTimeFn=this.player.currentTime.bind(e),this.playerbufferedFn=this.player.buffered.bind(e),this.player.ended=this.ended.bind(this),this.player.duration=this.duration.bind(this),this.player.currentTime=this.currentTime.bind(this),this.player.buffered=this.buffered.bind(this),this.initialize(),this.player.ready(()=>{this.player.trigger("durationchange")})}get clipStart(){const e=this.playerDurationFn();return this._clipStart>e?e:this._clipStart}get clipEnd(){const e=this.playerDurationFn();return this._clipEnd>e?e:this._clipEnd}dispose(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange")}initialize(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay),this.player.on("dispose",()=>{this.dispose()})}onPlay(){this._isEnded&&this.player.currentTime(0)}onTimeUpdate(){const e=this.getCurrentTime(!1);e>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,e<this.clipStart&&this.playerCurrentTimeFn(this.clipStart))}ended(){return this.getCurrentTime(!1)>this.clipEnd}duration(e){return void 0!==e&&this.playerDurationFn(e),this.clipEnd-this.clipStart}currentTime(e){if(void 0===e)return this.getCurrentTime(!0);const t=e+this.clipStart;this.playerCurrentTimeFn(t)}getCurrentTime(e){const t=this.playerCurrentTimeFn();let n=0;return t>=this.clipStart&&(n=t-this.clipStart),this.player.getCache().currentTime=n,e?n:t}buffered(){const e=this.playerbufferedFn(),t=[];for(let n=0;n<e.length;n++)t[n]=[Math.max(0,e.start(n)-this.clipStart),Math.min(Math.max(0,e.end(n)-this.clipStart),this.player.duration())];return a.a.createTimeRanges(t)}});n(916);const I=a.a.getComponent("component");a.a.registerComponent("TouchControls",class extends I{constructor(e,t){super(e,t)}buildCSSClass(){return"cv-touch-control-ui "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}setUi(e,t){const n=e>0,r=n?"cv-touch-right":"cv-touch-left";this.el_.className=this.buildCSSClass()+" cv-ui-touch-active",this.el_.innerHTML=`\n <div class='${r}'>\n <div class='cv-touch-text'>\n ${n?"+":""}${10*e}s\n </div>\n </div>\n `,window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.removeText()},t)}removeText(){this.el_.className=this.buildCSSClass(),this.el_.innerHTML=""}});const O=a.a.getPlugin("plugin");a.a.registerPlugin("touchControls",class extends O{constructor(e){super(e),this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0,this.bindFunctions(),this.initialize()}bindFunctions(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.reBindEventListeners=this.reBindEventListeners.bind(this),this.unBindEventListeners=this.unBindEventListeners.bind(this)}initialize(){this.player.addChild("TouchControls"),this.touchControls=this.player.getChild("TouchControls"),this.player.on("ready",this.reBindEventListeners),this.player.on("dispose",this.unBindEventListeners),this.reBindEventListeners()}reBindEventListeners(){this.unBindEventListeners(),this.tech=this.player.tech(!0),this.on(this.tech,"touchstart",this.onTouchStart),this.on(this.tech,"touchend",this.onTouchEnd)}unBindEventListeners(){this.tech&&(this.off(this.tech,"touchstart",this.onTouchStart),this.off(this.tech,"touchend",this.onTouchEnd))}onTouchStart(e){this.touchStartTime=e.timeStamp}onTouchEnd(e){if(e.changedTouches.length){if(e.timeStamp-this.lastTouchTime<300)return this.onDoubleTouch(e),void(this.lastTouchTime=e.timeStamp);this.resetProperties(),this.lastTouchTime=e.timeStamp,e.timeStamp-this.touchStartTime<300&&window.setTimeout(()=>{this.doubleTouchCount||(this.player.paused()?this.player.play():this.player.pause())},300)}}resetProperties(){this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0}onDoubleTouch(e){const t=this.player.el().getBoundingClientRect(),n=t.left+t.width/2;if(0===this.doubleTouchCount&&(this.seekStartTime=this.player.currentTime(),e.changedTouches[0].pageX<n?this.directionModifier=-1:this.directionModifier=1),this.doubleTouchCount++,this.directionModifier<0){if(10*this.doubleTouchCount>this.seekStartTime+10)return;return this.touchControls.setUi(-this.doubleTouchCount,900),void this.player.currentTime(this.player.currentTime()-10)}const r=this.player.duration()-this.seekStartTime;10*this.doubleTouchCount>r+10||(this.touchControls.setUi(this.doubleTouchCount,900),this.player.currentTime(this.player.currentTime()+10))}});var L=n(112);n(917);function P(e){var t;const[n,i]=r.useState(105),o=r.useRef(e.player.duration()-e.player.currentTime()),[a,s]=r.useState(o.current);function c(){const t=e.player.el().querySelector(".vjs-control-bar"),n=null==t?void 0:t.offsetHeight;isNaN(n)||i(n+15)}function l(){const t=e.player.duration()-e.player.currentTime();s(t),t>o.current&&(o.current=t)}if(r.useEffect(()=>(c(),e.player.on("resize",c),e.player.on("fullscreenchange",c),e.player.on("timeupdate",l),()=>{e.player.off("resize",c),e.player.off("fullscreenchange",c),e.player.off("timeupdate",l)}),[]),!e.nextVideo||!e.onPlayNext)return r.createElement(r.Fragment,null);const u=(o.current-a)/o.current*100,p=Math.ceil(a),h=1===p?"second":"seconds";return r.createElement("div",{className:"cv-up-next-container rounded",style:{bottom:n+"px"}},r.createElement("div",{className:"cv-up-next-progress-bar rounded",style:{width:u+"%"}}),r.createElement("div",{className:"row no-gutters"},r.createElement("div",{className:"col-6"},r.createElement("div",{className:"cv-up-next-thumbnail-container",onClick:e.onPlayNext},r.createElement("div",{className:"cv-up-next-thumbnail-mask"},r.createElement("div",{className:"position-relative w-100 h-100"},r.createElement("div",{className:"cv-up-next-play-icon-container"},r.createElement("div",{className:"position-relative w-100 h-100"},r.createElement("span",{className:"cv-up-next-play-icon"}))))),r.createElement("img",{className:"img-fluid",src:null===(t=e.nextVideo)||void 0===t?void 0:t.thumbnailUrl}))),r.createElement("div",{className:"col-5 pl-2 pt-2"},r.createElement("p",null,"Up next in ",p," ",h),r.createElement("p",null,e.nextVideo.name)),r.createElement("div",{className:"col-1 pr-1"},r.createElement("div",{className:"close cv-cancel-up-next cursor-pointer",role:"button",onClick:e.onCancel},"×"))))}a.a.registerComponent("UpNext",Object(l.a)((e,t)=>r.createElement(P,Object.assign({player:e},t))));const N=a.a.getPlugin("plugin");a.a.registerPlugin("nextVideoPlugin",class extends N{constructor(e){super(e),this.setShouldPlayNext=this.setShouldPlayNext.bind(this),this.getShouldPlayNext=this.getShouldPlayNext.bind(this),this.setChapterTrack=this.setChapterTrack.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),e.ready(()=>{this.initialize()})}initialize(){this.hasLocalStorage=this.testHasLocalStorage(),L.a.useTrack(this.player,"chapters",null,this.setChapterTrack),this.bindListeners()}setNextVideo(e,t){var n;this.nextVideo=e,this.callback=t;(null===(n=this.player.controlBar.getChild("collapserator"))||void 0===n?void 0:n.getChild("cogButton")).showPlayNext()}getShouldPlayNext(){if(!this.hasLocalStorage)return void 0===this.shouldPlayNextVideo&&(this.shouldPlayNextVideo=!0),this.shouldPlayNextVideo;const e=window.localStorage.getItem("cv-play-next-video");return null===e||"true"===e}setShouldPlayNext(e){this.hasLocalStorage?window.localStorage.setItem("cv-play-next-video",e.toString()):this.shouldPlayNextVideo=e}setChapterTrack(e){this.chapterTrack=e}bindListeners(){this.player.on("timeupdate",this.onTimeUpdate)}unbindListeners(){this.player.off("timeupdate",this.onTimeUpdate)}onTimeUpdate(){var e,t,n,r;if(!this.getShouldPlayNext())return void this.hideUpNext();if(this.upNextRendered&&this.player.currentTime()>this.upNextTimepoint)return;"credits"===(null===(r=null===(n=(null===(t=null===(e=this.chapterTrack)||void 0===e?void 0:e.activeCues)||void 0===t?void 0:t.length)&&this.chapterTrack.activeCues[0])||void 0===n?void 0:n.text)||void 0===r?void 0:r.toLowerCase())||this.player.currentTime()>=this.player.duration()-5?this.showUpNext():this.hideUpNext()}showUpNext(){this.upNextRendered||(this.upNextRendered=!0,this.upNextTimepoint=this.player.currentTime(),this.player.addChild("UpNext",{nextVideo:this.nextVideo,onPlayNext:this.callback,onCancel:()=>{this.hideUpNext(),this.setShouldPlayNext(!1)}}))}hideUpNext(){if(!this.upNextRendered)return;this.upNextRendered=!1,this.upNextTimepoint=null;const e=this.player.getChild("UpNext");e&&this.player.removeChild(e)}testHasLocalStorage(){try{return window.localStorage.setItem("cv-persisttest","persistVolume"),window.localStorage.removeItem("cv-persisttest"),!0}catch(e){return!1}}});n(918);const R=a.a.getComponent("Button");class D extends R{constructor(){super(...arguments),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildCSSClass(){return"cv-create-clip-button"}getCollabsibleName(){return this.controlText_}getCollabsibleValue(){return""}showInCollabsibleMenu(){return!0}showCollapsibleMenu(){super.handleClick(null)}}D.prototype.controlText_="Create Clip",a.a.registerComponent("CreateClipButton",D);const U=a.a.getPlugin("plugin");a.a.registerPlugin("createClipButtonPlugin",class extends U{constructor(e,t){super(e,t),this.options=t,e.ready(()=>this.onReady())}onReady(){var e;const t=this.player.controlBar.getChild("collapserator"),n=null===(e=null==t?void 0:t.children())||void 0===e?void 0:e.findIndex(e=>"CustomControlSpacer"===e.name());n&&-1!==n&&t.addChild("CreateClipButton",{clickHandler:this.options.onClick},n+1)}});var B=n(259),V=n(3),M=n(185);const j={version:"1.0.0",region:"cv-ap-southeast-1",urls:{collectionApi:{cvApSoutheast1:"https://staging-collection.clickview.com.au/",cvApSoutheast2:"https://staging-collection.clickview.com.au/",cvEuWest1:"https://staging-collection.clickview.co.uk/"}},collectionApiClientId:"cv_webplayer"};const F=class{constructor(){this.initialize()}static get Instance(){return this.instance||(this.instance=new this)}logStream(){this.collectionApiClient.log({type:V.UserAction.Stream,actionContext:this.getActionContext(),data:{},eventVersion:V.EventVersion.V1})}logVideoProgress(e){this.collectionApiClient.log(e.map(e=>({type:V.UserAction.StreamProgress,actionContext:this.getActionContext(),data:{progress:e,video:{}},eventVersion:V.EventVersion.V1})))}initialize(){this.setupCollectionApiClient()}setupCollectionApiClient(){this.collectionApiClient=new B.a({productName:"webplayer.web",productVersion:j.version,regionName:j.region,collectionApiUrls:j.urls.collectionApi,collectionApiClientId:j.collectionApiClientId,getUser:this.getCurrentUser,shouldLog:M.a.shouldLog,formatData:M.a.formatData})}getCurrentUser(){return{}}getActionContext(){return{entity:V.EntityType.Video,location:V.LocationContext.Player,productArea:null,descriptor:null,workflowPhase:null}}}.Instance;var H=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class z extends o.a{constructor(e,t){super(e,t)}configurePlugins(){try{const e=this.player;e.progressReporterPlugin({onFlush:e=>F.logVideoProgress(e)}),e.persistVolumePlugin(),e.fullscreenOnRotatePlugin(),e.touchControls(),this.options.getExternalLink&&e.openExternallyPlugin({getExternalLink:this.options.getExternalLink}),this.options.onClickCreateClip&&e.createClipButtonPlugin({onClick:this.options.onClickCreateClip})}catch(e){console.log("failed to register plugins",e)}}setNextVideo(e,t){this.player.nextVideoPlugin().setNextVideo(e,t)}additionalSetup(e){const t=Object.create(null,{additionalSetup:{get:()=>super.additionalSetup}});return H(this,void 0,void 0,(function*(){if(t.additionalSetup.call(this,e),"MasterClip"===e.mediaType){const t=e.additionalData;if(null===t)throw Error("Invalid clip data");this.player.clipPlugin({startTime:t.startTime,endTime:t.endTime})}}))}}n.d(t,"a",(function(){return q}));var W=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 q(e){const{className:t="",playerApi:n,onReady:r,onDispose:o}=e,a=W(e,["className","playerApi","onReady","onDispose"]),s=i.a.useRef(),c=i.a.useRef();return i.a.useEffect(()=>{var e;if(null===(e=c.current)||void 0===e||e.dispose(),s)return c.current=new z(s.current,Object.assign(Object.assign({},a),{playerApi:n&&new URL(n)})),r&&c.current.ready(()=>{r(c.current)}),o&&c.current.one("dispose",o),()=>{var e;null===(e=c.current)||void 0===e||e.dispose()}},[e.viewKey]),i.a.createElement("div",{ref:s,className:t})}},function(e,t,n){"use strict";var r,i=n(318);!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));class o extends i.BaseCollectionIdentifier{getSortTypeParam(){return r[this.sort]}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(39);class i{get name(){return r.a.SEARCH}}class o{get name(){return r.a.NOTIFICATIONS}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(27);function i(e){const{getResponseHeader:t,responseJSON:n,status:r}=e;return{getResponseHeader:t,responseJSON:n,status:r}}const o=[r.a.POST,r.a.PUT];function a(e){const{resource:t,type:n,headers:r,success:a,error:s,always:c}=e,l={url:t,method:n};o.includes(n)&&e.data&&(l.data=JSON.stringify(e.data)),r&&(l.headers=r),$.ajax(l).done((e,t,n)=>{a&&a(e,i(n))}).fail(e=>{s&&s(i(e))}).always(()=>{c&&c()})}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(80);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 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),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),c=s(r),l=e.apply(void 0,[function(){return o++,a.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=a,u.dependencies=c,u.recomputations=function(){return o},u.resetRecomputations=function(){return o=0},u}}var l=c(a);var u=n(204),p=n(72),h=n(65),d=n(125),f=n(68),g=n(0);n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"e",(function(){return T})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return w})),n.d(t,"f",(function(){return E}));class m{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===f.a.None||this.isExpired}get isExpired(){return u.a.isExpired(this.requestTime,this.cacheDuration)}get isFetching(){return this.status===f.a.Fetching}get hasError(){return this.status===f.a.Error}get isComplete(){return this.status===f.a.Success||this.status===f.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 m({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function v(){return new m({status:f.a.None})}function b(e,t){return y(t,e.flightData.resources[t],e.flightData.entities)}function _(e,t){return()=>{C(e,t)}}function C(e,t){e({type:h.a.API_REQUEST,request:t})}function T(e,t,n){var r,i,o,a;const s=b(t,null==n?void 0:n.key);n&&s.shouldFetch?C(e,n):s.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,s.data),null===(a=n.always)||void 0===a||a.call(n))}function S(e){const t=Object(r.useDispatch)();if(e)return _(t,e)}function w(e,t){const n=Object(g.useMemo)(()=>(null==t?void 0:t.optimize)?function(e){return c(a,(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 E(e,t){const n=Object(r.useDispatch)(),i=w(e&&e.key,t),o=_(n,e);return e&&i.shouldFetch&&o(),i}},function(e,t,n){"use strict";var r=n(0),i=n(106),o=n(633),a=n(76);function s(e){var t="".concat(e.webPlayerHost,"home/ev?vid=").concat(e.id);return e.startTime&&(t+="&t=".concat(e.startTime)),r.createElement("div",{className:"embed-responsive ".concat(e.className?e.className:"")},r.createElement("iframe",{src:t,className:"embed-responsive-item",allowFullScreen:!0,allow:"autoplay; fullscreen"}))}var c=n(312);function l(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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 u(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){var t=l(Object(i.a)(a.a.WEB_PLAYER_DATA),2)[1],n=l(r.useState(!1),2),u=n[0],p=n[1],h=r.useRef();return r.useEffect((function(){p(!1),t("allowFloatingPlayer",!0)}),[e.viewKey]),r.useEffect((function(){h.current&&h.current.currentTime(e.startTime)}),[e.startTime]),r.createElement("div",{ref:e.innerRef},u?r.createElement(s,{webPlayerHost:e.webPlayerUrl,id:e.videoId,className:e.embed?c.embeddedPlayer:"embed-responsive-16by9"}):r.createElement(o.a,{viewKey:e.viewKey,startTime:e.startTime,playerApi:e.playerApiUrl,hotkeyElQuerySelector:"body",onReady:function(t){h.current=t,e.onReady&&e.onReady(h.current)},onError:function(n){p(!0),t("allowFloatingPlayer",!1),e.onError&&e.onError(n)},onDispose:e.onDispose,onClickCreateClip:e.onClickCreateClip,embed:e.embed,className:e.embed?c.embeddedPlayer:"",autoplay:e.autoplay}))}n.d(t,"a",(function(){return p}))},function(e,t){e.exports=g},function(e,t,n){e.exports=n(870).default},function(e,t){e.exports=m},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.unreadCount:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.unreadCount:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.unreadCount:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.heading:o,t))+"</h4>\r\n"},3:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return"<p>"+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.description:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+s(a(null!=(o=null!=t?t.options:t)?o.imageClass:o,t))+'"/>\r\n'+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.heading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.description:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.actionText:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.actionText:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+" "+s(a(null!=(o=null!=t?t.options:t)?o.iconClass:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.icon:o,t))?o:"")+'</div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.content:o,t))+"</div>\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showActionText:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.notificationTime:o,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:i}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.hasNotifications:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.notificationsContainer:o,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.confirmSelectionText:o,t))?o:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'" data-toggle="popover">\r\n '+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.searchInfoSvg:o,t))?o:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c=e.lambda,l=e.escapeExpression;return' <span class="border rounded align-middle '+l(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.term:s,t))+'">'+l(c(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+l(e.lambda(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.termContainer:s,t))+'">\r\n'+(null!=(s=n.each.call(u,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,i,0,o,a),inverse:e.noop,data:i}))?s:"")+"</span>\r\n<span>"+l("function"==typeof(c=null!=(c=n.description||(null!=t?t.description:t))?c:e.hooks.helperMissing)?c.call(u,{name:"description",hash:{},data:i}):c)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchContextTag:o,t))+'" title="'+c("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:u)?a.call(l,{name:"title",hash:{},data:i}):a)+'">\r\n <span>'+c("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:u)?a.call(l,{name:"searchTag",hash:{},data:i}):a)+'</span>\r\n <span class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+s(c(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.removeRecent:o,t))+'">'+(null!=(o=c(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return"<img "+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+'src="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'" class="img-fluid lazy-img w-100 '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.thumbnail:o,t))+'" />\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.playIcon:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,n,r,i){return"data-"},4:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.playSvgContainer:o,t))+'" '+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"},5:function(e,t,n,r,i){return'style="display: none;"'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge float-right '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationOverlay:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda;return(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.url:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'<div class="'+e.escapeExpression(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.duration:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"aligned"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <div class="result-title collection"> '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.type:o,t))+": "+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<a class="row" href="'+s(e.lambda(null!=(o=null!=t?t.options:t)?o.url:o,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(o=n.unless.call(c,null!=(o=null!=t?t.options:t)?o.collection:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:i}):a)+"</div>\r\n"+(null!=(o=n.if.call(c,null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression;return'<a class="row" href="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'">\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.coverContainer:o,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.textContainer:o,t))+' px-2">\r\n <div class="result-title text-capitalize">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchInput:o,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+s(a(null!=(o=null!=t?t.options:t)?o.libraryText:o,t))+'" aria-label="Search">\r\n</div>\r\n<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchIcons:o,t))+'">\r\n <span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchSvgContainer:o,t))+' search-btn">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showCloseButton:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"</div>\r\n"},2:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchSvgContainer:o,t))+' close-btn">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n"},4:function(e,t,n,r,i){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showPartial:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(4,i,0),data:i}))?o:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchBar:o,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){var r=n(490),i=n(884);function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},function(e,t,n){var r=n(490);e.exports=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&&r(e,t)}},function(e,t,n){"use strict";(function(t){var r,i=(r=n(4))&&"object"==typeof r&&"default"in r?r.default:r;e.exports=function(e){for(var n,r=(n=e,i.atob?i.atob(n):t.from(n,"base64").toString("binary")),o=new Uint8Array(r.length),a=0;a<r.length;a++)o[a]=r.charCodeAt(a);return o}}).call(this,n(270).Buffer)},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new l,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,u=n.xmlns||{},p={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(p.nbsp=" ",p.copy="©",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,u,p):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new u).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){e=r.getURI(l);var u=r.getValue(l),p=(n=r.getQName(l),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(l),p),p.value=p.nodeValue=u,a.setAttributeNode(p)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var l=n(888).XMLReader,u=t.DOMImplementation=n(491).DOMImplementation;t.XMLSerializer=n(491).XMLSerializer,t.DOMParser=r},function(e,t,n){"use strict";var r=n(492).discardEmulationPreventionBytes,i=n(889).CaptionStream,o=n(184),a=n(248),s=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},c=function(e,t){var n=o.findBox(e,["moof","traf"]),i=o.findBox(e,["mdat"]),c={},l=[];return i.forEach((function(e,t){var r=n[t];l.push({mdat:e,traf:r})})),l.forEach((function(e){var n,i=e.mdat,l=e.traf,u=o.findBox(l,["tfhd"]),p=a.parseTfhd(u[0]),h=p.trackId,d=o.findBox(l,["tfdt"]),f=d.length>0?a.parseTfdt(d[0]).baseMediaDecodeTime:0,g=o.findBox(l,["trun"]);t===h&&g.length>0&&(n=function(e,t,n){var i,o,a,c,l=new DataView(e.buffer,e.byteOffset,e.byteLength),u=[];for(o=0;o+4<e.length;o+=a)if(a=l.getUint32(o),o+=4,!(a<=0))switch(31&e[o]){case 6:var p=e.subarray(o+1,o+1+a),h=s(o,t);i={nalUnitType:"sei_rbsp",size:a,data:p,escapedRBSP:r(p),trackId:n},h?(i.pts=h.pts,i.dts=h.dts,c=h):(i.pts=c.pts,i.dts=c.dts),u.push(i)}return u}(i,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,c=[];return e.forEach((function(e){var t=a.parseTrun(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration})),c=c.concat(t)})),c}(g,f,p),h),c[h]||(c[h]=[]),c[h]=c[h].concat(n))})),c};e.exports=function(){var e,t,n,r,o,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new i,s=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,o.captions.push(e),o.captionStreams[e.stream]=!0}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,i,a){var s;if(!this.isInitialized())return null;if(!i||!a)return null;if(this.isNewInit(i,a))n=i[0],r=a[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,i,a)}return null!==(s=function(e,t,n){return null===t?null:{seiNals:c(e,t)[t],timescale:n}}(e,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),o):null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},function(e,t,n){"use strict";var r=n(494),i=n(890).handleRollover,o={};o.ts=n(891),o.aac=n(892);var a=n(893).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[c]||71!==e[l]&&l!==e.byteLength)c++,l++;else{switch(r=e.subarray(c,l),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;c+=188,l+=188}for(c=(l=e.byteLength)-188,u=!1;c>=0;)if(71!==e[c]||71!==e[l]&&l!==e.byteLength)c--,l--;else{switch(r=e.subarray(c,l),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;c-=188,l-=188}},c=function(e,t,n){for(var r,i,a,s,c,l,u,p=0,h=188,d=!1,f={data:[],size:0};h<e.byteLength;)if(71!==e[p]||71!==e[h])p++,h++;else{switch(r=e.subarray(p,h),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!d&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0),!n.firstKeyFrame)){if(a&&0!==f.size){for(c=new Uint8Array(f.size),l=0;f.data.length;)u=f.data.shift(),c.set(u,l),l+=u.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var g=o.ts.parsePesTime(c);g?(n.firstKeyFrame=g,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(r),f.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;p+=188,h+=188}for(p=(h=e.byteLength)-188,d=!1;p>=0;)if(71!==e[p]||71!==e[h])p--,h--;else{switch(r=e.subarray(p,h),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0)}if(d)break;p-=188,h-=188}},l=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],c(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,c=0,l=0;e.length-l>=3;){switch(o.aac.parseType(e,l)){case"timed-metadata":if(e.length-l<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,l))>e.length){n=!0;break}null===s&&(t=e.subarray(l,l+c),s=o.aac.parseAacTimestamp(t)),l+=c;break;case"audio":if(e.length-l<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,l))>e.length){n=!0;break}null===i&&(t=e.subarray(l,l+c),i=o.aac.parseSampleRate(t)),r++,l+=c;break;default:l++}if(n)return null}if(null===i||null===s)return null;var u=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*u,pts:s+1024*r*u}]}}(e):l(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}))}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var i,o,a,s=t||[0],c=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=(a=i+c)>>>2,s.length<=o&&s.push(0),s[o]|=e[i]<<8*(l+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,i){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var i,o,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=2){if(o=parseInt(e.substr(i,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(a=(s=(i>>>1)+l)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(u+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,i)};case"TEXT":return function(e,t,n){return function(e,t,n,r,i){var o,a,s,c,l,u,p,h,d=0,f=n||[0],g=(r=r||0)>>>3;if("UTF8"===t)for(p=-1===i?3:0,s=0;s<e.length;s+=1)for(a=[],128>(o=e.charCodeAt(s))?a.push(o):2048>o?(a.push(192|o>>>6),a.push(128|63&o)):55296>o||57344<=o?a.push(224|o>>>12,128|o>>>6&63,128|63&o):(s+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(s)),a.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),c=0;c<a.length;c+=1){for(l=(u=d+g)>>>2;f.length<=l;)f.push(0);f[l]|=a[c]<<8*(p+i*(u%4)),d+=1}else for(p=-1===i?2:0,h="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===h&&(o=(c=255&o)<<8|o>>>8),l=(u=d+g)>>>2;f.length<=l;)f.push(0);f[l]|=o<<8*(p+i*(u%4)),d+=2}return{value:f,binLen:8*d+r}}(e,r,t,n,i)};case"B64":return function(e,n,r){return function(e,n,r,i){var o,a,s,c,l,u,p=0,h=n||[0],d=(r=r||0)>>>3,f=-1===i?3:0,g=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==g&&g<e.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){for(c=e.substr(o,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(l=(u=p+d)>>>2;h.length<=l;)h.push(0);h[l]|=(s>>>16-8*a&255)<<8*(f+i*(u%4)),p+=1}}return{value:h,binLen:8*p+r}}(e,n,r,i)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var i,o,a,s,c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+l)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(u+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,i){return n(new Uint8Array(e),t,r,i)}(e,t,r,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e,n,r,i){switch(e){case"HEX":return function(e){return function(e,t,n,r){var i,o,a="",s=t/8,c=-1===n?3:0;for(i=0;i<s;i+=1)o=e[i>>>2]>>>8*(c+n*(i%4)),a+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return r.outputUpper?a.toUpperCase():a}(e,n,r,i)};case"B64":return function(e){return function(e,n,r,i){var o,a,s,c,l,u="",p=n/8,h=-1===r?3:0;for(o=0;o<p;o+=3)for(c=o+1<p?e[o+1>>>2]:0,l=o+2<p?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(h+r*(o%4))&255)<<16|(c>>>8*(h+r*((o+1)%4))&255)<<8|l>>>8*(h+r*((o+2)%4))&255,a=0;a<4;a+=1)u+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return u}(e,n,r,i)};case"BYTES":return function(e){return function(e,t,n){var r,i,o="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)i=e[r>>>2]>>>8*(s+n*(r%4))&255,o+=String.fromCharCode(i);return o}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=new ArrayBuffer(i),a=new Uint8Array(o),s=-1===n?3:0;for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return o}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=-1===n?3:0,a=new Uint8Array(i);for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(o+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function l(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function u(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16))<<16|65535&o}function p(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function h(e,t){var n,r,i,o,p,h,d,f,g=[];for(n=t[0],r=t[1],i=t[2],o=t[3],p=t[4],d=0;d<80;d+=1)g[d]=d<16?e[d]:a(g[d-3]^g[d-8]^g[d-14]^g[d-16],1),h=d<20?u(a(n,5),(f=r)&i^~f&o,p,1518500249,g[d]):d<40?u(a(n,5),s(r,i,o),p,1859775393,g[d]):d<60?u(a(n,5),c(r,i,o),p,2400959708,g[d]):u(a(n,5),s(r,i,o),p,3395469782,g[d]),p=o,o=i,i=a(r,30),r=n,n=h;return t[0]=l(n,t[0]),t[1]=l(r,t[1]),t[2]=l(i,t[2]),t[3]=l(o,t[3]),t[4]=l(p,t[4]),t}function d(e,t,n,r){for(var i,o=15+(t+65>>>9<<4),a=t+n;e.length<=o;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[o]=4294967295&a,e[o-1]=a/4294967296|0,i=0;i<e.length;i+=16)r=h(e.slice(i,i+16),r);return r}return function(t){function n(e,n,i){var o=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=i||{};return(o=t.call(this,e,n,i)||this).t=!0,o.i=o.o,o.u=-1,o.s=r(o.h,o.v,o.u),o.A=h,o.p=function(e){return e.slice()},o.l=p,o.R=d,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,a.hmacKey&&o.B(function(e,t,n,i){var o="hmacKey must include a value and format";if(!t)throw new Error(o);if(void 0===t.value||!t.format)throw new Error(o);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,o.u)),o}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,i=this.s(e,this.Y,this.I),o=i.binLen,a=i.value,s=o>>>5;for(t=0;t<s;t+=r)n+this.T<=o&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=o%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=o(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=i(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var i=r(t,(n||{}).encoding||"UTF8",this.u);this.B(i(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=o(t);return i(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.18-rc.6"}')},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(34);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";(function(e){n.d(t,"a",(function(){return h}));var r,i,o=n(54),a=n(101),s=n(8),c=n(22),l=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};if("undefined"==typeof XMLHttpRequest){var p=require;i=p("request")}var h=function(t){function n(e){var n=t.call(this)||this;if(void 0===i)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=i.jar(),n.request=i.defaults({jar:n.cookieJar}),n}return l(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o.a):new Promise((function(r,i){var l;l=Object(c.g)(t.content)?e.from(t.content):t.content||"";var p=n.request(t.url,{body:l,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:u({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,c,l){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(s.a.Warning,"Timeout from HTTP request."),i(new o.c)),n.logger.log(s.a.Warning,"Error from HTTP request. "+e),void i(e);c.statusCode>=200&&c.statusCode<300?r(new a.b(c.statusCode,c.statusMessage||"",l)):i(new o.b(c.statusMessage||"",c.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){p.abort(),i(new o.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(270).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(142),i=n(22),o=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,o;if(Object(i.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),o=a.byteLength>s?a.slice(s).buffer:null}else{var c,l=t;if(-1===(c=l.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=l.substring(0,s),o=l.length>s?l.substring(s):null}var u=r.a.parse(n),p=JSON.parse(u[0]);if(p.type)throw new Error("Expected a handshake response from the server.");return[o,p]},t}()}).call(this,n(270).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},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){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){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){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,n){},function(e,t,n){},function(e,t,n){},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(871));var i=r.tokenize,o=r.options.Options;function a(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 o(t);for(var n=i(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),h=p.formatted,d=p.formattedHref,f=p.tagName,g=p.className,m=p.target,y=p.attributes,v="<"+f+' href="'+s(d)+'"';g&&(v+=' class="'+s(g)+'"'),m&&(v+=' target="'+s(m)+'"'),y&&(v+=" "+c(y)),v+=">"+a(h)+"</"+f+">",r.push(v)}else r.push(a(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(220),i=s(n(872)),o=s(n(873)),a=s(n(874));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 a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(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=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},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(372),i=n(284),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("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],p=function(e){return new r.CharacterState(e)},h=p(),d=p(i.NUM),f=p(i.DOMAIN),g=p(),m=p(i.WS);h.on("@",p(i.AT)).on(".",p(i.DOT)).on("+",p(i.PLUS)).on("#",p(i.POUND)).on("?",p(i.QUERY)).on("/",p(i.SLASH)).on("_",p(i.UNDERSCORE)).on(":",p(i.COLON)).on("{",p(i.OPENBRACE)).on("[",p(i.OPENBRACKET)).on("<",p(i.OPENANGLEBRACKET)).on("(",p(i.OPENPAREN)).on("}",p(i.CLOSEBRACE)).on("]",p(i.CLOSEBRACKET)).on(">",p(i.CLOSEANGLEBRACKET)).on(")",p(i.CLOSEPAREN)).on("&",p(i.AMPERSAND)).on([",",";","!",'"',"'"],p(i.PUNCTUATION)),h.on("\n",p(i.NL)).on(l,m),m.on(l,m);for(var y=0;y<a.length;y++){var v=(0,r.stateify)(a[y],h,i.TLD,i.DOMAIN);u.push.apply(u,v)}var b=(0,r.stateify)("file",h,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("ftp",h,i.DOMAIN,i.DOMAIN),C=(0,r.stateify)("http",h,i.DOMAIN,i.DOMAIN),T=(0,r.stateify)("mailto",h,i.DOMAIN,i.DOMAIN);u.push.apply(u,b),u.push.apply(u,_),u.push.apply(u,C),u.push.apply(u,T);var S=b.pop(),w=_.pop(),E=C.pop(),k=T.pop(),A=p(i.DOMAIN),x=p(i.PROTOCOL),I=p(i.MAILTO);w.on("s",A).on(":",x),E.on("s",A).on(":",x),u.push(A),S.on(":",x),A.on(":",x),k.on(":",I);var O=(0,r.stateify)("localhost",h,i.LOCALHOST,i.DOMAIN);u.push.apply(u,O),h.on(s,d),d.on("-",g).on(s,d).on(c,f),f.on("-",g).on(c,f);for(var L=0;L<u.length;L++)u[L].on("-",g).on(c,f);g.on("-",g).on(s,f).on(c,f),h.defaultTransition=p(i.SYM);var P=h;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=h,a=null,s=0,c=null,l=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(l=0,c=o):l>=0&&l++,s++,i++;if(!(l<0)){i-=l,s-=l;var u=c.emit();r.push(new u(e.substr(i-s,s)))}}return r},t.start=P},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(372),i=n(875),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(284);var s=function(e){return new r.TokenState(e)},c=s(),l=s(),u=s(),p=s(),h=s(),d=s(),f=s(),g=s(i.URL),m=s(),y=s(i.URL),v=s(i.URL),b=s(),_=s(),C=s(),T=s(),S=s(),w=s(i.URL),E=s(i.URL),k=s(i.URL),A=s(i.URL),x=s(),I=s(),O=s(),L=s(),P=s(),N=s(),R=s(i.EMAIL),D=s(),U=s(i.EMAIL),B=s(i.MAILTOEMAIL),V=s(),M=s(),j=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,l).on(a.MAILTO,u).on(a.SLASH,p),l.on(a.SLASH,p),p.on(a.SLASH,h),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,g).on(a.NUM,d),h.on(a.TLD,v).on(a.DOMAIN,v).on(a.NUM,v).on(a.LOCALHOST,v),d.on(a.DOT,f),P.on(a.DOT,N),f.on(a.TLD,g).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),N.on(a.TLD,R).on(a.DOMAIN,P).on(a.NUM,P).on(a.LOCALHOST,P),g.on(a.DOT,f),R.on(a.DOT,N),g.on(a.COLON,m).on(a.SLASH,v),m.on(a.NUM,y),y.on(a.SLASH,v),R.on(a.COLON,D),D.on(a.NUM,U);var z=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];v.on(a.OPENBRACE,_).on(a.OPENBRACKET,C).on(a.OPENANGLEBRACKET,T).on(a.OPENPAREN,S),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,C).on(a.OPENANGLEBRACKET,T).on(a.OPENPAREN,S),_.on(a.CLOSEBRACE,v),C.on(a.CLOSEBRACKET,v),T.on(a.CLOSEANGLEBRACKET,v),S.on(a.CLOSEPAREN,v),w.on(a.CLOSEBRACE,v),E.on(a.CLOSEBRACKET,v),k.on(a.CLOSEANGLEBRACKET,v),A.on(a.CLOSEPAREN,v),x.on(a.CLOSEBRACE,v),I.on(a.CLOSEBRACKET,v),O.on(a.CLOSEANGLEBRACKET,v),L.on(a.CLOSEPAREN,v),_.on(z,w),C.on(z,E),T.on(z,k),S.on(z,A),_.on(W,x),C.on(W,I),T.on(W,O),S.on(W,L),w.on(z,w),E.on(z,E),k.on(z,k),A.on(z,A),w.on(W,w),E.on(W,E),k.on(W,k),A.on(W,A),x.on(z,w),I.on(z,E),O.on(z,k),L.on(z,A),x.on(W,x),I.on(W,I),O.on(W,O),L.on(W,L),v.on(z,v),b.on(z,v),v.on(W,b),b.on(W,b),u.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,V),V.on(z,B).on(W,V);var q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(q,M).on(a.AT,j),g.on(q,M).on(a.AT,j),f.on(q,M),M.on(q,M).on(a.AT,j).on(a.DOT,F),F.on(q,M),j.on(a.TLD,P).on(a.DOMAIN,P).on(a.LOCALHOST,R);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=c,s=null,l=null,u=0,p=null,h=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(l=s||a.next(e[n]));)s=null,(a=l).accepts()?(h=0,p=a):h>=0&&h++,n++,u++;if(h<0)for(var d=n-u;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=h,u-=h;var f=p.emit();r.push(new f(e.slice(n-u,n)))}}return o.length>0&&r.push(new i.TEXT(o)),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(373),i=n(220),o=n(284);function a(e){return e instanceof o.DOMAIN||e instanceof o.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,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),h=(0,i.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,i=[],s=0;r[s]instanceof o.PROTOCOL;)t=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=p,t.TEXT=u,t.URL=h},function(e,t){},function(e,t,n){var r=n(678),i=n(31);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(95))},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){var r=n(12),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function l(e,t,n){var r=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=i(),l(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),l(),t.endTime=i(),l(),function(e,t){var r=new s;c(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=r.createElement("textarea"),p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},f={rt:"ruby"};function g(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function i(t,n){var r=p[t];if(!r)return null;var i=e.document.createElement(r),o=d[t];return o&&n&&(i[o]=n.trim()),i}for(var o,s,c=e.document.createElement("div"),l=c,g=[];null!==(o=n());)if("<"!==o[0])l.appendChild(e.document.createTextNode((s=o,u.innerHTML=s,s=u.textContent,u.textContent="",s)));else{if("/"===o[1]){g.length&&g[g.length-1]===o.substr(2).replace(">","")&&(g.pop(),l=l.parentNode);continue}var m,y=a(o.substr(1,o.length-2));if(y){m=e.document.createProcessingInstruction("timestamp",y),l.appendChild(m);continue}var v=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(m=i(v[1],v[3])))continue;if(!r(l,m))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var r=t?"background-color":"color",i=h[n];m.style[r]=i}})),m.className=b.join(" ")}g.push(v[1]),l.appendChild(m),l=m}return c}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function v(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(y(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=g(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function C(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function T(e,t,n,r){var i=new C(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var c;switch(o.vertical){case"":s=["+y","-y"],c="height";break;case"rl":s=["+x","-x"],c="width";break;case"lr":s=["-x","+x"],c="width"}var l=i.lineHeight,u=l*Math.round(a),p=n[c]+l,h=s[0];Math.abs(u)>p&&(u=u<0?-1:1,u*=Math.ceil(p/l)*l),a<0&&(u+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(h,u)}else{var d=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new C(t)}var f=function(e,t){for(var i,o=new C(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var c=e.intersectPercentage(n);a>c&&(i=new C(e),a=c),e=new C(o)}return i||o}(i,s);t.move(f.toCSSCompatValues(n))}function S(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=i(b.prototype),_.prototype.constructor=_,C.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},C.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},C.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},C.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},C.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},C.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},C.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},C.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},S.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},S.convertCueToDOMTree=function(e,t){return e&&t?g(e,t):null};S.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=C.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,c=0;c<t.length;c++)s=t[c],n=new _(e,s,a),r.appendChild(n.div),T(0,n,o,i),s.displayState=n.div,i.push(C.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},S.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},S.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?c(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new s;c(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",a(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):c(e,(function(e,n){switch(e){case"Region":!function(e){var n=new s;if(c(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var p=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{l(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==i.indexOf("--\x3e");if(!i||h&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new o(o.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=S},function(e,t){var n={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function o(e,t,r){this.hasBeenReset=!1;var o="",a=!1,s=e,c=t,l=r,u=null,p="",h=!0,d="auto",f="start",g="auto",m="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return p},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");p=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=i(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=i(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},function(e,t){e.exports=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}}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,h=n?-1:1,d=e[t+p];for(p+=h,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+p],p+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,p=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+p>=1?h/c:h*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(t*c-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+d]=255&a,d+=f,a/=256,l-=8);e[n+d-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,i,o){for(var a,s=++t,c=0;;){var l=e.charAt(s);switch(l){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(l,t))>0))throw new Error("attribute value no end '"+l+"' match");u=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,u,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');u=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,u,t),o.warning('attribute "'+a+'" missed start quot('+l+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===c&&(u=a),4==c?(o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":l=" ";default:if(l<=" ")switch(c){case 0:n.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var u=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u,t);case 5:c=6}else switch(c){case 2:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((d=s.indexOf(":"))>0)var l=a.prefix=s.slice(0,d),u=s.slice(d+1),h="xmlns"===l&&u;else u=s,l=null,h="xmlns"===s&&"";a.localName=u,!1!==h&&(null==i&&(i={},p(n,n={})),n[h]=i[h]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(h,c))}for(o=e.length;o--;){(l=(a=e[o]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=n[l||""]))}var d;(d=r.indexOf(":"))>0?(l=e.prefix=r.slice(0,d),u=e.localName=r.slice(d+1)):(l=null,u=e.localName=r);var f=e.uri=n[l||""];if(t.startElement(f,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(f,u,r),i)for(l in i)t.endPrefixMapping(l)}function l(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function u(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function p(e,t){for(var n in e)t[n]=e[n]}function h(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],l=a>4&&o[4][0],u=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),u.index+u[0].length}}return-1}function d(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function f(e){}function g(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),p(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function p(t){if(t>T){var n=e.substring(T,t).replace(/&#?\w+;/g,o);b&&g(T),r.characters(n,0,t-T),T=t}}function g(t,n){for(;t>=y&&(n=v.exec(e));)m=n.index,y=m+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}var m=0,y=0,v=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,_=[{currentNSMap:t}],C={},T=0;for(;;){try{var S=e.indexOf("<",T);if(S<0){if(!e.substr(T).match(/^\s*$/)){var w=r.doc,E=w.createTextNode(e.substr(T));w.appendChild(E),r.currentElement=E}return}switch(S>T&&p(S),e.charAt(S+1)){case"/":var k=e.indexOf(">",S+3),A=e.substring(S+2,k),x=_.pop();k<0?(A=e.substring(S+2).replace(/[\s<].*/,""),i.error("end tag name: "+A+" is not complete:"+x.tagName),k=S+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),i.error("end tag name: "+A+" maybe not complete"),k=S+1+A.length);var I=x.localNSMap,O=x.tagName==A;if(O||x.tagName&&x.tagName.toLowerCase()==A.toLowerCase()){if(r.endElement(x.uri,x.localName,A),I)for(var L in I)r.endPrefixMapping(L);O||i.fatalError("end tag name: "+A+" is not match the current start tagName:"+x.tagName)}else _.push(x);k++;break;case"?":b&&g(S),k=d(e,S,r);break;case"!":b&&g(S),k=h(e,S,r,i);break;default:b&&g(S);var P=new f,N=_[_.length-1].currentNSMap,R=(k=s(e,S,P,N,o,i),P.length);if(!P.closed&&u(e,k,P.tagName,C)&&(P.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&R){for(var D=a(b,{}),U=0;U<R;U++){var B=P[U];g(B.offset),B.locator=a(b,{})}r.locator=D,c(P,r,N)&&_.push(P),r.locator=b}else c(P,r,N)&&_.push(P);"http://www.w3.org/1999/xhtml"!==P.uri||P.closed?k++:k=l(e,k,P.tagName,o,r)}}catch(e){i.error("element parse error: "+e),k=-1}k>T?T=k:p(Math.max(S,T)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},g({},g.prototype)instanceof g||(g=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=o},function(e,t,n){"use strict";var r=n(493),i=n(492),o=function(){o.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new u(0,0),new u(0,1),new u(1,0),new u(1,1)],this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this)};o.prototype=new r,o.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=i.parseSei(e.escapedRBSP)).payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},o.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},o.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2&&this.dispatchCea608Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},o.prototype.flush=function(){return this.flushStream("flush")},o.prototype.partialFlush=function(){return this.flushStream("partialFlush")},o.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},o.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},o.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},o.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},o.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(e){return null===e?"":(e=a[e]||e,String.fromCharCode(e))},c=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],l=function(){for(var e=[],t=15;t--;)e.push("");return e},u=function(e,t){u.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=l();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=l();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=l()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=c.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=s(r),o+=s(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};u.prototype=new r,u.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},u.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=l(),this.nonDisplayed_=l(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},u.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},u.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},u.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},u.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},u.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},u.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},u.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},u.prototype.isNormalChar=function(e){return e>=32&&e<=127},u.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=l(),this.displayed_=l()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},u.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},u.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},u.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},u.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},u.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},u.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},e.exports={CaptionStream:o,Cea608Stream:u}},function(e,t,n){"use strict";var r=n(493),i=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=i(e.dts,n),e.pts=i(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};o.prototype=new r,e.exports={TimestampRolloverStream:o,handleRollover:i}},function(e,t,n){"use strict";var r=n(494),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},o=function(e){return!!(64&e[1])},a=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};e.exports={parseType:function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),n=4+a(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=o(e),r=4+a(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var c=r+s;t[(31&e[c+1])<<8|e[c+2]]=e[c],s+=5+((15&e[c+3])<<8|e[c+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[i(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+a(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+a(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),o}}},function(e,t,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},parseId3TagSize:function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return r[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=i(e.subarray(10,14)));do{if((n=i(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var o=0;o<r.byteLength;o++)if(0===r[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,o))){var a=r.subarray(o+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t){var n,r,i,o,a,s,c;n=function(e){return 9e4*e},r=function(e,t){return e*t},i=function(e){return e/9e4},o=function(e,t){return e/t},a=function(e,t){return n(o(e,t))},s=function(e,t){return r(i(e),t)},c=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:c}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869);var r=n(2),i=n(0),o=n.n(i),a=n(11),s=n(240),c=n(23);class l extends s.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,i.createElement(t,{alerts:r,removeAlert:e=>a.Radio.channel(c.a.ALERT).trigger("remove:alert",e)}))}}const u="content",p="popup",h="alert";var d=n(3),f="TeacherLayout",g="EmbedLayout",m=n(7),y=n(19),v=n(13),b=n(165),_=n(74),C=[{application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND},{application:m.a.DEFAULT,action:v.a.Default.ERROR},{application:m.a.DEFAULT,action:v.a.Default.DEV_ERROR},{application:m.a.DEFAULT,action:v.a.Default.DIALOG_ERROR}];function T(e,t){var n=e.appLink,i=e.shell;if(C.find((function(e){return e.application===n.application&&e.action===n.action})))t(e);else{var o=i.store,a=o.dispatch,s=o.getState;y.a.hooklessFetch(a,s(),_.a.currentUser((function(n){n.emailVerified?t(e):(r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new b.a))}),(function(){t(e)})))}}var S=n(300),w=n.n(S),E=n(326),k=n(104),A=n(327),x=[{application:m.a.SUBJECT,action:v.a.Subjects.PREFERENCES},{application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND}];function I(e,t){O(e,(function(n){if(n)return r.a.AppLinkHelper.trigger({application:m.a.SUBJECT,action:v.a.Subjects.PREFERENCES}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function O(e,t){var n=e.appLink,r=e.shell;if(x.find((function(e){return e.application===(null==n?void 0:n.application)&&e.action===(null==n?void 0:n.action)})))t(!1);else{var i=r.store,o=i.dispatch,a=i.getState;y.a.hooklessFetch(o,a(),_.a.currentUser((function(e){y.a.hooklessFetch(o,a(),_.a.permissions((function(n){n[k.a.ManageSubjectPreferences]&&w.a.get("_onboardingComplete")!==e.id.toString()?y.a.hooklessFetch(o,a(),A.a.setting(e.id,E.a.HasCompletedOnboarding,(function(n){if(n.value)return w.a.set("_onboardingComplete",e.id,{expires:30}),void t(!1);t(!0)}),(function(){t(!1)}))):t(!1)}),(function(){t(!1)})))}),(function(){t(!1)})))}}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 P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(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 R(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}function D(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)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(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 V(this,n)}}function V(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 M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){D(n,e);var t=B(n);function n(){return P(this,n),t.apply(this,arguments)}return R(n,[{key:"channelName",get:function(){return m.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),F=function(e){D(r,e);var t=B(r);function r(){return P(this,r),t.apply(this,arguments)}return R(r,[{key:"index",value:function(){var e=this;n.e(31).then(n.bind(null,1670)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(u,o.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(42).then(n.bind(null,1673)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(u,o.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,i=t.tab;["students","groups"].includes(i)||(i="students"),n.e(19).then(n.bind(null,1665)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(u,o.a.createElement(n,{id:e,activeTab:i}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(55)]).then(n.bind(null,1626)).then((function(t){var n=t.CreateClassroomView,r={actionType:d.UserAction.Create,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};e.layout.showChildView(p,o.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(56)]).then(n.bind(null,1627)).then((function(n){var r=n.EditClassroomView,i={actionType:d.UserAction.Edit,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(71).then(n.bind(null,1628)).then((function(n){var r=n.DeleteClassroomView,i={actionType:d.UserAction.Delete,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(9),n.e(65)]).then(n.bind(null,1629)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:d.UserAction.Associate,entity:d.EntityType.Classroom,location:d.LocationContext.Popup,descriptor:d.AssocDescriptor.User,workflowPhase:d.WorkflowPhase.Complete};t.layout.showChildView(p,o.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:i}))}))}},{key:"removeStudents",value:function(e,t){var r=this,i=t.studentIds;n.e(72).then(n.bind(null,1630)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:d.UserAction.Dissociate,entity:d.EntityType.Classroom,location:d.LocationContext.Popup,descriptor:d.AssocDescriptor.User,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,i=t.addStudents,a=void 0===i?[]:i;Promise.all([n.e(1),n.e(2),n.e(43)]).then(n.bind(null,1631)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:d.EntityType.ClassroomGroup,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:i}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(44)]).then(n.bind(null,1632)).then((function(n){var i=n.EditClassroomGroupView,a={entity:d.EntityType.ClassroomGroup,actionType:d.UserAction.Edit,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(70).then(n.bind(null,1633)).then((function(n){var i=n.DeleteClassroomGroupView,a={entity:d.EntityType.ClassroomGroup,actionType:d.UserAction.Delete,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return m.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return j}}]),r}(l),H="content",z="popup",W="alert",q=n(304);function G(e){return(G="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 K(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 J(e,t,n){return t&&Y(e.prototype,t),n&&Y(e,n),e}function X(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&&Q(e,t)}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(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=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==G(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 te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){X(n,e);var t=Z(n);function n(){return K(this,n),t.apply(this,arguments)}return J(n,[{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),re=function(e){X(r,e);var t=Z(r);function r(){return K(this,r),t.apply(this,arguments)}return J(r,[{key:"contentUpdates",value:function(){var e=this;Promise.all([n.e(0),n.e(6),n.e(69)]).then(n.bind(null,1674)).then((function(t){var n=t.ContentUpdatesView;e.layout.showChildView(H,i.createElement(n,{appLinks:q.a}))}))}},{key:"classificationUpdate",value:function(e){var t=this;Promise.all([n.e(0),n.e(6),n.e(75)]).then(n.bind(null,1634)).then((function(n){var r=n.ClassificationUpdateView;t.layout.showChildView(H,i.createElement(r,{classificationId:e,appLinks:q.a}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return ne}}]),r}(l);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 ae(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 se(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),e}function ce(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&&le(e,t)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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=he(e);if(t){var i=he(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pe(this,n)}}function pe(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 he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=function(e){ce(n,e);var t=ue(n);function n(){return oe(this,n),t.apply(this,arguments)}return se(n,[{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","dashboard/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),fe=function(e){ce(r,e);var t=ue(r);function r(){return oe(this,r),t.apply(this,arguments)}return se(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(38)]).then(n.bind(null,1671)).then((function(t){var n=t.DashboardView;e.layout.showChildView(H,i.createElement(n,null))}))}},{key:"dashboard",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.cursor||1;Promise.all([n.e(0),n.e(23)]).then(n.bind(null,1682)).then((function(t){var n=t.DashboardWidgetView;r.layout.showChildView(H,i.createElement(n,{widgetId:e,cursor:a}))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}}],[{key:"router",get:function(){return de}}]),r}(l);function ge(e){return(ge="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 me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(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 ve(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}function be(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)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(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=Se(e);if(t){var i=Se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==ge(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 Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(e){be(n,e);var t=Ce(n);function n(){return me(this,n),t.apply(this,arguments)}return ve(n,[{key:"channelName",get:function(){return m.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","videos/:id/clips/new(/)":"createClip","clips/:id/edit(/)":"editClip","clips/:id(/:slug)":"playClip","series/:id(/:slug)":"series","favourited-videos(/)":"favouriteVideos","my-videos(/)":"myVideos","interactive/:id(/:slug)":"previewInteractive","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","previewPdf","previewQuestions","createClipDetails","editClipDetails","deleteClip","viewCurriculumLinks"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Ee=function(e){be(o,e);var t=Ce(o);function o(){return me(this,o),t.apply(this,arguments)}return ve(o,[{key:"myVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(29)]).then(n.bind(null,1672)).then((function(n){var r=n.MyVideosView;t.layout.showChildView(H,i.createElement(r,{cursor:e.cursor}))}))}},{key:"playVideo",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t?Promise.all([n.e(0),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1683)).then((function(t){var n=t.PlayView;r.layout.showChildView(H,i.createElement(n,{id:e,startTime:o.t}))})):this.playVideoNoSlug(e,t||{})}},{key:"playVideoNoSlug",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1683)).then((function(n){var o=n.PlayView;r.layout.showChildView(H,i.createElement(o,{id:e,startTime:t.t}))}))}},{key:"previewInteractive",value:function(e){var t=this;Promise.all([n.e(50),n.e(0),n.e(3),n.e(18)]).then(n.bind(null,1664)).then((function(n){var r=n.PreviewInteractiveView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"previewQuestions",value:function(e){var t=this;n.e(57).then(n.bind(null,1635)).then((function(n){var r=n.PreviewQuestionsView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(59)]).then(n.bind(null,1636)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var o=this;Promise.all([n.e(0),n.e(22)]).then(n.bind(null,1637)).then((function(t){var n=t.SeriesView;o.layout.showChildView(H,i.createElement(n,{id:e,cursor:null==r?void 0:r.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(27)]).then(n.bind(null,1638)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(H,i.createElement(r,{cursor:e.cursor}))}))}},{key:"previewPdf",value:function(e){var t=this;Promise.all([n.e(34),n.e(39)]).then(n.bind(null,1684)).then((function(n){var r=n.PreviewPdfView;t.layout.showChildView(z,i.createElement(r,{closePopup:function(){return t.layout.closePopup()},id:e}))}))}},{key:"createClip",value:function(e,t){var r=this;n.e(10).then(n.bind(null,1669)).then((function(n){var o=n.EditClipTimepointsView;r.layout.showChildView(H,i.createElement(o,{videoId:e,startTime:t.startTime}))}))}},{key:"editClip",value:function(e){var t=this;n.e(10).then(n.bind(null,1669)).then((function(n){var r=n.EditClipTimepointsView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"createClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(11)]).then(n.bind(null,1685)).then((function(n){var o=n.EditClipDetailsView;r.layout.showChildView(z,i.createElement(o,{videoId:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"editClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(11)]).then(n.bind(null,1685)).then((function(n){var o=n.EditClipDetailsView;r.layout.showChildView(z,i.createElement(o,{id:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteClip",value:function(e){var t=this;n.e(64).then(n.bind(null,1639)).then((function(n){var r=n.DeleteClipView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"playClip",value:function(e){var t=this;n.e(53).then(n.bind(null,1640)).then((function(n){var r=n.PlayClipView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"viewCurriculumLinks",value:function(e){var t=this;n.e(61).then(n.bind(null,1641)).then((function(n){var r=n.ViewCurriculumLinksView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new b.a)}},{key:"notFound",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(62).then(n.bind(null,1642)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(66).then(n.bind(null,1399)).then((function(n){var r=n.ErrorView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(74).then(n.bind(null,1643)).then((function(n){var o=n.DialogView;e.layout.showChildView(z,i.createElement(o,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(76).then(n.bind(null,1644)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.DEFAULT}}],[{key:"router",get:function(){return we}}]),o}(l);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 Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 Ie(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}function Oe(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&&Le(e,t)}function Le(e,t){return(Le=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=Re(e);if(t){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(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 Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){Oe(n,e);var t=Pe(n);function n(){return Ae(this,n),t.apply(this,arguments)}return Ie(n,[{key:"channelName",get:function(){return m.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shareId":"embedVideo"}}},{key:"filters",get:function(){return[T]}}]),n}(r.a.AppRouter),Ue=function(e){Oe(r,e);var t=Pe(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.a,a=void 0!==o&&o;n.e(68).then(n.bind(null,1645)).then((function(n){var r=n.EmbedView;t.layout.showChildView(H,i.createElement(r,{shareId:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:g}}},{key:"channelName",get:function(){return m.a.EMBED}}],[{key:"router",get:function(){return De}}]),r}(l),Be=n(206);function Ve(e){return(Ve="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 Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 Fe(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),e}function He(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&&ze(e,t)}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(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=Ge(e);if(t){var i=Ge(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==Ve(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 Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){He(n,e);var t=We(n);function n(){return Me(this,n),t.apply(this,arguments)}return Fe(n,[{key:"channelName",get:function(){return m.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Ke=function(e){He(r,e);var t=We(r);function r(){return Me(this,r),t.apply(this,arguments)}return Fe(r,[{key:"index",value:function(e){var t=this;n.e(63).then(n.bind(null,1686)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(u,i.createElement(Be.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}},{key:"channelName",get:function(){return m.a.NOTIFICATIONS}}],[{key:"router",get:function(){return $e}}]),r}(l),Ye=n(44),Je=n(374),Xe=n(118);function Qe(e){return(Qe="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 Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(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 tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(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&&rt(e,t)}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function it(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=at(e);if(t){var i=at(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==Qe(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 at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var st=function(e){nt(n,e);var t=it(n);function n(){return Ze(this,n),t.apply(this,arguments)}return tt(n,[{key:"channelName",get:function(){return m.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist","copyPlaylist"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),ct=function(e){nt(r,e);var t=it(r);function r(){return Ze(this,r),t.apply(this,arguments)}return tt(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:d.LocationContext.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:m.a.PLAYLISTS,action:v.a.Playlists.PLAYLIST,args:[e.id,Ye.a.slugify(e.name)]}},o=e.sort&&Je.a.getSortTypeFromName(e.sort);n.e(17).then(n.bind(null,1678)).then((function(e){var n=e.PlaylistsView;t.layout.showChildView(H,i.createElement(n,{getPlaylistAppLink:r,sort:o}))}))}},{key:"playlist",value:function(e){var t=this,r=function(e){return{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO,args:[e.id,Ye.a.slugify(e.name)],params:Xe.a.getVideoProgress(e)?{t:Math.floor(Xe.a.getVideoProgress(e))}:{}}},o=function(e){return{application:m.a.DEFAULT,action:v.a.Default.SERIES,args:[e.id,Ye.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1666)).then((function(n){var a=n.PlaylistView;t.layout.showChildView(H,i.createElement(a,{key:e,playlistId:e,application:m.a.PLAYLISTS,getVideoAppLink:r,getSeriesAppLink:o,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(37)]).then(n.bind(null,1646)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(z,i.createElement(n,Object.assign({application:m.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(36)]).then(n.bind(null,1647)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(z,i.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(47).then(n.bind(null,1648)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(z,i.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(30).then(n.bind(null,1675)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(z,i.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(48).then(n.bind(null,1649)).then((function(n){var o=n.RemoveVideoFromPlaylistView;r.layout.showChildView(z,i.createElement(o,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"copyPlaylist",value:function(e){var t=this;n.e(40).then(n.bind(null,1650)).then((function(n){var r=n.CopyPlaylistView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.PLAYLISTS}}],[{key:"router",get:function(){return st}}]),r}(l);function lt(e){return(lt="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 ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(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 ht(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),e}function dt(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&&ft(e,t)}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(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=yt(e);if(t){var i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){return!t||"object"!==lt(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 yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){dt(n,e);var t=gt(n);function n(){return ut(this,n),t.apply(this,arguments)}return ht(n,[{key:"channelName",get:function(){return m.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),bt=function(e){dt(r,e);var t=gt(r);function r(){return ut(this,r),t.apply(this,arguments)}return ht(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(28)]).then(n.bind(null,1676)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(H,i.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0}}}},{key:"channelName",get:function(){return m.a.SEARCH}}],[{key:"router",get:function(){return vt}}]),r}(r.a.Application),_t=n(10),Ct=n(39);function Tt(e){return(Tt="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 St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(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 Et(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),e}function kt(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&&At(e,t)}function At(e,t){return(At=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xt(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=Ot(e);if(t){var i=Ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==Tt(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 Ot(e){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lt=function(e){kt(n,e);var t=xt(n);function n(){return St(this,n),t.apply(this,arguments)}return Et(n,[{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Pt=function(e){kt(r,e);var t=xt(r);function r(){return St(this,r),t.apply(this,arguments)}return Et(r,[{key:"initialize",value:function(){this.subjectsAppVariables=_t.a.getInstance(Ct.a.SUBJECTS,this)}},{key:"classification",value:function(e,t,r){var o=this;Promise.all([n.e(0),n.e(3),n.e(15)]).then(n.bind(null,1667)).then((function(t){var n=t.ClassificationView;o.layout.showChildView(u,i.createElement(n,{key:e,id:e,queryParams:r}))}))}},{key:"preferences",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(41).then(n.bind(null,1687)).then((function(n){var r=n.BasePreferencesView;e.layout.showChildView(u,i.createElement(r,{step:t.step||"",redirectUrl:t.redirectUrl||""}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:this.subjectsAppVariables.hasCompletedOnboarding,alertRegion:h}}}}],[{key:"router",get:function(){return Lt}}]),r}(l);function Nt(e){return(Nt="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 Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(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 Ut(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),e}function Bt(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&&Vt(e,t)}function Vt(e,t){return(Vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(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=Ft(e);if(t){var i=Ft(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(e,t){return!t||"object"!==Nt(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 Ft(e){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ht=function(e){Bt(n,e);var t=Mt(n);function n(){return Rt(this,n),t.apply(this,arguments)}return Ut(n,[{key:"channelName",get:function(){return m.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),zt=function(e){Bt(r,e);var t=Mt(r);function r(){return Rt(this,r),t.apply(this,arguments)}return Ut(r,[{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(54)]).then(n.bind(null,1651)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(p,i.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(73).then(n.bind(null,1652)).then((function(n){var o=n.CancelUploadView;r.layout.showChildView(p,i.createElement(o,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return m.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return Ht}}]),r}(l),Wt=n(58),qt=n(144),Gt=n(76);function $t(e){return($t="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 Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(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 Jt(e,t,n){return t&&Yt(e.prototype,t),n&&Yt(e,n),e}function Xt(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&&Qt(e,t)}function Qt(e,t){return(Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zt(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=tn(e);if(t){var i=tn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return en(this,n)}}function en(e,t){return!t||"object"!==$t(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 tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nn=function(e){Xt(n,e);var t=Zt(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Jt(n,[{key:"channelName",get:function(){return m.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/staff(/)":"staffManager","user-manager/users/upload/edit":"bulkUserUploadEdit","user-manager/users/upload/duplicates":"bulkUserUploadDuplicates","user-manager/users/upload/review":"bulkUserUploadReview"}}},{key:"appLinks",get:function(){return["createUser","editUser","bulkRemoveUsers","toggleUserStatus","bulkUserUploadPopup"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),rn=function(e){Xt(r,e);var t=Zt(r);function r(){return Kt(this,r),t.apply(this,arguments)}return Jt(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(80)]).then(n.bind(null,1688)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(u,i.createElement(r,{queryParams:e}))}))}},{key:"staffManager",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(79)]).then(n.bind(null,1689)).then((function(n){var r=n.SchoolStaffManagerView;t.layout.showChildView(u,i.createElement(r,{queryParams:e}))}))}},{key:"createUser",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(45)]).then(n.bind(null,1653)).then((function(n){var r=n.CreateUserView,o={actionType:d.UserAction.Create,entity:d.EntityType.User,workflowPhase:d.WorkflowPhase.Complete,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.Popup};t.layout.showChildView(p,i.createElement(r,{userType:e.userType,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUser",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(46)]).then(n.bind(null,1654)).then((function(n){var o=n.EditUserView,a={actionType:d.UserAction.Edit,entity:d.EntityType.User,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};r.layout.showChildView(p,i.createElement(o,{id:e,userType:t.userType,analyticsOptions:a,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"bulkRemoveUsers",value:function(e){var t=this,r=e.userType;n.e(58).then(n.bind(null,1655)).then((function(e){var n=e.BulkRemoveUsersView;t.layout.showChildView(p,i.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"toggleUserStatus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.e(51).then(n.bind(null,1656)).then((function(n){var o=n.ToggleUserStatusView;t.layout.showChildView(p,i.createElement(o,{id:e,userType:r.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadPopup",value:function(e){var t=this,r=e.userType;n.e(52).then(n.bind(null,1677)).then((function(e){var n=e.BulkUserUploadPopupView;t.layout.showChildView(p,i.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadEdit",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;Promise.all([n.e(1),n.e(2),n.e(8),n.e(49)]).then(n.bind(null,1657)).then((function(n){var o=n.BulkUserUploadEditView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadDuplicates",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;Promise.all([n.e(1),n.e(2),n.e(8),n.e(78)]).then(n.bind(null,1679)).then((function(n){var o=n.BulkUserUploadDuplicatesView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadReview",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;n.e(35).then(n.bind(null,1658)).then((function(n){var o=n.BulkUserUploadReviewView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return m.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return nn}}]),r}(l);function on(e){return(on="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 an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(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 cn(e,t,n){return t&&sn(e.prototype,t),n&&sn(e,n),e}function ln(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&&un(e,t)}function un(e,t){return(un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pn(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=dn(e);if(t){var i=dn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hn(this,n)}}function hn(e,t){return!t||"object"!==on(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 dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(e){ln(n,e);var t=pn(n);function n(){return an(this,n),t.apply(this,arguments)}return cn(n,[{key:"channelName",get:function(){return m.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),gn=function(e){ln(r,e);var t=pn(r);function r(){return an(this,r),t.apply(this,arguments)}return cn(r,[{key:"index",value:function(){var e=this;n.e(60).then(n.bind(null,1680)).then((function(t){var n=t.SettingsView;e.layout.showChildView(H,o.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.SETTINGS}}],[{key:"router",get:function(){return fn}}]),r}(l);function mn(e){return(mn="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 yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(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 bn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),e}function _n(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&&Cn(e,t)}function Cn(e,t){return(Cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tn(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=wn(e);if(t){var i=wn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){return!t||"object"!==mn(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 wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En=function(e){_n(n,e);var t=Tn(n);function n(){return yn(this,n),t.apply(this,arguments)}return bn(n,[{key:"channelName",get:function(){return m.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),kn=function(e){_n(r,e);var t=Tn(r);function r(){return yn(this,r),t.apply(this,arguments)}return bn(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(25)]).then(n.bind(null,1681)).then((function(n){var r=n.WatchHistoryView;t.layout.showChildView(H,o.a.createElement(r,{cursor:e.cursor}))}))}},{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.WATCH_HISTORY}}],[{key:"router",get:function(){return En}}]),r}(l),An=n(21),xn=n(100),In=n(29);function On(e){return(On="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 Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pn(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 Nn(e,t,n){return t&&Pn(e.prototype,t),n&&Pn(e,n),e}function Rn(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&&Dn(e,t)}function Dn(e,t){return(Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Un(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=Vn(e);if(t){var i=Vn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bn(this,n)}}function Bn(e,t){return!t||"object"!==On(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 Vn(e){return(Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mn=function(e){Rn(n,e);var t=Un(n);function n(){return Ln(this,n),t.apply(this,arguments)}return Nn(n,[{key:"channelName",get:function(){return m.a.SHARE}},{key:"appRoutes",get:function(){return{"share/:id(/)":"viewShared"}}},{key:"appLinks",get:function(){return["share"]}}]),n}(r.a.AppRouter),jn=function(e){Rn(o,e);var t=Un(o);function o(){return Ln(this,o),t.apply(this,arguments)}return Nn(o,[{key:"share",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(9),n.e(20)]).then(n.bind(null,1668)).then((function(n){var o=n.ShareView;r.layout.showChildView(z,i.createElement(o,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"viewShared",value:function(e){var t=this;_t.a.getInstance(In.a.FlightShare).getShareLink(e,(function(n){switch(_t.a.releaseInstance(In.a.FlightShare),n.objectTypeId){case xn.a.Video:return t.playSharedVideo(e);default:r.a.ErrorHelper.throw(new An.a("Share view not implemented for objectTypeId: ".concat(n.objectTypeId,".")))}}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(5),n.e(77)]).then(n.bind(null,1659)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(H,i.createElement(r,{shareId:e}))}))}},{key:"name",get:function(){return"Share Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.SHARE}}],[{key:"router",get:function(){return Mn}}]),o}(l);var Fn,Hn=n(1);!function(e){e.Fifo="FifoMemoryCache"}(Fn||(Fn={}));var zn=n(79),Wn=n(14);class qn extends zn.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return Fn.Fifo}removeCacheKey(e){this.cachedkeys=Hn.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||Wn.c.throw(new An.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=Hn.object(this.cachedkeys,this.cachedkeys);let r=[];Hn.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),i=Hn.filter(n,e=>t.test(e));r.push(...i)}),r.length&&(r=Hn.uniq(r),Hn.each(r,e=>{delete this.cache[e],Hn.isFunction(t)&&t(e)}),this.cachedkeys=Hn.without(this.cachedkeys,...r))}}var Gn,$n=n(50),Kn=n(181),Yn=n(27),Jn=n(139);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(Gn||(Gn={}));const Xn={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 Qn extends $n.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 Gn.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=Yn.a.GET);const i=Hn.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===Yn.a.POST||n===Yn.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);const a=$.ajax(o);return Hn.keys(this.successMiddleware).length&&a.done(Hn.values(this.successMiddleware)),Hn.keys(this.errorMiddleware).length&&a.fail(Hn.values(this.errorMiddleware)),a}create(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,Yn.a.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Yn.a.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,Yn.a.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Yn.a.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,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=Kn.a;switch(n.code=e.status,n.message=Xn.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=Jn.a.BadRequest;break;case 401:n.type=Jn.a.Unauthorized;break;case 403:n.type=Jn.a.Forbidden;break;case 404:n.type=Jn.a.NotFound;break;case 500:n.type=Jn.a.InternalServer}return n}}var Zn=n(62),er=n(73),tr=n(114),nr=n(20),rr=n(115),ir=n(51),or=n(30),ar=n(207);class sr extends tr.a{get name(){return nr.a.Language}get channelName(){return or.b.LANGUAGE}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:ir.a.LOCALE,expiryTime:rr.a.STANDARD,bootstrapName:ar.a.LOCALE,callback:n=>{t.locale=n,t.phrases&&Hn.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:ir.a.PHRASES,expiryTime:rr.a.STANDARD,bootstrapName:ar.a.PHRASES,callback:n=>{t.phrases=n,t.locale&&Hn.isFunction(e)&&e(t)}})}}class cr extends r.a.Model{}class lr extends tr.a{get name(){return nr.a.NotificationSocket}get channelName(){return or.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(e){return this.get({callback:e,formatData:e=>new cr(e),resource:"notify",eventPrefix:ir.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:ir.a.NOTIFICATIONS+":count"})}}var ur=n(127),pr=n(9),hr=n(105),dr=n(140);class fr extends r.a.Collection{get model(){return cr}parse(e){return e.data||e}}const gr=(e,t)=>{const n=`/api/domain/v2/objects/${e}/notifications?query={orderbydesc:datecreated}`;if(!t)return n;const{limit:r,cursor:i,before:o}=t,a=[],s=hr.a.buildFilter({limit:r,before:o});return s&&a.push("filter="+s),i&&a.push("cursor="+i),a.length?`${n}&${a.join("&")}`:n},mr=e=>"/api/notifications/v1/notifications/"+e,yr="/api/notifications/v1/notifications",vr="/api/domain/v1/notifications";class br extends tr.a{get name(){return nr.a.Notification}get channelName(){return or.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(e,t,n,r){return this.get({resource:gr(e,t),expiryTime:rr.a.STANDARD,eventPrefix:n,formatData:e=>new fr(e,{parse:!0}),callback:r})}markRead(e,t){return this.update({callback:t,data:{notificationStatus:dr.a.Read},resource:mr(e),eventPrefix:ir.a.NOTIFICATIONS+":read"})}markSeen(e){const t=ur().utc().toISOString();return this.update({callback:e,data:{notificationStatus:dr.a.Seen},resource:`${yr}?to=${t}&notificationStatus=${dr.a.Received}`,eventPrefix:ir.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(e){return this.getCursors(e)}suggestEdit(e,t){return this.create({resource:""+vr,eventPrefix:""+ir.a.SUGGEST_EDIT,callback:t,data:e,successHandler:this.alertService.success(pr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}var _r=n(208),Cr=n(17),Tr=n(251),Sr=n(66),wr=n(59),Er=n(116),kr=n.n(Er);function Ar(e){const{alert:t,svgName:n,svgClassName:r,closeAlert:o}=e,{message:a,heading:s,appLink:c,appLinkText:l,appLinkClassName:u=""}=t,p=Object(Tr.sanitize)(a);return i.createElement(i.Fragment,null,i.createElement("div",{className:"d-inline-block "+kr.a.icon},i.createElement(Sr.a,{svgName:n,className:"svg-container "+r})),i.createElement("div",{className:"pl-2 d-inline-block "+kr.a.alertContent},i.createElement("p",{className:"p-0 m-0 pb-1 "+kr.a.heading},s),i.createElement("p",{className:"p-0 m-0 text-break clamp-4 "+kr.a.message,dangerouslySetInnerHTML:{__html:p}}),!!c&&i.createElement(wr.a,{className:u,appLink:c},l)),i.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:o},"×"))}const xr=e=>{switch(e.type){case Zn.a.Success:return Cr.b.CheckCircleOutline;case Zn.a.Fail:case Zn.a.Warning:return Cr.b.Warning;case Zn.a.Info:default:return Cr.b.Info}};function Ir({alert:e,closeAlert:t}){const[n,r]=i.useState(!0),o=i.useRef();i.useEffect(()=>{n?o.current=window.setTimeout(t,3e3):clearTimeout(o.current)},[n]);const a="text-"+e.type.toLowerCase();return i.createElement("li",{className:"bg-white mt-2 p-2 show clearfix "+kr.a.alertItem,onMouseEnter:()=>r(!1),onMouseLeave:()=>r(!0)},i.createElement(Ar,{alert:e,svgName:xr(e),svgClassName:a,closeAlert:t}))}function Or({alerts:e,removeAlert:t}){return i.createElement("div",{className:kr.a.alertBox},i.createElement(_r.TransitionGroup,{component:"ul",className:kr.a.alertList+" list-unstyled"},e&&e.map((e,n)=>i.createElement(_r.CSSTransition,{key:n,timeout:200,classNames:"alert"},i.createElement(Ir,{alert:e,closeAlert:()=>t(e.id)})))))}var Lr=n(254),Pr=n(190),Nr=n(301);function Rr(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 Dr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=Nr.a.libraries((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),i=y.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&y.a.fetch(this.store.dispatch,n),i.data&&new r.a.Collection(i.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=Nr.a.folder(e,(function(e){return t&&t(new r.a.Model(e))})),i=y.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&y.a.fetch(this.store.dispatch,n),i.data&&new r.a.Model(i.data)}},{key:"name",get:function(){return nr.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&Rr(t.prototype,n),i&&Rr(t,i),e}(),Ur=n(49);function Br(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 Vr=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Ur.a.SERIES),key:"series:".concat(e),success:t}},Mr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=Vr(e,(function(e){return t&&t(new r.a.Model(e))})),i=y.a.getResponse(this.store.getState(),n.key);i.shouldFetch&&y.a.fetch(this.store.dispatch,n);var o=i.data?new r.a.Model(i.data):null;return t&&o&&t(o),o}},{key:"name",get:function(){return nr.a.Series}},{key:"channelName",get:function(){return or.b.SERIES}}])&&Br(t.prototype,n),i&&Br(t,i),e}();function jr(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 Fr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getCurrentUser",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.currentUser(e,t))}},{key:"getToken",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.token(e,t))}},{key:"getWorkspace",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.workspace(e,t))}},{key:"getPermissions",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.permissions(e,t))}},{key:"name",get:function(){return In.a.FlightUser}}])&&jr(t.prototype,n),r&&jr(t,r),e}(),Hr=n(145);function zr(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 Wr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getConfig",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),Hr.a.config(e,t))}},{key:"getVersion",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),Hr.a.version(e,t))}},{key:"name",get:function(){return In.a.FlightConfig}}])&&zr(t.prototype,n),r&&zr(t,r),e}(),qr=n(328);function Gr(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 $r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getShareLink",value:function(e,t,n){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),qr.a.getShareLink(e,t,n))}},{key:"name",get:function(){return In.a.FlightShare}}])&&Gr(t.prototype,n),r&&Gr(t,r),e}();Wn.a;class Kr extends r.a.SilentError{get name(){return"AlertError"}}class Yr extends r.a.SilentError{get name(){return"ErrorPageError"}}var Jr=n(179),Xr=n(334),Qr=n(335),Zr=n(336),ei=n(466),ti=n(467),ni=n(468),ri=n(469);function ii(e){_t.a.getInstance(er.a.ALERT).createAlert({heading:Pr.a.Fail,type:Zn.a.Fail,message:e.message})}function oi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND})}function ai(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.ERROR})}function si(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.DIALOG_ERROR})}var ci=n(103),li=n(80),ui=n(242);class pi extends ui.a{isReactComponent(e){return i&&i.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"),ci.render(t,r[0],()=>n.trigger("show")),this.listenToOnce(this,"unmount:"+e,()=>ci.unmountComponentAtNode(r[0])),this.listenToOnce(this,"before:destroy",()=>ci.unmountComponentAtNode(r[0])))}wrapWithStore(e){return i.createElement(li.Provider,{store:this.options.store},e)}}var hi=n(137),di=n(641),fi=n(212),gi=n(106),mi=n(182),yi=n(48);var vi=n(213),bi=n(43),_i=n(164),Ci=n(85),Ti=n(642),Si=n.n(Ti),wi=n(261),Ei=n.n(wi);class ki extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${Ei.a.notificationIcon} ${Ei.a[this.options.color]}`}get template(){return Si.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:Ei.a,svg:Cr.a.getSvg(Cr.b.Bell),unreadCount:this.model.get("unreadCount")}}}var Ai=n(250),xi=n(247),Ii=n(634),Oi=n(646),Li=n.n(Oi),Pi=n(479),Ni=n.n(Pi),Ri=n(480),Di=n.n(Ri);class Ui extends r.a.View{constructor(e){super(e)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return Li.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:xi.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Ni.a,className:"px-1 py-2",viewOptions:{styles:Di.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=_t.a.getInstance(nr.b.Notification,this),this.appVariables=_t.a.getInstance(Ct.a.NOTIFICATIONS,this)}onData(e){this.collection=e,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Ii.a({collectionPrefix:ir.a.NOTIFICATIONS})}renderNotificationList(){const e=new Ai.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),e=>this.onData(e)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var Bi=n(647),Vi=n.n(Bi),Mi=n(648),ji=n.n(Mi);class Fi extends r.a.View{initialize(){this.appVariables=_t.a.getInstance(Ct.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return Vi.a}regions(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}events(){return{"click .notifications-status-region":"renderNotificationList"}}renderNotificationList(){const e=new Ui({childType:Ai.a.Popover});this.showChildView("notifications",e)}renderNotificationStatus(){const e=_t.a.getInstance(nr.b.Notification),t=new ki({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}viewOptions(){return ji.a}onRender(){this.renderNotificationStatus()}}var Hi=n(632),zi=n(333),Wi=n(337),qi=n(269),Gi=n(75),$i=n(40),Ki=n(94),Yi=n(324),Ji=n(325),Xi=n(309),Qi=n.n(Xi),Zi={settings:{application:m.a.SETTINGS,action:v.a.Settings.HOME},analytics:null,logOut:{application:m.a.DEFAULT,action:v.a.Default.LOG_OUT},logIn:{application:m.a.DEFAULT,action:v.a.Default.LOG_IN}},eo=i.memo((function(e){return i.createElement(Ki.a.Provider,{value:"shared.userOptions"},e.user?i.createElement($i.Dropdown,{className:"cursor-pointer mr-3 position-relative"},i.createElement($i.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat(Qi.a.avatarContainer," no-caret")},i.createElement(Yi.a,{imageUrl:e.user.avatar,imageCdnUrl:e.imageCdnUrl,initials:Ji.a.getInitials(e.user.givenName,e.user.familyName)})),i.createElement($i.Dropdown.Menu,{alignRight:!0,className:Qi.a.dropdownMenu,as:"ul"},i.createElement($i.Dropdown.Item,{as:"span"},i.createElement("div",{className:"m-0"},i.createElement("strong",null,e.user.displayName)),i.createElement("div",{className:"m-0 text-muted"},e.user.customerName)),i.createElement($i.Dropdown.Divider,null),!e.onlyShowSignOut&&i.createElement(i.Fragment,null,i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.settings},i.createElement(Ki.b,{phrase:"settings"})),i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.analytics},i.createElement(Ki.b,{phrase:"analytics"})),i.createElement($i.Dropdown.Item,{as:"a",href:e.supportSiteUrl,target:"_blank"},i.createElement(Ki.b,{phrase:"helpCentre"})),i.createElement($i.Dropdown.Divider,null)),i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.logOut},i.createElement(Ki.b,{phrase:"signOut"})))):i.createElement(wr.a,{appLink:Zi.logIn,className:"btn btn-primary mr-2"},i.createElement(Ki.b,{phrase:"logIn"})))}),(function(e,t){var n,r,i,o,a,s,c,l;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(i=e.user)||void 0===i?void 0:i.avatar)===(null===(o=t.user)||void 0===o?void 0:o.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(s=t.user)||void 0===s?void 0:s.displayName)&&(null===(c=e.user)||void 0===c?void 0:c.customerName)===(null===(l=t.user)||void 0===l?void 0:l.customerName)})),to=n(188);function no(e){const t=i.useRef(null),n=i.useCallback(e=>{e&&(t.current=e)},[]),r=()=>{t.current.value=null,t.current.click(null)};return i.createElement(i.Fragment,null,e.svgName?i.createElement(to.a,{svgName:e.svgName,className:e.className,onClick:r},e.children):i.createElement("button",{type:"button",className:e.className,onClick:r},e.children),i.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:n,onChange:t=>e.onFileSelect(t.target.files)}))}no.defaultProps={className:"btn btn-primary"};var ro=i.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(fi.a)(In.b.VideoUpload);return i.createElement(no,{svgName:Cr.b.Upload,className:"btn btn-secondary",mimeType:"video/*",onFileSelect:function(e){return r.addFiles(e,{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Start,descriptor:yi.a.mapInteractionType(d.InteractionType.FileSelect),location:d.LocationContext.TopNav})}},!n&&i.createElement(Ki.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"}))})),io=n(162),oo=n.n(io),ao=n(314);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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(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 co(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 co(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 lo(e){var t=Object(Gi.a)(bi.a.MDDown),n=t?oo.a.logoContainerSm:oo.a.logoContainerLg,r={className:"navbar-brand text-hide align-top ".concat(n," d-inline-block'")};return e.isLink&&(r.href="/"),i.createElement("a",Object.assign({},r),t?i.createElement(qi.b,null):i.createElement(qi.a,null))}function uo(e){var t=so(i.useState(!1),2),n=t[0],r=t[1],o=y.a.useBasicFetch(_.a.currentUser(),{optimize:!0}).data,a=y.a.useBasicFetch(Hr.a.config(),{optimize:!0}),s=y.a.useBasicFetch(zi.a.presentation()),c=Object(_i.a)().hasPermissions,l=Object(vi.a)(),u=Object(Gi.a)(bi.a.SMDown),p=Object(Gi.a)(bi.a.MDDown),h=Object(Gi.a)(bi.a.LGDown);i.useEffect((function(){!p&&n&&r(!1)}),[p,l,n]);var d=so(Object(gi.a)(Gt.a.SEARCH_BAR_LOCATION,!0),1)[0];e.showNav||(d=!1);var f,g=d&&h;return i.createElement("nav",{className:"navbar navbar-expanded w-100 ".concat(oo.a.nav)},!n&&i.createElement("div",{className:"justify-content-start"},e.showNav&&i.createElement(Sr.a,{svgName:Cr.b.Handle,className:"".concat(oo.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),i.createElement(lo,{isLink:e.showNav})),d?p&&!n?i.createElement(ao.a,{className:"ml-auto mr-3",onClick:function(){return r(!0)}},i.createElement(Sr.a,{svgName:Cr.b.Search})):i.createElement("div",{className:n?"w-100 pr-3":"flex-fill mr-3"},i.createElement(Be.a,{className:"container ".concat(oo.a.searchBarNavContainer),view:Hi.a,options:{model:Ci.a.get("search",{ctor:Wi.a}),disableMask:!0,presentationId:null===(f=s.data)||void 0===f?void 0:f.id,showCloseButton:n,onClickClose:function(){return r(!1)}}})):i.createElement(i.Fragment,null),!n&&i.createElement("div",{className:"d-flex align-items-center justify-content-end ".concat(oo.a.actionButtons)},e.showNav&&o&&i.createElement(i.Fragment,null,c(k.a.UploadVideos)&&!u&&i.createElement("div",{className:"mr-3"},i.createElement(ro,{hideButtonText:g})),i.createElement(Be.a,{view:Fi,className:"mx-n2 pr-3"})),!!a.data&&i.createElement(eo,{user:o,imageCdnUrl:a.data.imageCdnUrl,supportSiteUrl:a.data.supportSiteUrl,onlyShowSignOut:!e.showNav})))}var po,ho=n(218);!function(e){e.Discover="Discover",e.Playlists="Playlists",e.MyVideos="MyVideos",e.FavouritedVideos="FavouritedVideos",e.WatchHistory="WatchHistory",e.Classrooms="Classrooms",e.Classroom="Classroom",e.Settings="Settings"}(po||(po={}));var fo=n(338),go=n(46),mo=n(166);const yo="d-inline-block svg-container",vo="span";function bo(e){const{children:t,className:n=yo,tagName:r=vo,size:o=Sr.b.Standard,onClick:a,title:s,tooltipPlacement:c="right"}=e,l=r,u={className:`${n} ${o}`,onClick:go.a.isFunction(a)?a:null};return s?i.createElement(mo.a,{title:s,placement:c},i.createElement(l,Object.assign({},u),t)):i.createElement(l,Object.assign({},u),t)}var _o,Co=n(42),To=n.n(Co);function So(e){var t=e.collapsed&&e.active,n=e.icon,r="".concat(To.a.leftNavAnchor," ").concat(e.className," py-2 ");return r+=!e.collapsed||e.active?To.a.active:To.a.iconGrey,!e.collapsed&&e.active&&(r+=" "+To.a.bgGrey),o.a.createElement(wr.a,{className:r,appLink:e.appLink},o.a.createElement("span",{className:"".concat(To.a.leftNavIcon)},e.icon?o.a.createElement(bo,{size:Sr.b.Large},o.a.createElement(n,null)):o.a.createElement(Sr.a,{svgName:e.svgName,size:Sr.b.Large})),o.a.createElement("span",{className:"".concat(To.a.leftNavText," ").concat(t?To.a.highlightText:"")},e.name))}function wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eo,ko=pr.a.encloseNamespace("shared.leftNav"),Ao=(wo(_o={},po.Discover,{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}),wo(_o,po.Playlists,{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}),wo(_o,po.MyVideos,{application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS}),wo(_o,po.FavouritedVideos,{application:m.a.DEFAULT,action:v.a.Default.FAVOURITE_VIDEOS}),wo(_o,po.Classrooms,{application:m.a.CLASSROOMS,action:v.a.Classrooms.HOME}),wo(_o,po.Classroom,{application:m.a.CLASSROOMS,action:v.a.Classrooms.CLASSROOM}),wo(_o,po.WatchHistory,{application:m.a.WATCH_HISTORY,action:v.a.WatchHistory.HOME}),wo(_o,po.Settings,{application:m.a.SETTINGS,action:v.a.Settings.HOME}),_o);function xo(e){var t=e.activeItem,n=e.dynamicActiveId,r=e.hideFavouritedVideos,i=e.favouritedClassrooms,a=e.hideClassrooms;return o.a.createElement("nav",{className:"".concat(To.a.leftNav," ").concat(To.a.leftNavExpanded," pt-3")},o.a.createElement(ho.Scrollbars,{height:"100%"},o.a.createElement(So,{key:po.Discover,name:ko("discover"),appLink:Ao[po.Discover],className:To.a.discover,svgName:Cr.b.Compass,active:t===po.Discover}),o.a.createElement(So,{key:po.Playlists,name:ko("playlists"),appLink:Ao[po.Playlists],className:To.a.playlists,svgName:Cr.b.Playlist,active:t===po.Playlists}),o.a.createElement(So,{key:po.MyVideos,name:ko("myVideos"),appLink:Ao[po.MyVideos],className:To.a.myVideos,svgName:Cr.b.Video,active:t===po.MyVideos}),!r&&o.a.createElement(So,{key:po.FavouritedVideos,name:ko("favouritedVideos"),appLink:Ao[po.FavouritedVideos],className:To.a.favouritedVideos,svgName:Cr.b.Heart,active:t===po.FavouritedVideos}),o.a.createElement("hr",null),!a&&o.a.createElement(o.a.Fragment,null,o.a.createElement(So,{key:po.Classrooms,name:ko("classrooms"),appLink:Ao[po.Classrooms],className:To.a.classrooms,icon:fo.a,active:t===po.Classrooms}),(null==i?void 0:i.length)?i.map((function(e){return o.a.createElement(So,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Ao[po.Classroom]),{args:[e.id]}),className:To.a.classroom,svgName:Cr.b.Star,active:t===po.Classroom&&e.id===n})})):o.a.createElement(o.a.Fragment,null)),o.a.createElement("div",{className:To.a.leftNavBottom},o.a.createElement(So,{key:po.WatchHistory,name:ko("watchHistory"),appLink:Ao[po.WatchHistory],className:To.a.watchHistory,svgName:Cr.b.History,active:t===po.WatchHistory}),o.a.createElement(So,{key:po.Settings,name:ko("settings"),appLink:Ao[po.Settings],className:To.a.settings,svgName:Cr.b.Cog,active:t===po.Settings}))))}function Io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=pr.a.encloseNamespace("shared.leftNav"),Lo=(Io(Eo={},po.Discover,{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}),Io(Eo,po.Playlists,{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}),Io(Eo,po.MyVideos,{application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS}),Io(Eo,po.FavouritedVideos,{application:m.a.DEFAULT,action:v.a.Default.FAVOURITE_VIDEOS}),Io(Eo,po.WatchHistory,{application:m.a.WATCH_HISTORY,action:v.a.WatchHistory.HOME}),Eo);function Po(e){var t=e.activeItem,n=e.hideFavouritedVideos;return o.a.createElement("nav",{className:"".concat(To.a.leftNav," ").concat(To.a.leftNavCollapsed," pt-3")},o.a.createElement(ho.Scrollbars,{height:"100%"},o.a.createElement(So,{key:po.Discover,name:Oo("discover"),appLink:Lo[po.Discover],className:To.a.discover,svgName:Cr.b.Compass,active:t===po.Discover,collapsed:!0}),o.a.createElement(So,{key:po.Playlists,name:Oo("playlists"),appLink:Lo[po.Playlists],className:To.a.playlists,svgName:Cr.b.Playlist,active:t===po.Playlists,collapsed:!0}),o.a.createElement(So,{key:po.MyVideos,name:Oo("myVideos"),appLink:Lo[po.MyVideos],className:To.a.myVideos,svgName:Cr.b.Video,active:t===po.MyVideos,collapsed:!0}),!n&&o.a.createElement(So,{key:po.FavouritedVideos,name:Oo("favouritedVideos"),appLink:Lo[po.FavouritedVideos],className:To.a.favouritedVideos,svgName:t===po.FavouritedVideos?Cr.b.Heart:Cr.b.HeartOutline,active:t===po.FavouritedVideos,collapsed:!0}),o.a.createElement(So,{key:po.WatchHistory,name:Oo("watchHistory"),appLink:Lo[po.WatchHistory],className:To.a.watchHistory,svgName:Cr.b.History,active:t===po.WatchHistory,collapsed:!0})))}var No,Ro,Do=n(87),Uo=n(321);function Bo(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vo(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 Vo(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 Vo(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 Mo(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[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Ro||(Ro={}));var jo=(Mo(No={},po.Discover,Do.a.getDiscoverAppLinks()),Mo(No,po.Playlists,Do.a.getPlaylistAppLinks()),Mo(No,po.MyVideos,Do.a.getMyVideosAppLinks()),Mo(No,po.FavouritedVideos,Do.a.getFavouritedVideosAppLinks()),Mo(No,po.WatchHistory,Do.a.getWatchHistoryAppLinks()),Mo(No,po.Classrooms,Do.a.getClassroomsAppLinks()),Mo(No,po.Classroom,Do.a.getClassroomAppLinks()),Mo(No,po.Settings,Do.a.getSettingsAppLinks()),No);function Fo(e){var t,n=Bo(o.a.useState(null),2),r=n[0],i=n[1],a=Bo(o.a.useState([]),2),s=a[0],c=a[1],l=y.a.useBasicFetch(Uo.a.getAll()),u=Object(_i.a)().hasPermissions;if(o.a.useEffect((function(){var e,t;(null===(t=null===(e=l.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&c(l.data.data.filter((function(e){return e.isFavourited})))}),[l.data]),o.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(jo).find((function(n){t||jo[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=po[n])})),i(t)}}),[e.activeAppLink]),e.navState===Ro.Hidden)return o.a.createElement(o.a.Fragment,null);var p=(null===(t=e.activeAppLink)||void 0===t?void 0:t.args)&&e.activeAppLink.args[0];return e.navState===Ro.Collapsed?o.a.createElement(Po,{activeItem:r,hideFavouritedVideos:!u(k.a.FavouriteVideos)}):o.a.createElement(xo,{activeItem:r,dynamicActiveId:p,favouritedClassrooms:s,hideClassrooms:!u(k.a.ViewClassrooms),hideFavouritedVideos:!u(k.a.FavouriteVideos)})}var Ho=n(323);function zo(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(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 Wo(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 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}var qo=n(638),Go=n(267),$o=n.n(Go);function Ko(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yo(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 Yo(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 Yo(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 Jo(e){return{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO,args:[e.id,Ye.a.slugify(e.name)],params:Xe.a.getVideoProgress(e)?{t:Math.floor(Xe.a.getVideoProgress(e))}:{}}}function Xo(e){var t,n=e.video;return i.createElement("h2",{className:"mb-0 h6"},!!n.series&&i.createElement(Ho.a,{className:"d-block",video:n,appLink:(t=n.series,{application:m.a.DEFAULT,action:v.a.Default.SERIES,args:[t.id,Ye.a.slugify(t.name)]})}),i.createElement(wr.a,{appLink:Jo(n)},n.name))}function Qo(){!function(){var e,t,n,r,i=y.a.useBasicFetch(Hr.a.config()),a=o.a.useRef(),s=zo(Object(gi.a)(Gt.a.WEB_PLAYER_DATA,{playerRef:a,playerApiUrl:(null===(e=i.data)||void 0===e?void 0:e.playerApiUrl)||"",webPlayerUrl:(null===(t=i.data)||void 0===t?void 0:t.webPlayerUrl)||"",viewKey:null,video:null,playerInViewport:!0,allowFloatingPlayer:!1,isOnPlayPage:!1,startTime:0,playPagePlayerContainerRef:null}),2)[1];o.a.useEffect((function(){var e;(null===(e=i.data)||void 0===e?void 0:e.playerApiUrl)&&s("playerApiUrl",i.data.playerApiUrl)}),[null===(n=i.data)||void 0===n?void 0:n.playerApiUrl]),o.a.useEffect((function(){var e;(null===(e=i.data)||void 0===e?void 0:e.webPlayerUrl)&&s("webPlayerUrl",i.data.webPlayerUrl)}),[null===(r=i.data)||void 0===r?void 0:r.webPlayerUrl])}();var e=Ko(Object(gi.a)(Gt.a.WEB_PLAYER_DATA),2),t=e[0],n=e[1],a=i.useRef(),s=i.useRef(),c=Object(Gi.a)(bi.a.XS),l=t.allowFloatingPlayer&&!c;return function(e,t,n,r){i.useEffect((function(){var i,o=null===(i=e.playPagePlayerContainerRef)||void 0===i?void 0:i.current,a=n.current,s=null==t?void 0:t.current;if(s){var c=e.playerInViewport?a:o,l=e.playerInViewport?o:a;if(r||(c=a,l=o),c&&c===o){var u=c.getBoundingClientRect();c.style.paddingBottom="".concat(u.height/u.width*100,"%")}l&&(l===o&&(l.style.paddingBottom=null),function(e,t){var n;t.firstChild||t.appendChild(s),null===(n=null==e?void 0:e.firstChild)||void 0===n||n.remove()}(c,l))}}),[e.playerInViewport,e.playPagePlayerContainerRef,n,t,r])}(t,s,a,l),(null==t?void 0:t.video)&&(null==t?void 0:t.viewKey)?i.createElement("div",{className:$o.a.floatingPlayer},i.createElement(_r.CSSTransition,{timeout:400,in:l&&!t.playerInViewport,classNames:"floating-player"},i.createElement("div",{className:"d-none shadow"},i.createElement("div",{ref:a},i.createElement(qo.a,{viewKey:t.viewKey,startTime:t.startTime,playerApiUrl:t.playerApiUrl,webPlayerUrl:t.webPlayerUrl,videoId:t.video.id,autoplay:!0,innerRef:s,onReady:function(e){t.playerRef.current=e},onDispose:function(){t.playerRef.current=null},onClickCreateClip:function(){r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.CREATE_CLIP,args:[t.video.id]})}})),i.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},i.createElement(Xo,{video:t.video}),i.createElement("span",{className:"".concat($o.a.buttons," flex-shrink-1")},i.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){yi.a.logUserAction({id:t.video.id},{location:d.LocationContext.FloatingPlayer,entity:d.EntityType.Video,actionType:d.UserAction.Click,descriptor:d.ClickDescriptor.Close}),n("allowFloatingPlayer",!1),t.isOnPlayPage||n("video",null)}},i.createElement(Sr.a,{svgName:Cr.b.Close})),i.createElement(wr.a,{appLink:Jo(t.video),onClick:function(){yi.a.logUserAction({id:t.video.id},{location:d.LocationContext.FloatingPlayer,entity:d.EntityType.Video,actionType:d.UserAction.Click,descriptor:d.ClickDescriptor.Open})}},!t.isOnPlayPage&&i.createElement(Sr.a,{svgName:Cr.b.NewWindow,className:"".concat($o.a.flippedIcon," d-inline-block svg-container float-right")}))))))):i.createElement(i.Fragment,null)}var Zo=n(331),ea=n(211),ta=n.n(ea);function na(){return i.createElement(i.Fragment,null,i.createElement("div",{className:ta.a.dropMask}),i.createElement("div",{className:ta.a.dropContent},i.createElement("div",{className:ta.a.border},i.createElement("h1",null,i.createElement(Ki.b,{namespace:"shared.dragMask",phrase:"message"})))),i.createElement("div",{className:ta.a.dropArea}))}var ra=n(117),ia=n.n(ra);function oa(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(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 aa(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 aa(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 sa=function(e){var t=e.showNav,n=e.contentChild,r=e.popupChild,o=e.alertChild,a=e.activeAppLink,s=e.appLinkIsRoute,c=oa(i.useState(!1),2),l=c[0],u=c[1];Object(Zo.a)(),function(){function e(n){"Tab"===n.key&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",t))}function t(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",t),window.addEventListener("keydown",e)}Object(i.useEffect)(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}();var p=Object(_i.a)().hasPermissions,h=Object(vi.a)(),f=h===bi.a.XS,g=h===bi.a.SM,m=h===bi.a.XXL,y=!m&&h!==bi.a.XL,v=oa(Object(gi.a)(Gt.a.WEB_PLAYER_DATA),1)[0];i.useEffect((function(){u(!m)}),[m]);var b=function(e,t,n,r){return r?t?{state:e?Ro.Hidden:Ro.Open,showMask:!e,contentClass:ia.a.hiddenNavContent}:n?{state:e?Ro.Collapsed:Ro.Open,showMask:!e,contentClass:ia.a.collapsedNavContent}:{state:e?Ro.Collapsed:Ro.Open,showMask:!1,contentClass:e?ia.a.collapsedNavContent:ia.a.openNavContent}:{state:Ro.Hidden,showMask:!1,contentClass:ia.a.hiddenNavContent}}(l,f,g,t),_=Object(fi.a)(In.b.VideoUpload),C=i.useCallback((function(e){_.addFiles(e,{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Start,descriptor:yi.a.mapInteractionType(d.InteractionType.DragDrop),location:d.LocationContext.VideoUpload})}),[]),T=Object(di.useDropzone)({onDrop:C,noClick:!0,noKeyboard:!0}),S=T.getRootProps,w=T.getInputProps,E=T.isDragActive,A="d-flex flex-column align-items-end",x="";return(null==v?void 0:v.playerInViewport)?x=ia.a.fixedBottomRightContainer:A+=" ".concat(ia.a.fixedBottomRightContainer),i.createElement("div",Object.assign({},S()),i.createElement(uo,{toggleLeftNav:function(){u(!l)},showNav:t}),t&&i.createElement(Fo,{navState:b.state,activeAppLink:a,appLinkIsRoute:s}),i.createElement("div",{className:"".concat(ia.a.content," ").concat(b.contentClass)},i.createElement("div",{className:"".concat(y?"container-fluid":"container")},n)),r,b.showMask&&i.createElement("div",{className:"modal-backdrop show ".concat(ia.a.mask)}),i.createElement("div",{className:A},!!o&&i.createElement("div",{className:x},o),i.createElement(Qo,null)),p(k.a.UploadVideos)&&i.createElement(i.Fragment,null,E&&i.createElement(na,null),i.createElement("input",Object.assign({},w()))))};function ca(e){return i.createElement(li.Provider,{store:e.store},i.createElement(mi.b,{defaultTitle:""},i.createElement(sa,Object.assign({},e))))}var la=n(673),ua=n.n(la);function pa(e){return(pa="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 ha(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 da(e,t,n){return(da="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=ya(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 fa(e,t){return(fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ga(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=ya(e);if(t){var i=ya(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"!==pa(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 ya(e){return(ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var va=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&&fa(e,t)}(s,e);var t,n,o,a=ga(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).childComponents={},t}return t=s,o=[{key:"getCacheKey",value:function(e){return"".concat(f,":").concat(e.showNav)}}],(n=[{key:"initialize",value:function(){var e;this.activeAppLink=null===(e=hi.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(c.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange)}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[H],popupChild:this.childComponents[z],alertChild:this.childComponents[W],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute}}},{key:"onRouteChange",value:function(e,t){this.activeAppLink=e,this.appLinkIsRoute=t.isAppRoute}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(z)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,e===H&&$(window).scrollTop(0),this.renderLayout()}},{key:"renderLayout",value:function(){da(ya(s.prototype),"showChildView",this).call(this,"layout",i.createElement(ca,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return ua.a}}])&&ha(t.prototype,n),o&&ha(t,o),s}(pi);function ba(e){var t=e.contentChild;return i.createElement(i.Fragment,null,t)}function _a(e){var t=e.store;return i.createElement(li.Provider,{store:t},i.createElement(mi.b,{defaultTitle:""},i.createElement(ba,Object.assign({},e))))}var Ca=n(674),Ta=n.n(Ca);function Sa(e){return(Sa="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 wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(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 ka(e,t,n){return(ka="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=Oa(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 Aa(e,t){return(Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(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=Oa(e);if(t){var i=Oa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ia(this,n)}}function Ia(e,t){return!t||"object"!==Sa(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 Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var La=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&&Aa(e,t)}(a,e);var t,n,r,o=xa(a);function a(){var e;return wa(this,a),(e=o.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return g}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[H],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(z)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){ka(Oa(a.prototype),"showChildView",this).call(this,"layout",i.createElement(_a,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return Ta.a}}])&&Ea(t.prototype,n),r&&Ea(t,r),a}(pi);var Pa=n(113);class Na{constructor(e){this.value=e}increment(){this.value+=1}decrement(){this.value-=1}getValue(){return this.value}}class Ra extends r.a.Model{get idAttribute(){return"masterVideoId"}}class Da extends r.a.Collection{get model(){return Ra}}var Ua,Ba=n(141);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Ua||(Ua={}));var Va=n(57);class Ma extends r.a.Service{get name(){return nr.b.PendingItems}get channelName(){return or.c.PENDING_ITEMS}initialize(){this.videoDataService=_t.a.getInstance(nr.a.Video,this),this.videoUploadDataService=_t.a.getInstance(nr.a.VideoUpload,this)}clearPendingItem(e,t){switch(e.get("pendingProcessStatus")){case Ba.a.Completed:case Ba.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.updateViewModel(),this.videoDataService.clearVideoCache(),Hn.isFunction(t)&&t()});break;case Ba.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.videoDataService.clearVideoCache(),this.updateViewModel(),Hn.isFunction(t)&&t()})}}forceFetchPendingItems(e){this.fetchPendingItems(e)}retryPendingItem(e,t){this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:t})})}itemStatusChanged(){a.Radio.channel(this.channelName).trigger(Va.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new Da,this.listenTo(this.pendingItems,"change:foregroundComplete",e=>{if(!e.get("foregroundComplete"))return;this.itemStatusChanged();e.get("video")&&a.Radio.channel(this.channelName).trigger(Va.a.PENDING_ITEM_READY_TO_WATCH,e)}),this.listenTo(this.pendingItems,"remove",e=>{e.get("clearing")||this.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),e=>{e.get("status")===Ba.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(e={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(t=>{const n=Hn.map(t,e=>e.masterVideoId.toString()),i=n=>{Hn.each(t,e=>{const t=n.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Ua.Processing&&t.set("status",Ua.Published))}),this.pendingItems.set(t),this.updateViewModel(),e.resetTimeout&&window.setTimeout(Hn.bind(this.fetchPendingItems,this),this.getTimeoutLength()),Hn.isFunction(e.callback)&&e.callback()};n.length?this.videoDataService.getVideos(n,i):i(new r.a.Collection)})}updateViewModel(){const e=Ci.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void e.set({progress:0,items:0});const t=this.pendingItems.where(e=>e.get("pendingProcessStatus")>=0);let n=0;Hn.each(t,e=>n+=e.get("foregroundProgress"));const r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}getTimeoutLength(){return this.pendingItems.any(e=>e.get("pendingProcessStatus")===Ba.a.Processing)?5e3:3e4}}var ja=n(256);class Fa extends r.a.Service{constructor(){super()}get name(){return nr.b.Notification}initDataServices(){this.notificationDataService=_t.a.getInstance(nr.a.Notification,this),this.notificationSocketService=_t.a.getInstance(nr.a.NotificationSocket,this),this.userDataService=_t.a.getInstance(nr.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const e=ir.a.NOTIFICATIONS;this.listenTo(or.b.NOTIFICATIONS_SOCKET,e+":new:sync",this.addNewNotification),this.listenTo(or.b.NOTIFICATIONS_SOCKET,e+":count:sync",this.updateUnreadCount),this.listenTo(or.b.NOTIFICATIONS,e+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(or.a.NOTIFICATIONS,ja.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(e){this.userDataService.getCurrentUser(t=>{this.notificationDataService.getNotifications(t.id,null,ir.a.NOTIFICATIONS,t=>{t.add(e,{at:0})})})}updateUnreadCount(e=0){Ci.a.get(ir.a.NOTIFICATIONS).set("unreadCount",e)}getNotifications(e,t,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,e,t.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),Ci.a.get(ir.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(e){this.notificationDataService.markRead(e)}getNotificationsCursors(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}var Ha,za,Wa=n(54),qa=n(101),Ga=n(675),$a=n(8),Ka=(Ha=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}Ha(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ya=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return Ka(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Wa.a):e.method?e.url?new Promise((function(n,r){var i=new XMLHttpRequest;i.open(e.method,e.url,!0),i.withCredentials=!0,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var o=e.headers;o&&Object.keys(o).forEach((function(e){i.setRequestHeader(e,o[e])})),e.responseType&&(i.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){i.abort(),r(new Wa.a)}),e.timeout&&(i.timeout=e.timeout),i.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new qa.b(i.status,i.statusText,i.response||i.responseText)):r(new Wa.b(i.statusText,i.status))},i.onerror=function(){t.logger.log($a.a.Warning,"Error from HTTP request. "+i.status+": "+i.statusText+"."),r(new Wa.b(i.statusText,i.status))},i.ontimeout=function(){t.logger.log($a.a.Warning,"Timeout from HTTP request."),r(new Wa.c)},i.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(qa.a),Ja=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xa=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Ya(t):n.httpClient=new Ga.a(t),n}return Ja(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Wa.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(qa.a),Qa=n(676);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(za||(za={}));var Za,es=n(22),ts=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new es.d(this,e)},e}(),ns=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},rs=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Za||(Za={}));var is,os,as=function(){function e(e,t,n,r){var i=this;es.a.isRequired(e,"connection"),es.a.isRequired(t,"logger"),es.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new Qa.a,this.connection.onreceive=function(e){return i.processIncomingData(e)},this.connection.onclose=function(e){return i.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Za.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:za.Ping})}return e.create=function(t,n,r,i){return new e(t,n,r,i)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Za.Disconnected&&this.connectionState!==Za.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return ns(this,void 0,void 0,(function(){var e;return rs(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Za.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Za.Connecting,this.logger.log($a.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Za.Connected,this.connectionStarted=!0,this.logger.log($a.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Za.Disconnected,this.logger.log($a.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return ns(this,void 0,void 0,(function(){var e,t,n,r=this;return rs(this,(function(i){switch(i.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log($a.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return i.sent(),this.logger.log($a.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(i.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=i.sent(),this.logger.log($a.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw i.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return ns(this,void 0,void 0,(function(){var e;return rs(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Za.Disconnected?(this.logger.log($a.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Za.Disconnecting?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Za.Disconnecting,this.logger.log($a.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log($a.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i,o=this.replaceStreamingParams(n),a=o[0],s=o[1],c=this.createStreamInvocation(e,n,s),l=new ts;return l.cancelCallback=function(){var e=t.createCancelInvocation(c.invocationId);return delete t.callbacks[c.invocationId],i.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[c.invocationId]=function(e,t){t?l.error(t):e&&(e.type===za.Completion?e.error?l.error(new Error(e.error)):l.complete():l.next(e.item))},i=this.sendWithProtocol(c).catch((function(e){l.error(e),delete t.callbacks[c.invocationId]})),this.launchStreams(a,i),l},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),i=r[0],o=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,o));return this.launchStreams(i,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.replaceStreamingParams(n),o=i[0],a=i[1],s=this.createInvocation(e,n,!1,a),c=new Promise((function(e,n){t.callbacks[s.invocationId]=function(t,r){r?n(r):t&&(t.type===za.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(s).catch((function(e){n(e),delete t.callbacks[s.invocationId]}));t.launchStreams(o,r)}));return c},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case za.Invocation:this.invokeClientMethod(r);break;case za.StreamItem:case za.Completion:var i=this.callbacks[r.invocationId];i&&(r.type===za.Completion&&delete this.callbacks[r.invocationId],i(r));break;case za.Ping:break;case za.Close:this.logger.log($a.a.Information,"Close message received from server.");var o=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(o):this.stopPromise=this.stopInternal(o);break;default:this.logger.log($a.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var i="Error parsing handshake response: "+e;this.logger.log($a.a.Error,i);var o=new Error(i);throw this.handshakeRejecter(o),o}if(n.error){i="Server returned handshake error: "+n.error;this.logger.log($a.a.Error,i);o=new Error(i);throw this.handshakeRejecter(o),o}return this.logger.log($a.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return ns(e,void 0,void 0,(function(){return rs(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Za.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log($a.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log($a.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log($a.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log($a.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Za.Disconnecting?this.completeClose(e):this.connectionState===Za.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Za.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Za.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log($a.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return ns(this,void 0,void 0,(function(){var t,n,r,i,o,a=this;return rs(this,(function(s){switch(s.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(i=this.getNextRetryDelay(n++,0,r)))return this.logger.log($a.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Za.Reconnecting,e?this.logger.log($a.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log($a.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log($a.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Za.Reconnecting)return this.logger.log($a.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}s.label=1;case 1:return null===i?[3,7]:(this.logger.log($a.a.Information,"Reconnect attempt number "+n+" will start in "+i+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,i)}))]);case 2:if(s.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Za.Reconnecting)return this.logger.log($a.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(s.sent(),this.connectionState=Za.Connected,this.logger.log($a.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log($a.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return o=s.sent(),this.logger.log($a.a.Information,"Reconnect attempt failed because of error '"+o+"'."),this.connectionState!==Za.Reconnecting?(this.logger.log($a.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=o instanceof Error?o:new Error(o.toString()),i=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log($a.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log($a.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:za.Invocation};var i=this.invocationId;return this.invocationId++,{arguments:t,invocationId:i.toString(),streamIds:r,target:e,type:za.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var i;i=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,i))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var i in e)r(i)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];if(this.isObservable(i)){var o=this.invocationId;this.invocationId++,t[o]=i,n.push(o.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:za.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:za.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:za.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:za.Completion}:{invocationId:e,result:n,type:za.Completion}},e}(),ss=[0,2e3,1e4,3e4,null],cs=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):ss}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(is||(is={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(os||(os={}));var ls=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),us=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ps=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},hs=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new ls,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return us(this,void 0,void 0,(function(){var n,r,i,o;return ps(this,(function(a){switch(a.label){case 0:if(es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.url=e,this.logger.log($a.a.Trace,"(LongPolling transport) Connecting."),t===os.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===os.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),i=e+"&_="+Date.now(),this.logger.log($a.a.Trace,"(LongPolling transport) polling: "+i+"."),[4,this.httpClient.get(i,n)];case 2:return 200!==(o=a.sent()).statusCode?(this.logger.log($a.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new Wa.b(o.statusText||"",o.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return us(this,void 0,void 0,(function(){return ps(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return us(this,void 0,void 0,(function(){var n,r,i,o;return ps(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log($a.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(i=a.sent()).statusCode?(this.logger.log($a.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==i.statusCode?(this.logger.log($a.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new Wa.b(i.statusText||"",i.statusCode),this.running=!1):i.content?(this.logger.log($a.a.Trace,"(LongPolling transport) data received. "+Object(es.f)(i.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(i.content)):this.logger.log($a.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return o=a.sent(),this.running?o instanceof Wa.c?this.logger.log($a.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=o,this.running=!1):this.logger.log($a.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+o.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log($a.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return us(this,void 0,void 0,(function(){return ps(this,(function(t){return this.running?[2,Object(es.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return us(this,void 0,void 0,(function(){var e,t;return ps(this,(function(n){switch(n.label){case 0:this.logger.log($a.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log($a.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log($a.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log($a.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log($a.a.Trace,e),this.onclose(this.closeError)}},e}(),ds=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},fs=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},gs=function(){function e(e,t,n,r,i){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=i,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ds(this,void 0,void 0,(function(){var n,r=this;return fs(this,(function(i){switch(i.label){case 0:return es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.logger.log($a.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var o=!1;if(t===os.Text){var a;if(es.c.isBrowser||es.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var s=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:s}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log($a.a.Trace,"(SSE transport) data received. "+Object(es.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");o?r.close(t):i(t)},a.onopen=function(){r.logger.log($a.a.Information,"SSE connected to "+r.url),r.eventSource=a,o=!0,n()}}catch(e){return void i(e)}}else i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return ds(this,void 0,void 0,(function(){return fs(this,(function(t){return this.eventSource?[2,Object(es.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),ms=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ys=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},vs=function(){function e(e,t,n,r,i){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=i,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ms(this,void 0,void 0,(function(){var n,r=this;return ys(this,(function(i){switch(i.label){case 0:return es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.logger.log($a.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var o;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),s=!1;es.c.isNode&&a&&(o=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),o||(o=new r.webSocketConstructor(e)),t===os.Binary&&(o.binaryType="arraybuffer"),o.onopen=function(t){r.logger.log($a.a.Information,"WebSocket connected to "+e+"."),r.webSocket=o,s=!0,n()},o.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),i(t)},o.onmessage=function(e){r.logger.log($a.a.Trace,"(WebSockets transport) data received. "+Object(es.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},o.onclose=function(e){if(s)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),i(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log($a.a.Trace,"(WebSockets transport) sending data. "+Object(es.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log($a.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),bs=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},_s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Cs=null,Ts=null;if(es.c.isNode){var Ss=require;Cs=Ss("ws"),Ts=Ss("eventsource")}var ws=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,es.a.isRequired(e,"url"),this.logger=Object(es.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,es.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?es.c.isNode&&!t.WebSocket&&Cs&&(t.WebSocket=Cs):t.WebSocket=WebSocket,es.c.isNode||"undefined"==typeof EventSource||t.EventSource?es.c.isNode&&!t.EventSource&&void 0!==Ts&&(t.EventSource=Ts):t.EventSource=EventSource,this.httpClient=t.httpClient||new Xa(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return bs(this,void 0,void 0,(function(){var t;return _s(this,(function(n){switch(n.label){case 0:return e=e||os.Binary,es.a.isIn(e,os,"transferFormat"),this.logger.log($a.a.Debug,"Starting connection with transfer format '"+os[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log($a.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log($a.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Es(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return bs(this,void 0,void 0,(function(){var t=this;return _s(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return bs(this,void 0,void 0,(function(){var t;return _s(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log($a.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log($a.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,i,o,a;return _s(this,(function(s){switch(s.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,s.label=1;case 1:return s.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==is.WebSockets?[3,3]:(this.transport=this.constructTransport(is.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return s.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,i=function(){var e;return _s(this,(function(i){switch(i.label){case 0:return[4,o.getNegotiationResponse(t)];case 1:if(n=i.sent(),"Disconnecting"===o.connectionState||"Disconnected"===o.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,o.accessTokenFactory=function(){return e}),r++,[2]}}))},o=this,s.label=6;case 6:return[5,i()];case 7:s.sent(),s.label=8;case 8:if(n.url&&r<100)return[3,6];s.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:s.sent(),s.label=11;case 11:return this.transport instanceof hs&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log($a.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=s.sent(),this.logger.log($a.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return _s(this,(function(c){switch(c.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=c.sent())&&((t={}).Authorization="Bearer "+r,n=t),c.label=2;case 2:i=this.resolveNegotiateUrl(e),this.logger.log($a.a.Debug,"Sending negotiation request: "+i+"."),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.httpClient.post(i,{content:"",headers:n})];case 4:return 200!==(o=c.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+o.statusCode))]:((!(a=JSON.parse(o.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return s=c.sent(),this.logger.log($a.a.Error,"Failed to complete negotiation with the server: "+s),[2,Promise.reject(s)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return bs(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,p,h,d,f;return _s(this,(function(g){switch(g.label){case 0:return i=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log($a.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(i,r)]):[3,2];case 1:return g.sent(),this.connectionId=n.connectionId,[2];case 2:o=[],a=n.availableTransports||[],s=n,c=0,l=a,g.label=3;case 3:return c<l.length?(u=l[c],(p=this.resolveTransportOrError(u,t,r))instanceof Error?(o.push(u.transport+" failed: "+p),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(p))return[3,12];if(this.transport=p,s)return[3,9];g.label=5;case 5:return g.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return s=g.sent(),[3,8];case 7:return h=g.sent(),[2,Promise.reject(h)];case 8:i=this.createConnectUrl(e,s.connectionToken),g.label=9;case 9:return g.trys.push([9,11,,12]),[4,this.startTransport(i,r)];case 10:return g.sent(),this.connectionId=s.connectionId,[2];case 11:return d=g.sent(),this.logger.log($a.a.Error,"Failed to start the transport '"+u.transport+"': "+d),s=void 0,o.push(u.transport+" failed: "+d),"Connecting "!==this.connectionState?(f="Failed to select transport before stop() was called.",this.logger.log($a.a.Debug,f),[2,Promise.reject(new Error(f))]):[3,12];case 12:return c++,[3,3];case 13:return o.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+o.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case is.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new vs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case is.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new gs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case is.LongPolling:return new hs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=is[e.transport];if(null==r)return this.logger.log($a.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it was disabled by the client."),new Error("'"+is[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return os[e]})).indexOf(n)>=0))return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it does not support the requested transfer format '"+os[n]+"'."),new Error("'"+is[r]+"' does not support "+os[n]+".");if(r===is.WebSockets&&!this.options.WebSocket||r===is.ServerSentEvents&&!this.options.EventSource)return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it is not supported in your environment.'"),new Error("'"+is[r]+"' is not supported in your environment.");this.logger.log($a.a.Debug,"Selecting transport '"+is[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log($a.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log($a.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log($a.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log($a.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log($a.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log($a.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log($a.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!es.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log($a.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var Es=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new ks,this.transportResult=new ks,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new ks),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return bs(this,void 0,void 0,(function(){var t,n,r;return _s(this,(function(i){switch(i.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(i.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new ks,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return i.sent(),t.resolve(),[3,5];case 4:return r=i.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,i=0,o=e;i<o.length;i++){var a=o[i];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),ks=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),As=n(136),xs=n(142),Is=function(){function e(){this.name="json",this.version=1,this.transferFormat=os.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=As.a.instance);for(var n=[],r=0,i=xs.a.parse(e);r<i.length;r++){var o=i[r],a=JSON.parse(o);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case za.Invocation:this.isInvocationMessage(a);break;case za.StreamItem:this.isStreamItemMessage(a);break;case za.Completion:this.isCompletionMessage(a);break;case za.Ping:case za.Close:break;default:t.log($a.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return xs.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ls={trace:$a.a.Trace,debug:$a.a.Debug,info:$a.a.Information,information:$a.a.Information,warn:$a.a.Warning,warning:$a.a.Warning,error:$a.a.Error,critical:$a.a.Critical,none:$a.a.None};var Ps=function(){function e(){}return e.prototype.configureLogging=function(e){if(es.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=Ls[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new es.b(t)}else this.logger=new es.b(e);return this},e.prototype.withUrl=function(e,t){return es.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=Os({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return es.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new cs(e):this.reconnectPolicy=e:this.reconnectPolicy=new cs,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new ws(this.url,e);return as.create(t,this.logger||As.a.instance,this.protocol||new Is,this.reconnectPolicy)},e}();class Ns extends $n.Object{constructor(e){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=this.createConnection(e),this.authEndpoint=e.authEndpoint,this.setProviderOptions(e),this.attachSocketEvents(),!1===e.lazy&&this.openConnection()}setProviderOptions(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Za.Connecting),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(e=>this.start.apply(this,e),e=>this.onConnectionError.apply(this,e))}start(e){return this.connection.invoke(this.subscribeEvent,e.token).then(()=>this.setConnectionState(Za.Connected)).catch(e=>this.onConnectionError(e))}stop(){if(this.isConnectedOrConnecting())return this.connection.stop()}attachSocketEvents(){this.connection.onclose(()=>this.onConnectionError),this.connection.onreconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(e){e?console.log("Connection Error. Reason: "+e):console.log("Connection Error."),this.setConnectionState(Za.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout(()=>(this.reconnectTries++,this.openConnection()),this.reconnectTimeout||5e3)}createConnection(e){const t=new Ps,n=`${hr.a.removeTrailingSlash(e.endpoint)}/hubs/${e.hubName}`,r={logger:$a.a.Error};return e.logging&&(r.logger=$a.a.Debug),t.withUrl(n,r).build()}getConnectionToken(){const e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}setConnectionState(e){e===Za.Connected&&console.log("Connected!"),e===Za.Disconnected&&console.log("Disconnected!"),this.connectionState=e}isConnectedOrConnecting(){return this.connectionState===Za.Connecting||this.connectionState===Za.Connected||this.connectionState===Za.Reconnecting}create(e,t,n){this.openConnection(),this.rpc(e,t,n)}read(e,t){this.openConnection(),this.subscribe(e,t)}update(e,t,n){this.openConnection(),this.rpc(e,t,n)}delete(e,t){this.openConnection(),this.rpc(e,null,t)}parseError(){return Kn.a}rpc(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.connection.invoke(e,t).then(e=>r.trigger(i,...e)).catch(e=>r.trigger(o,...e))}subscribe(e,t){const{channel:n,successEvent:r}=t;this.connection.on(e,(...e)=>{n.trigger(r,...e)})}}class Rs extends Ns{get name(){return Gn.Notifications}}class Ds extends r.a.Service{initialize(){this.listenTo(c.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(or.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(or.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return nr.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(e,t){t.isAppRoute&&this.setSearchContext(e)}onTypeaheadToggle(e){if(e.open||this.searchContext.get("filterValue"))return;const t=hi.a.getCurrentContext().appLink;this.setSearchContext(t)}setSearchContext(e){const t=this.isValidSearchContext(e);if(t)this.updateSearchContext(t,e.args);else if(!this.inSearchView(e)){a.Radio.channel(or.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}setFilterValue(e){const t={filterValue:e,title:e};this.searchContext.set(t)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(e){return this.appVariables||(this.appVariables=_t.a.getInstance(Ct.a.SEARCH,this)),Hn.find(((e,t)=>{const n=[];return t.folder&&n.push({appLink:t.folder,searchTag:pr.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:(e,t)=>{_t.a.getInstance(nr.a.Library,t).getFolder(Hn.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.get("name")),_t.a.releaseInstance(nr.a.Library)})}}),t.series&&n.push({appLink:t.series,searchTag:pr.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:(e,t)=>{_t.a.getInstance(nr.a.Series,t).getSeries(Hn.first(e.appLink.args).toString(),e=>{const n=e instanceof r.a.Model?e.get("name"):e.name;t.setFilterValue(n),_t.a.releaseInstance(nr.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),t=>e.application===t.appLink.application&&e.action===t.appLink.action)}inSearchView(e){const t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}var Us=n(322);function Bs(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 Vs=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:y.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){go.a.isFunction(t)&&t(new r.a.Collection(e))},i=Us.a.videos(e,n),o=y.a.getResponse(this.store.getState(),i.key);return o.shouldFetch?y.a.fetch(this.store.dispatch,i):n(o.data),new r.a.Collection(o.data)}},{key:"name",get:function(){return In.a.Video}}])&&Bs(t.prototype,n),i&&Bs(t,i),e}();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)}}var js,Fs,Hs=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.DELETE}},zs=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.DELETE}},Ws=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.POST}},qs=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Gs=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},$s=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Yn.a.POST,success:t,data:e}},Ks=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,Hs(e,t))}},{key:"cancelPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,zs(e,t))}},{key:"retryPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,Ws(e,t))}},{key:"getPendingItem",value:function(e,t){y.a.fetch(this.store.dispatch,qs(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){y.a.fetch(this.store.dispatch,Gs(e))}},{key:"completeVideoUpload",value:function(e,t){y.a.fetch(this.store.dispatch,$s(e,t))}},{key:"name",get:function(){return In.a.VideoUpload}}])&&Ms(t.prototype,n),i&&Ms(t,i),e}(),Ys=n(332);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(js||(js={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Fs||(Fs={}));const Js=["pdf"],Xs=["doc","docx","dotx","dot","rtf","docm","odt"],Qs=["csv","txt"],Zs=["xls","xlt","xlsx"],ec=["jpg","tif","png","bmp","gif","jpeg"],tc=["zip","rar"],nc=["ppt","pot","pps","pptx"],rc=["srt"],ic={IMAGES:"."+ec.join(",."),RESOURCES:"."+[...Xs,...Zs,...nc,...Js,...Qs,...ec,...tc].join(",."),SUBTITLES:"."+rc.join(",.")};class oc extends Jr.a{constructor(e){super(e)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:pr.a.getPhrase(this.lang,"heading"),text:pr.a.getPhrase(this.lang,"body"),buttons:[{text:pr.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:pr.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}var ac=n(313);class sc extends Jr.a{constructor(){super(pr.a.getPhrase("upload.internetConnectivityError","title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:pr.a.getPhrase("upload.internetConnectivityError","heading"),text:pr.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:pr.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}const cc=[];class lc extends r.a.Service{constructor(e){super(e)}get name(){return"DropzoneWrapper"}initialize(e){const{loggingEnabled:t}=this.options,n=a.Radio.channel(e.channelName),i=this;this.dropzone=new ac(document.createElement("div"),{url:e=>{const t=e[0],{ingestUrl:n}=t.cvUpload;return n},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){t&&(Hn.each(cc,e=>{this.on(e,(...t)=>{const n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on("uploadprogress",(e,t,r)=>{const o=r/e.size*100;n.trigger("progress",i.getId(e),o,r)}),this.on("success",e=>{const t=e.upload.chunks,r=Hn.last(t);let i=r.xhr;i||(i=r.file.xhr);const o=JSON.parse(i.response);e.cvUpload.fileUrl=o.url,n.trigger("upload:success",e,o)}),this.on("error",(e,t,n)=>{n&&0===n.status?r.a.ErrorHelper.throw(new sc):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Kr(pr.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))}))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return ac.isValidFile(e,t)}}class uc extends tr.a{constructor(){super({dataProvider:_t.a.getInstance(Gn.Ajax),cache:_t.a.getInstance(Fn.Fifo),alertService:_t.a.getInstance(er.a.ALERT)})}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(e,t,n,r){const i=this.chain();Hn.each(e,e=>{i.create({resource:"/api/upload",eventPrefix:"request:upload",data:this.getFileUploadRequest(e,t),callback:t=>{n(e,t)}})}),i.func(()=>{r()}).run()}cancelUpload(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){const n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}onDestroy(){_t.a.releaseInstance(Gn.Ajax).releaseInstance(Fn.Fifo)}}var pc;!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(pc||(pc={}));const hc={[pc.Video]:"video/*",[pc.LearningResource]:ic.RESOURCES,[pc.Subtitle]:ic.SUBTITLES},dc={[pc.Video]:or.c.VIDEO_UPLOAD,[pc.LearningResource]:or.c.RESOURCE_UPLOAD,[pc.Subtitle]:or.c.SUBTITLE_UPLOAD};class fc extends r.a.Service{initialize(){this.uploadDataService=new uc,this.progressViewModel=Ci.a.get("upload:progress:"+this.uploadType),this.bindListeners()}get channelName(){return dc[this.uploadType]}get lang(){return"upload.services"}initUploader(e,t){if(this.uploader)return;let n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new lc({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}onProgress(e,t,n){const r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||(this.collection=new r.a.Collection),this.collection}setOverallProgress(){let e=0,t=0;const n=this.getCollection();if(!n.length)return void this.progressViewModel.set({progress:0});n.each(n=>{e+=n.get("totalUploaded")||0,t+=n.get("file").size||0});const r=e/t*100,i=r>100;this.progressViewModel.set({progress:i?100:r,done:i})}isValidFile(e){return lc.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){Hn.any(e,e=>!this.isValidFile(e))?r.a.ErrorHelper.throw(new oc(pr.a.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}requestUploads(e,t){const n=this.isUploading(),r=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(e,t)=>{this.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},this.uploader.addFile(e);let n=e.name;this.uploadType===pc.Video&&(n=n.replace(/\.[^/.]+$/,"")),r.add({id:this.uploader.getId(e),file:e,name:n},{at:r.length-1})},()=>{t&&yi.a.logUserAction({uploadCount:e.length},t);a.Radio.channel(this.channelName).trigger(Va.a.FILES_ADDED,e,n)})}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){const t=this.getCollection(),n=t.get(e);if(!n)return;const r=n.get("file");this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{yi.a.logUserAction({id:r.cvUpload.uploadId},{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Discard,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.MyUploads}),a.Radio.channel(this.channelName).trigger(Va.a.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){const n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),yi.a.logUserAction({id:e.cvUpload.uploadId},{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Complete,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.VideoUpload});a.Radio.channel(this.channelName).trigger(Va.a.UPLOAD_COMPLETE,r)}cancelAllUploads(){const e=this.getCollection().map(e=>e.get("id"));Hn.each(e,e=>this.cancelUpload(e))}getAcceptedFiles(){return hc[this.uploadType]}}class gc extends fc{get uploadType(){return pc.Video}get name(){return nr.b.VideoUpload}get fileLifestyle(){return Fs.Temporary}}var mc,yc;function vc(e){return(vc="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 bc(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 Cc(e,t,n){return(Cc="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=Ec(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 Tc(e,t){return(Tc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sc(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=Ec(e);if(t){var i=Ec(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wc(this,n)}}function wc(e,t){return!t||"object"!==vc(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 Ec(e){return(Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(mc||(mc={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(yc||(yc={}));var kc=pr.a.encloseNamespace("upload.services"),Ac=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&&Tc(e,t)}(o,e);var t,n,r,i=Sc(o);function o(){return bc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){Cc(Ec(o.prototype),"initialize",this).call(this),this.videoUploadDataService=_t.a.getInstance(In.a.VideoUpload,this),this.pendingItemsService=_t.a.getInstance(In.b.PendingItems,this),this.userDataService=_t.a.getInstance(In.a.FlightUser,this),this.alertService=_t.a.getInstance(er.a.ALERT,this),this.listenTo(this.channelName,Va.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,Va.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,Va.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:Zn.a.Success,heading:kc("startUploadAlertHeading"),message:1===e.length?kc("startUploadSingleAlertBody",{videoName:e[0].name}):kc("startUploadMultipleAlertBody",{uploadCount:e.length})},n=hi.a.getCurrentContext().appLink;!!Do.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=kc("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(Va.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(i){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:i.id,categoryId:null,pendingProcessOrigin:js.Upload,origin:mc.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:yc.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Cc(Ec(o.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&_c(t.prototype,n),r&&_c(t,r),o}(gc);class xc extends r.a.Service{constructor(e){super(e),this.imageUrls=e.imageUrls}get name(){return nr.b.ImageUrl}getImageUrls(){return this.imageUrls}}var Ic=n(216);var Oc=n(268),Lc=n(72),Pc=n(245);const Nc={version:null};function Rc(e=Nc,t){switch(t.type){case Pc.a.API_REPONSE:return function(e,t){return Lc.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}(e,t)}return e}var Dc=n(255);function Uc(e={},t){switch(t.type){case Dc.a.UPDATE: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}var Bc=n(244),Vc=n(168);var Mc={"{gateway}":"gatewayApiUrl"};function jc(e,t){var n=Object(Oc.combineReducers)({flightData:y.a.FlightReducer,applicationData:Rc,viewModelData:Uc}),r=y.a.createMiddleware({fetchData:function(e){var t=Object.keys(Mc).find((function(t){return e.resource.startsWith(t)}));if(!t)return y.a.ajaxRequest(e);_t.a.getInstance(In.a.FlightConfig).getConfig((function(n){var r=_t.a.getInstance(In.a.FlightUser);_t.a.releaseInstance(In.a.FlightConfig),r.getToken((function(r){if(_t.a.releaseInstance(In.a.FlightUser),null==r?void 0:r.value){var i=n[Mc[t]];e.resource="".concat(i).concat(e.resource.split("".concat(t,"/"))[1]),e.headers={authorization:"Bearer ".concat(r.value)},y.a.ajaxRequest(e)}else y.a.ajaxRequest(e)}),(function(){y.a.ajaxRequest(e),_t.a.releaseInstance(In.a.FlightUser)}))}),(function(){y.a.ajaxRequest(e),_t.a.releaseInstance(In.a.FlightConfig)}))},bootstrappedData:window.bootstrapData||{},defaultExpiryTime:rr.a.STANDARD}),i=function(e){const{oldVersionError:t,authenticationError:n}=e;return function(e){return r=>i=>{var o,a;if(i.type!==Bc.Actions.API_REPONSE)return void r(i);const s=i,c=e.getState().applicationData.version,l=null===(o=null==s?void 0:s.xhr)||void 0===o?void 0:o.getResponseHeader("X-App-Version");t&&c&&l&&l!==c&&Wn.c.throw(t),n&&(null===(a=null==s?void 0:s.xhr)||void 0===a?void 0:a.status)===Vc.a.Unauthorized&&Wn.c.throw(n),r(i)}}}({oldVersionError:new An.a("A new version is available"),authenticationError:new An.a("Authentication Error")});var o,a=Object(Oc.createStore)(n,Object(Oc.applyMiddleware)(r,i));o=a,e.registerStore(o),t(),delete window.bootstrapData}var Fc=n(215);function Hc(e){return(Hc="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 zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(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 qc(e,t){return(qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gc(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=Kc(e);if(t){var i=Kc(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"!==Hc(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 Kc(e){return(Kc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yc=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&&qc(e,t)}(o,e);var t,n,r,i=Gc(o);function o(){return zc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{searchResults:{application:m.a.SEARCH,action:v.a.Search.HOME},series:{application:m.a.DEFAULT,action:v.a.Default.SERIES},videoDetails:{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO},tagSearch:{application:m.a.SEARCH,action:v.a.Search.HOME},classification:{application:m.a.SUBJECT,action:v.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return pr.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}},{key:"showSearchTips",get:function(){return!1}}])&&Wc(t.prototype,n),r&&Wc(t,r),o}(Fc.BaseSearchAppVariables),Jc=n(69);function Xc(e){return(Xc="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 Qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(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 el(e,t){return(el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tl(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=rl(e);if(t){var i=rl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nl(this,n)}}function nl(e,t){return!t||"object"!==Xc(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 rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var il=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&&el(e,t)}(o,e);var t,n,r,i=tl(o);function o(){return Qc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO},notifications:{application:m.a.NOTIFICATIONS,action:v.a.Notifications.HOME},pastReleases:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME},awaitingReview:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME},editStaffRequest:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Jc.a.VideoReviewReminder,Jc.a.VideoReviewAddedToLibrary,Jc.a.CustomLibraryVideoAvailable,Jc.a.WorkspaceVideoAvailable,Jc.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return Ic.a.EmptyStates.NOTIFICATIONS}},{key:"bellIconColor",get:function(){return"dark"}}])&&Zc(t.prototype,n),r&&Zc(t,r),o}(Fc.BaseNotificationsAppVariables);function ol(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 al=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasCompletedOnboarding=t.hasCompletedOnboarding}var t,n,r;return t=e,(n=[{key:"name",get:function(){return Ct.a.SUBJECTS}}])&&ol(t.prototype,n),r&&ol(t,r),e}();var sl=n(34);const cl={register(){sl.registerHelper("lang",(e,t)=>{if(!this.isValid(e,t))return;const n=t.data.root.languageNamespace;return pr.a.getPhrase(n,e,t.hash)})},isValid:(e,t)=>"string"!=typeof e?(r.a.ErrorHelper.throw(new An.a("No language key provided.")),!1):"object"!=typeof t?(r.a.ErrorHelper.throw(new An.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!Hn.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new An.a("No `lang` property provided.")),!1)};var ll,ul=n(217);!function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(ll||(ll={}));const pl={curriculum:!1};class hl{constructor(e){this.options=Object.assign({onlineModules:pl},e)}get name(){return nr.b.AppOptions}get hasCurriculum(){return this.options.onlineModules.curriculum}get isTeacher(){return this.options.onlineRole===ul.a.Staff}get onlineRole(){return this.options.onlineRole}get onlineCustomerType(){return this.options.customerType}}n(138),n(253),n(252);r.a.Service;$n.Object;class dl extends r.a.Service{enrich(e,t){}isType(e){return e===dl.type}}dl.type="BaseAnalyticsEnricher";n(289);n(259);class fl extends r.a.Service{constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(e){return e===fl.type}}fl.type="BaseAnalyticsClient";var gl;n(185),n(260);!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(gl||(gl={}));var ml=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});ml.addInitializationStep(jc).addInitializationStep((function(e,t){e.registerLayout(f,va).registerLayout(g,La),t(e)})).addInitializationStep((function(e,t){_t.a.registerInstance(qn,{size:100}),t(e)})).addInitializationStep((function(e,t){_t.a.registerInstance(Qn,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep(jc).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:Pr.a.Success,type:Zn.a.Success},defaultErrorAlert:{heading:Pr.a.Fail,type:Zn.a.Fail},alertViewCtor:Or};_t.a.registerSingleton(new Zn.b(n));var r=_t.a.getInstance(er.a.ALERT),i={cache:Fn.Fifo,dataProvider:Gn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};_t.a.registerDataService(Lr.a,i).registerDataService(sr,i).registerDataService(br,i);var o={store:e.store};_t.a.registerInstance(Dr,o).registerInstance(Mr,o).registerInstance(Fr,o).registerInstance(Wr,o).registerInstance($r,o);var a={cache:Fn.Fifo,dataProvider:Gn.Notifications,alertService:r};_t.a.registerDataService(lr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Ds;_t.a.registerInstance(xc,{imageUrls:Ic.a}).registerInstance(Ac).registerInstance(Vs,{store:e.store}).registerInstance(Ks,{store:e.store}).registerInstance(Ma).registerInstance(Ys.a).registerInstance(Fa).registerSingleton(n);var r=new Na(2),i=function(){r.decrement(),r.getValue()>0||(_t.a.releaseInstance(nr.a.Language),_t.a.releaseInstance(In.a.FlightConfig),t(e))};_t.a.getInstance(nr.a.Language).getLanguageConfig((function(e){pr.a.setConfig(e),i()})),_t.a.getInstance(In.a.FlightConfig).getConfig((function(e){_t.a.registerInstance(Rs,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),i()}))})).addInitializationStep((function(e,t){_t.a.registerInstance(Yc).registerInstance(il),O({shell:e,appLink:null},(function(n){_t.a.registerInstance(al,{hasCompletedOnboarding:!n}),t(e)}))})).addInitializationStep((function(e,t){e.registerApplication(Ee).registerApplication(jn).registerApplication(ct).registerApplication(fe).registerApplication(Pt).registerApplication(Ue).registerApplication(Ke).registerApplication(bt).registerApplication(re).registerApplication(rn).registerApplication(zt).registerApplication(F).registerApplication(gn).registerApplication(kn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:Hn.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){cl.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Yr,ai).registerErrorHandler(Jr.a,si).registerErrorHandler(Kr,ii).registerErrorHandler(b.a,oi).registerErrorHandler(Xr.a,ai).registerErrorHandler(Qr.a,ai).registerErrorHandler(Zr.a,ai).registerErrorHandler(ei.a,oi).registerErrorHandler(ti.a,ai).registerErrorHandler(ni.a,oi).registerErrorHandler(ri.a,ai),t()})).addInitializationStep((function(e,t){_t.a.registerSingleton(new hl({onlineRole:ul.a.Staff,customerType:ll.Primary})),t(e)})),ml.addStartUpStep((function(e,t,n){_t.a.getInstance(In.a.FlightConfig).getConfig((function(){Pa.a.setUpVariables({isDevelopment:!1}),n(e,t),_t.a.releaseInstance(In.a.FlightConfig)}))})),ml.start()},function(e,t){e.exports=y},function(e,t){e.exports=v},function(e,t){e.exports=b},function(e,t){e.exports=_},function(e,t){e.exports=C}])}));
31
+ var t,n;function i(){var t,n=a(a(t=e.call(this)||this));if(r.a.browser.IS_IE8)for(var s in n=o.a.createElement("custom"),i.prototype)"constructor"!==s&&(n[s]=i.prototype[s]);return n.levels_=[],n.selectedIndex_=-1,Object.defineProperty(n,"selectedIndex",{get:function(){return n.selectedIndex_}}),Object.defineProperty(n,"length",{get:function(){return n.levels_.length}}),n||a(t)}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.addQualityLevel=function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var n=this.levels_.length;return t=new s(e),""+n in this||Object.defineProperty(this,n,{get:function(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t},c.removeQualityLevel=function(e){for(var t=null,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t},c.getQualityLevelById=function(e){for(var t=0,n=this.length;t<n;t++){var r=this[t];if(r.id===e)return r}return null},c.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},i}(r.a.EventTarget);for(var l in c.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},c.prototype.allowedEvents_)c.prototype["on"+l]=null;var u=r.a.registerPlugin||r.a.plugin,p=function(e){return t=this,r.a.mergeOptions({},e),n=t.qualityLevels,i=new c,t.on("dispose",(function e(){i.dispose(),t.qualityLevels=n,t.off("dispose",e)})),t.qualityLevels=function(){return i},t.qualityLevels.VERSION="2.0.9",i;var t,n,i};u("qualityLevels",p),p.VERSION="2.0.9";class h{constructor(e,t){this.id=t.id,this.plugin=e,this.source=t,this.enabled=this.enabled.bind(this)}enabled(e){return void 0===e?this.plugin.currentSource===this.source:(e&&this.plugin.setSource(this.source.id),e)}}const d=r.a.getPlugin("plugin");r.a.registerPlugin("progressiveFiles",class extends d{constructor(e,t){super(e),this.sources=[],this.qualityLevels=e.qualityLevels(),this.populateSources(t.sources)}get currentSource(){return this._currentSource}setSource(e){const t=this.getSourceById(e);if(null===t)return this.currentSource;const n=this.player.currentTime(),r=!this.player.paused();this._currentSource=t,this.player.src({src:t.url,type:t.mimeType});return this.player.one("loadedmetadata",()=>{this.player.currentTime()!==n&&this.player.currentTime(n),r&&this.player.play()}),this.trigger({event:"sourcechange",source:t}),this.sourceChangeUpdateQualityLevels(t),t}getSourceById(e){return this.sources.find(t=>t.id===e)}populateSources(e){let t=null;e.forEach(e=>{this.qualityLevels.addQualityLevel(new h(this,e)),this.sources.push(e),this.trigger({event:"addsource",source:e}),e.default&&(t=e)}),null===t&&(t=this.sources[0]),null!==t&&this.setSource(t.id)}sourceChangeUpdateQualityLevels(e){const t=this.qualityLevels;let n=-1;for(let r=0;r<t.length;r++)if(t[r].id===e.id){n=r;break}t.selectedIndex_=n,t.trigger({selectedIndex:n,type:"change"})}});var f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class g{constructor(e){this.name=e.name,this.playbackProfile=e.playbackProfile,this.address=new URL(e.httpsAddress)}getUrl(e){return e?this.address+"cache?file="+encodeURIComponent(e):null}ping(){return f(this,void 0,void 0,(function*(){const e=new AbortController,t=setTimeout(()=>e.abort(),1e3);try{const n=yield fetch(this.address+"ping",{method:"GET",mode:"cors",signal:e.signal}),r=yield n.text();return clearTimeout(t),"PONG"===r}catch(e){return!1}}))}}var m=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class y{constructor(e){this.player=e,this.logger=r.a.log.createLogger("localcache")}setSource(e,t){return m(this,void 0,void 0,(function*(){t(null,e)}))}}r.a.use("*",e=>new y(e));n(894);var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const b=r.a.getComponent("Component");r.a.registerComponent("localCacheIndicator",class extends b{constructor(e,t){super(e,t),this.hide(),this.onLocalCacheChange=this.onLocalCacheChange.bind(this),e.ready(()=>{this.initialize()})}createEl(){return super.createEl("div",{className:"vjs-local-cache-indicator",innerHTML:'<div class="vjs-local-cache-indicator-icon"><?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.9"><g id="Local-Cache" transform="translate(2.000000, 2.000000)"><rect id="Rectangle" fill="#FFFFFF" x="0" y="2.4" width="18.8" height="15.2"></rect><ellipse id="Oval" fill="#FFFFFF" cx="9.4" cy="2.4" rx="9.4" ry="2.4"></ellipse><ellipse id="Oval-Copy" fill="#FFFFFF" cx="9.4" cy="17.6" rx="9.4" ry="2.4"></ellipse><g id="Logo/Circle" transform="translate(2.500000, 3.000000)"><circle id="Oval" fill="#FFFFFF" cx="7" cy="7" r="7"></circle><polygon id="Fill-1" fill="#F8981D" points="4.66666667 2.33333333 4.66666667 11.4245258 10.0383286 6.87866667"></polygon></g></g></g></svg></div>',title:"Streaming from ClickView Local Cache"})}initialize(){this.localCachePlugin=this.player_.localCache(),this.localCachePlugin&&(this.localCachePlugin.on("localcachechanged",this.onLocalCacheChange),this.player_.on("dispose",()=>{this.localCachePlugin.off("localcachechanged",this.onLocalCacheChange)}),this.onLocalCacheChange())}onLocalCacheChange(){return v(this,void 0,void 0,(function*(){(yield this.localCachePlugin.getActiveLocalCache())?this.show():this.hide()}))}});var _=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const C=r.a.getPlugin("plugin");r.a.registerPlugin("localCache",class extends C{constructor(e,t){if(super(e),this.logger_=r.a.log.createLogger("localcache"),void 0===t)throw Error("no options defined");this.onPlayerError=this.onPlayerError.bind(this),this.dispose=this.dispose.bind(this),this.localCaches_=t.localCacheAddresses.map(e=>new g(e)),this.player.ready(()=>{this.initialize(),t.enabled&&this.enable()})}get isEnabled(){return this.enabled_}enable(){this.enabled_=!0,this.resetActiveLocalCache()}disable(){this.enabled_=!1}getActiveLocalCache(){return this.enabled_?this.activeLocalCache_:null}resetActiveLocalCache(){this.clearActiveLocalCache(),this.activeLocalCache_=this.getActiveLocalCacheInternal()}clearActiveLocalCache(){this.activeLocalCache_&&(this.activeLocalCache_=null,this.onLocalCacheChange(null))}dispose(){this.player.off("error",this.onPlayerError)}initialize(){this.player.on("error",this.onPlayerError),this.player.on("dispose",this.dispose),this.player.controlBar.addChild("localCacheIndicator")}onPlayerError(){var e;(null===(e=this.player.error())||void 0===e?void 0:e.code)===MediaError.MEDIA_ERR_NETWORK&&this.resetActiveLocalCache()}getActiveLocalCacheInternal(){return _(this,void 0,void 0,(function*(){const e=[],t=t=>_(this,void 0,void 0,(function*(){(yield t.ping())&&e.push(t)}));if(yield Promise.all(this.localCaches_.map(e=>t(e))),e.length>0){const t=e[0];return this.onLocalCacheChange(t),t}return null}))}onLocalCacheChange(e){this.logger_.debug("Local Cache changed",e),this.trigger("localcachechanged",{localCache:e});let t=!1;e&&e.playbackProfile&&(this.logger_.debug("Changing active profile for local cache",e.playbackProfile),class{static getKnownProfiles(){return["1080","720","480","360","240"]}static enableProfileOrNextBest(e,t){let n=e.getQualityLevelById(t);if(n||(n=this.getNextBestQuality(e,t)),!n)return null;for(let t=0;t<e.length;t++){const r=e[t];r.enabled=n.id===r.id}return n}static getNextBestQuality(e,t){const n=this.getKnownProfiles(),r=n.indexOf(t);if(r>=0){for(let t=r+1;t<n.length;t++){const r=n[t],i=e.getQualityLevelById(r);if(i)return i}for(let t=r-1;t>0;t--){const r=n[t],i=e.getQualityLevelById(r);if(i)return i}}return null}}.enableProfileOrNextBest(this.player.qualityLevels(),e.playbackProfile),t=!0),t||this.player.src(this.player.src())}});n(895);const T=r.a.getComponent("Component");class S extends T{buildCSSClass(){return"cv-time-wrapper "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}}S.prototype.options_={children:["currentTimeDisplay","remainingTimeDisplay"]},r.a.registerComponent("TimeWrapper",S);const w=r.a.getComponent("MenuItem");r.a.registerComponent("NextVideoMenuItem",class extends w{constructor(e,t){super(e,t),this.playNext=e.nextVideoPlugin().getShouldPlayNext(),this.toggle(this.playNext)}handleToggle(){this.toggle(!this.playNext)}toggle(e){e?this.toggleOn():this.toggleOff()}toggleOn(){this.playNext=!0,r.a.dom.addClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext)}toggleOff(){this.playNext=!1,r.a.dom.removeClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext)}handleClick(e){e.stopImmediatePropagation()}createEl(e,t,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=r.a.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);const i=super.createEl(e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">autoplay</span>\n <span class="cv-toggle-container"></span>'},n);return i.children[1].appendChild(this.toggleEl),i}});n(896);const E=r.a.getComponent("MenuItem"),k=r.a.getComponent("NextVideoMenuItem");class A extends E{constructor(e,t){super(e,t)}handleClick(e){super.handleClick(e),this.requestAnimationFrame(()=>{this.options_.item.showCollapsibleMenu()})}createEl(e,t,n){if(!this.options_.item)return super.createEl(e,t,n);const r=`\n <span class="vjs-menu-item-text">${this.options_.item.getCollabsibleName()}</span>\n <span>${this.options_.item.getCollabsibleValue()}</span>`;return super.createEl(e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:r},n)}}const x=r.a.getComponent("MenuButton");r.a.registerComponent("cogButton",class extends x{constructor(e,t){super(e,t)}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}buildCSSClass(){return"cv-cog-button "+super.buildCSSClass()}pressButton(){this.update(),x.prototype.pressButton.apply(this)}createItems(){const e=[];this.renderPlayNext&&e.push(new k(this.player_,this.options_));for(let t=0;t<this.options_.items.length;t++){const n=this.options_.items[t];n.isCollabsible&&(n.showInCollabsibleMenu()&&n.isCollapsed&&e.push(new A(this.player_,{item:n})))}return e}update(){super.update(),this.player_.trigger("resizemenus")}showPlayNext(){this.renderPlayNext=!0,this.update()}});n(897),n(898),n(899);const I=r.a.getComponent("Component");class O extends I{constructor(e,t){super(e,t),this.addChild("cogButton",{items:this.children_},this.children_.length-1),this.update=this.update.bind(this),this.player_.on("playerresize",this.update),this.player_.on("dispose",()=>{this.player_.off("playerresize",this.update)})}togglehidden(e){for(let t=0;t<this.children_.length;t++){const n=this.children_[t];n.isCollabsible&&(n.alwaysCollapsed||e?(n.isCollapsed=!0,n.addClass("cv-collapsed")):(n.isCollapsed=!1,n.removeClass("cv-collapsed")))}this.getChild("cogButton").update()}update(){const e=this.player_.el().getBoundingClientRect();0!==e.width&&this.togglehidden(e.width<600)}buildCSSClass(){return"cv-collapsorator "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}}O.prototype.options_={children:["playToggle","volumePanel","customControlSpacer","playbackRateMenuButton","chaptersButton","qualityButton","subsCapsButton","fullscreenToggle"]},r.a.registerComponent("collapserator",O);n(900);const L=r.a.getComponent("Component");class P extends L{buildCSSClass(){return"cv-chapter-bar-items "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(){this.children_.forEach(e=>{e.update()})}}const N=r.a.getComponent("Component");class R extends N{buildCSSClass(){return"cv-chapter-bar-load-progress "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(e){this.el_.style.width=100*e+"%"}}const D=r.a.getComponent("Component");class U extends D{buildCSSClass(){return"cv-chapter-bar-play-progress "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}update(e){e>0&&e<1?this.addClass("cv-current"):this.removeClass("cv-current"),this.el_.style.width=100*e+"%"}}const B=r.a.getComponent("Component");class V extends B{constructor(e,t){super(e,t),this.playProgress=new U(this.player_),this.addChild(this.playProgress),this.loadProgress=new R(this.player_),this.addChild(this.loadProgress),this.update()}buildCSSClass(){return"cv-chapter-bar-item "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}getCurrentTime(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}update(){const e=this.player_.duration(),t=this.options_.endTime-this.options_.startTime;if(e!==this.duration_){const n=t/e;this.el_.style.width=100*n+"%";const r=this.options_.startTime/e;this.el_.style.left=100*r+"%",this.duration_=e}const n=this.getCurrentTime();n<this.options_.startTime?this.playProgress.update(0):n>this.options_.endTime?this.playProgress.update(1):this.playProgress.update((n-this.options_.startTime)/t);const r=this.player_.bufferedEnd();r<this.options_.startTime?this.loadProgress.update(0):r>this.options_.endTime?this.loadProgress.update(1):this.loadProgress.update((r-this.options_.startTime)/t)}}var M=n(112);const j=r.a.getComponent("SeekBar");class F extends j{constructor(e,t){super(e,t),this.onDurationChange=this.onDurationChange.bind(this),this.createChapterItems=this.createChapterItems.bind(this),M.a.useTrack(this.player_,"chapters",null,this.createChapterItems),this.player_.on("durationchange",this.onDurationChange),this.player_.on("dispose",()=>{this.player_.off("durationchange",this.onDurationChange)})}createEl(){return r.a.dom.createEl("div",{className:"vjs-progress-holder cv-chapter-seek-bar"},{"aria-label":this.localize("Progress Bar")})}onDurationChange(){this.createChapterItems(),this.update()}update(){const e=super.update();return this.chapterBarItems&&this.chapterBarItems.update(),e}createChapterItems(e){e&&(this.track_=e);const t=new P(this.player_);if(this.track_)for(let e=0;e<this.track_.cues.length;e++){const n=this.track_.cues[e],r=n.startTime;let i=n.endTime;const o=this.player_.duration();o&&(e===this.track_.cues.length-1&&n.endTime<this.player_.duration()&&(i=this.player_.duration()),i>o&&(i=o));const a=new V(this.player_,{startTime:r,endTime:i});if(t.addChild(a),o&&i===o)break}else t.addChild(new V(this.player_,{startTime:0,endTime:this.player_.duration()}));this.chapterBarItems&&this.removeChild(this.chapterBarItems),this.chapterBarItems=t,this.addChild(this.chapterBarItems)}}F.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},r.a.browser.IS_IOS||r.a.browser.IS_ANDROID||F.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),r.a.registerComponent("ChapterSeekBar",F);n(901);const H=r.a.getComponent("ProgressControl");class z extends H{constructor(){super(...arguments),this.seekBarName_="seekBar"}setSeekBarName(e){this.seekBarName_=e}getChild(e){return(null==e?void 0:e.toLowerCase())==="seekBar".toLowerCase()&&(e=this.seekBarName_),super.getChild(e)}}function W(e,t=e){e=e<0?0:e;let n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600);const o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||a>0?i+":":"",r=((i||o>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n}z.prototype.options_={children:[]},r.a.registerComponent("ProgressControl",z);n(902);const q=r.a.getComponent("TimeTooltip");r.a.registerComponent("TimeTooltip",class extends q{constructor(e,t){super(e,t),M.a.useTrack(this.player_,"chapters",!1,e=>{this.track_=e})}createEl(){const e=super.createEl();return this.chapter_=r.a.dom.createEl("div"),e.appendChild(this.chapter_),this.time_=r.a.dom.createEl("div"),e.appendChild(this.time_),e}updateTime(e){const t=this.player_.duration();if(r.a.dom.textContent(this.time_,W(e,t)),this.track_){for(let t=0;t<this.track_.cues.length;t++){const n=this.track_.cues[t];if(n.startTime<=e&&n.endTime>=e)return void r.a.dom.textContent(this.chapter_,n.text)}r.a.dom.textContent(this.chapter_,"")}}});n(903);const G=r.a.getComponent("Component");class $ extends G{constructor(e,t){super(e,t)}setTrack(e){this.track_=e}createEl(){const e=super.createEl("div",{className:"cv-thumbnail-display"});return this.img_=r.a.dom.createEl("img"),e.appendChild(this.img_),e}enable(){this.addClass("cv-thumbnail-display-enabled")}disable(){this.removeClass("cv-thumbnail-display-enabled")}parseImageLink(e){const t=e.indexOf("#");if(-1===t)return{src:e,w:0,h:0,x:0,y:0};const n=e.substr(0,t),r=e.substr(t+1);if("xywh="!==r.substr(0,5))return{src:e,w:0,h:0,x:0,y:0};const i=this.options_.scaleFactor,o=r.substr(5).split(",");return{src:n,w:parseInt(o[2])*i,h:parseInt(o[3])*i,x:parseInt(o[0])*i,y:parseInt(o[1])*i}}update(e){var t,n;if(!(null===(n=null===(t=this.track_)||void 0===t?void 0:t.cues)||void 0===n?void 0:n.length))return;const r=e;let i,o=0;for(;o<this.track_.cues.length;){const e=this.track_.cues[o];if(e.startTime<=r&&e.endTime>=r){i=this.parseImageLink(e.text);break}o++}if(!(null==i?void 0:i.src))return void this.disable();this.enable();const{src:a,w:s,h:c,x:l,y:u}=i,p=this.options_.scaleFactor;this.img_.src=a,this.img_.style.left=-l+"px",this.img_.style.top=-u+"px",this.img_.style.transformOrigin="0 0",this.img_.style.transform=`scale(${p})`,this.el_.style.width=s+"px",this.el_.style.height=c+"px"}}$.prototype.options_={scaleFactor:1},r.a.registerComponent("ThumbnailDisplay",$);n(904);const K=r.a.getComponent("MouseTimeDisplay");class Y extends K{constructor(e,t){super(e,t),M.a.useTrack(this.player_,"metadata","thumbnails",e=>{this.getChild("ThumbnailDisplay").setTrack(e)})}update(e,t){this.requestAnimationFrame(()=>{const n=t*this.player_.duration();this.getChild("ThumbnailDisplay").update(n),this.getChild("TimeTooltip").updateTime(n);const r=this.el_.getBoundingClientRect();this.el_.style.marginLeft=-r.width/2+"px";const i=e.width*t;i<r.width/2?this.el_.style.left=r.width/2+"px":i>e.width-r.width/2?this.el_.style.left=e.width-r.width/2+"px":this.el_.style.left=e.width*t+"px"})}}Y.prototype.options_={children:["ThumbnailDisplay","TimeTooltip"]},r.a.registerComponent("MouseTimeDisplay",Y);n(271),n(287);var J=n(258),X=n.n(J),Q=(n(272),n(146),n(273),n(274),n(275),n(219),n(276),n(277),n(302)),Z=n.n(Q),ee=n(303),te=n.n(ee),ne=n(495),re=n.n(ne),ie=n(496),oe=(n(278),n(279),n(280),n(281),n(282),null),ae=null;function se(){if(null===oe){if("undefined"==typeof document)return oe=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),oe=n}return oe}X.a&&window.addEventListener("resize",(function(){ae!==window.devicePixelRatio&&(ae=window.devicePixelRatio,oe=null)}));var ce=function(e){return Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})};function le(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ue(e){return e&&e.ownerDocument?e.ownerDocument:document}var pe=function(){function e(t,n){var r=this;this.onScroll=function(){var e=le(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,i=n.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],s=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var c=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(i-o.size)*(a-s);"x"===r.draggedAxis&&(c=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?c-(i+o.size):c,c=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-c:c),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=c},this.onEndDrag=function(e){var t=ue(r.el),n=le(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=Z()(this.recalculate.bind(this),64),this.onMouseMove=Z()(this.onMouseMove.bind(this),64),this.hideScrollbars=te()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=te()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=re()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=999;var a=e.getOffset(r);return{isRtlScrollingInverted:i.left!==o.left&&o.left-a.left!=0,isRtlScrollbarInverted:i.left!==o.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=ue(e),r=le(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),X.a&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=le(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=t.ResizeObserver||ie.a;this.resizeObserver=new r((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=le(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=s+"px";var l=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=c>r,this.axis.y.isOverflowing=s>l,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,p=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>i-p,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>l-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],i=r/n;return t=Math.max(~~(i*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-i),c=~~((r-o.size)*s);c="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?c+(r-o.size):c,o.el.style.transform="x"===t?"translate3d("+c+"px, 0, 0)":"translate3d(0, "+c+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=ue(this.el),r=le(this.el),i=this.axis[t].scrollbar,o="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=o-i.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=le(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var i=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=("y"===t?this.mouseY-i:this.mouseX-i)<0?-1:1,c=-1===s?a-o:a+o;!function e(){var i,o;-1===s?a>c&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=a,i)),r.requestAnimationFrame(e)):a<c&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:se()}catch(e){return se()}},t.removeListeners=function(){var e=this,t=le(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();pe.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},pe.instances=new WeakMap,pe.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||pe.instances.has(e)||new pe(e,ce(e.attributes))}))},pe.removeObserver=function(){this.globalObserver.disconnect()},pe.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(pe.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},pe.handleMutations=function(e){e.forEach((function(e){Array.prototype.forEach.call(e.addedNodes,(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!pe.instances.has(e)&&new pe(e,ce(e.attributes)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||pe.instances.has(e)||new pe(e,ce(e.attributes))})))})),Array.prototype.forEach.call(e.removedNodes,(function(e){1===e.nodeType&&(e.hasAttribute('[data-simplebar="init"]')?pe.instances.has(e)&&pe.instances.get(e).unMount():Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),(function(e){pe.instances.has(e)&&pe.instances.get(e).unMount()})))}))}))},pe.getOptions=ce,X.a&&pe.initHtmlApi();var he=pe;const de={initMenuScrollbar(e){de.unMountScrollbar(e);const t=de.getMenuEl(e);t&&(e.simpleBar_=new he(t,{autoHide:!1}),e.one("dispose",()=>de.unMountScrollbar(e)))},unMountScrollbar(e){e.simpleBar_&&e.simpleBar_.unMount()},getMenuEl:e=>e.el().querySelector(".vjs-menu-content")};n(905);const fe=r.a.getComponent("ChaptersTrackMenuItem");class ge extends fe{constructor(e,t){super(e,t),this.nonIconControl=!1,this.thumbnailDisplay=new $(this.player_,{scaleFactor:.5}),this.el().insertBefore(this.thumbnailDisplay.el(),this.el().firstChild),M.a.useTrack(this.player_,"metadata","thumbnails",e=>{this.addClass("cv-has-thumbnails"),this.thumbnailDisplay.setTrack(e),this.thumbnailDisplay.update(this.options_.cue.startTime)})}update(){this.player_&&fe.prototype.update.call(this)}buildCSSClass(){return"vjs-menu-item cv-chapter-menu-item"}createEl(e,t,n){return this.nonIconControl=!0,super.createEl("li",Object.assign({className:this.buildCSSClass(),innerHTML:this.getInnerHTML(),tabIndex:-1},t),n)}getInnerHTML(){const e=this.player_.duration();return`<span class="vjs-menu-item-text cv-chapter-menu-item-text"><p>${this.localize(this.options_.label)}</p><p>(${W(this.options_.cue.startTime,e)})</p></span>`}}n(906);const me=r.a.getComponent("ChaptersButton");r.a.registerComponent("ChaptersButton",class extends me{constructor(e,t,n){super(e,t,n),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildCSSClass(){return"cv-chapters-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"cv-menu-big "+super.buildWrapperCSSClass()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,r=t.length;n<r;n++){const r=t[n],i=new ge(this.player_,{track:this.track_,cue:r});e.push(i)}return e}setTrack(e){super.setTrack(e),this.track_&&"chapters"===this.track_.kind&&e.one("loadeddata",()=>{this.update()})}update(e){super.update(e),de.initMenuScrollbar(this)}getCollabsibleName(){return"Chapters"}getCollabsibleValue(){const e=this.track_.activeCues[0];return(null==e?void 0:e.text)||""}showInCollabsibleMenu(){if(!this.track_)return!1;const e=this.track_.cues;return!(!e||!e.length)}showCollapsibleMenu(){this.handleClick(null)}});n(907);const ye=r.a.getComponent("SubsCapsButton");r.a.registerComponent("SubsCapsButton",class extends ye{constructor(){super(...arguments),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}update(){super.update(),de.initMenuScrollbar(this)}getCollabsibleName(){return"Subtitles"}getCollabsibleValue(){const e=this.player_.textTracks();for(let t=0;t<e.length;t++){const n=e[t];if(this.kinds_.indexOf(n.kind)>-1&&"showing"===n.mode)return n.label}return"Off"}showInCollabsibleMenu(){const e=this.player_.textTracks();for(let t=0;t<e.length;t++){const n=e[t];if(this.kinds_.indexOf(n.kind)>-1)return!0}return!1}showCollapsibleMenu(){ye.prototype.handleClick.apply(this)}});const ve=r.a.getComponent("MenuItem");class be extends ve{constructor(e,t){super(e,t),this.qualityId=t.qualityId;const n=e.qualityLevels(),r=this.handleQualityChange.bind(this);n.on("change",r),e.on("dispose",()=>{n.off("change",r)})}buildCSSClass(){return"vjs-menu-item cv-quality-menu-item"}handleClick(){const e=this.player_.qualityLevels();for(let t=0;t<e.length;t++){const n=e[t];n.enabled=n.id===this.qualityId}}handleQualityChange(){if(!this.player_)return;const e=this.player_.qualityLevels(),t=e[e.selectedIndex],n=t&&t.id===this.qualityId;n!==this.isSelected_&&this.selected(n)}}n(908);const _e={240:"240p",360:"360p",480:"480p",720:"720p",1080:"1080p"},Ce=r.a.getComponent("MenuButton");r.a.registerComponent("QualityButton",class extends Ce{constructor(e,t){super(e,t),this.alwaysCollapsed=!0,this.isCollapsed=!1,this.isCollabsible=!0;const n=this.player_.qualityLevels(),r=this.update.bind(this);n.on("addqualitylevel",r),n.on("removequalitylevel",r),e.on("dispose",()=>{n.removeEventListener("addqualitylevel",r),n.removeEventListener("removequalitylevel",r)})}buildCSSClass(){return"cv-quality-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"cv-menu-small vjs-quality-button "+super.buildWrapperCSSClass()}createItems(){const e=[],t=this.player_.qualityLevels();for(let n=0;n<t.length;n++){const r=t[n];if(!r)continue;const i=_e[r.id];i&&e.push(new be(this.player_,{qualityId:r.id,label:i,selectable:!0,multiSelectable:!1}))}return e}update(){super.update(),de.initMenuScrollbar(this)}getCollabsibleName(){return"Playback quality"}getCollabsibleValue(){const e=this.player_.qualityLevels(),t=e[e.selectedIndex];return t?_e[t.id]:""}showInCollabsibleMenu(){return!!this.player_.qualityLevels().length}showCollapsibleMenu(){Ce.prototype.handleClick.apply(this)}});n(909);const Te=r.a.getComponent("Menu"),Se=r.a.getComponent("MenuButton"),we=r.a.getComponent("PlaybackRateMenuItem"),Ee=r.a.getComponent("PlaybackRateMenuButton");r.a.registerComponent("PlaybackRateMenuButton",class extends Ee{constructor(){super(...arguments),this.alwaysCollapsed=!0,this.isCollapsed=!1,this.isCollabsible=!0}createEl(...e){return Se.prototype.createEl.apply(this,...e)}buildWrapperCSSClass(){return"cv-menu-small "+super.buildWrapperCSSClass()}createMenu(){const e=new Te(this.player(),{menuButton:this}),t=this.playbackRates();if(t)for(let n=t.length-1;n>=0;n--)e.addItem(new we(this.player(),{rate:t[n]+"x"}));return e}handleClick(...e){return Se.prototype.handleClick.apply(this,...e)}updateLabel(...e){return this.setupLabelEl(),Ee.prototype.updateLabel.apply(this,...e)}setupLabelEl(){if(this.labelEl_)return;const e=this.$("button");e&&(this.labelEl_=r.a.dom.createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_))}getCollabsibleName(){return"Playback rate"}getCollabsibleValue(){return this.player().playbackRate()+"x"}showInCollabsibleMenu(){return!!this.playbackRates()}showCollapsibleMenu(){this.handleClick(null)}});n(910),n(911),n(912),n(913);var ke=n(24),Ae=n.n(ke);function xe(e){e.paused()?e.play():e.pause()}function Ie(e,t){e.currentTime(e.currentTime()+t)}function Oe(e,t){e.volume(e.volume()+t)}const Le={f:function(e){document[e.fsApi_.fullscreenEnabled]&&(e.isFullscreen()?e.exitFullscreen():e.requestFullscreen())},m:function(e){const t=e.volume(),n=e.lastVolume_();if(0===t){const t=n<.1?.1:n;e.volume(t),e.muted(!1)}else e.muted(!e.muted())},k:xe,space:xe,left:e=>Ie(e,-5),right:e=>Ie(e,5),j:e=>Ie(e,-10),l:e=>Ie(e,10),up:e=>Oe(e,.05),down:e=>Oe(e,-.05)};function Pe(e){const t=Ae()(e);Le[t]&&(e.preventDefault(),e.stopPropagation(),Le[t](this,e))}class Ne extends Error{constructor(e,t){super(e),this.url=t}}var Re=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const De=new class{get(e){return Re(this,void 0,void 0,(function*(){return yield this.parseResponse(yield fetch(e,{method:"GET",mode:"cors"}))}))}parseResponse(e){return Re(this,void 0,void 0,(function*(){if(404===e.status)return null;if(!e.ok)throw new Ne("Ajax error",e.url);return yield e.json()}))}};n.d(t,"a",(function(){return Ve}));var Ue=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Be=450;class Ve{constructor(e,t){if(this.options=r.a.mergeOptions({},Ve.options_,t),null===this.options.playerApi)throw new Error("PlayerApi required");this.initialize(),this.createEl(e),this.buildVideoJs(),this.bindEventListeners(),this.setupSeekBar(),this.player.ready(()=>{this.configurePlugins(),this.options.setup&&this.options.setup(this.options,this.player),this.options.startTime&&this.player.currentTime(this.options.startTime);this.fetch().catch(e=>{this.player.error(e.message),this.options.onError&&this.options.onError(e)})})}initialize(){}configurePlugins(){}buildVideoJs(){return this.player=Object(r.a)(this.el,this.getPlayerOptions())}getPlayerOptions(){return{controls:this.options.controls,autoplay:this.options.autoplay,fluid:!this.options.embed,fill:!!this.options.embed,inactivityTimeout:500,controlBar:{children:["timeWrapper","progressControl","collapserator"]},userActions:{hotkeys:Pe},playbackRates:this.options.playbackRates}}fetch(){return Ue(this,void 0,void 0,(function*(){let e=this.options.fetch;if(void 0===this.options.fetch&&(e=e=>{const t=`${this.options.playerApi.origin}/api/playback?viewKey=${e}`;return De.get(t)}),!this.options.viewKey)throw new Error("Please specify a viewKey or a fetch function");const t=yield e(this.options.viewKey);if(!t)throw new Error("Error fetching playback object");if(t.chapters.list.length>0){const e=this.player.addTextTrack("chapters");t.chapters.list.forEach(t=>{e.addCue({startTime:t.timestamp,endTime:t.endTimestamp,text:t.name})}),e.trigger({type:"loadeddata",target:e})}this.player.progressiveFiles({sources:t.files.progressive.map(e=>({id:e.profile,mimeType:e.mimeType,url:e.url}))}),t.subtitles.list.length>0&&t.subtitles.list.forEach(e=>{"text/vtt"===e.mimeType&&this.player.addRemoteTextTrack({kind:"subtitles",src:e.url,language:e.language,label:e.label,default:e.isDefault},!0)}),t.posterUrl&&this.player.poster(t.posterUrl),this.additionalSetup(t)}))}additionalSetup(e){}createEl(e){let t;"string"==typeof e?(e=(e=>0===e.indexOf("#")?e.slice(1):e)(e),t=r.a.dom.$("#"+e)):t=e;let n="video-js";return this.getPlayerClassName()&&(n+=" "+this.getPlayerClassName()),this.el=r.a.dom.createEl("video",{},{class:n}),t.appendChild(this.el),this.el}getPlayerClassName(){return""}on(e,t){this.player.on(e,t)}one(e,t){this.player.one(e,t)}off(e,t){this.player.off(e,t)}trigger(e,t){return this.player.trigger(e,t)}dispose(){this.player.dispose()}ready(e){this.player.ready(e)}play(){this.player.play()}currentTime(e){return this.player.currentTime(e)}bindEventListeners(){const e=()=>this.configureMenuDimensions();if(this.on("resize",e),this.on("fullscreenchange",e),this.one("play",e),this.on("resizemenus",e),this.player.on("dispose",()=>{this.off("resize",e),this.off("fullscreenchange",e),this.off("resizemenus",e)}),!this.options.hotkeyElQuerySelector)return;const t=r.a.dom.$(this.options.hotkeyElQuerySelector);t&&(this.player.on(t,"keydown",this.player.handleKeyDown),this.player.on("dispose",()=>{this.player.off(t,"keydown",this.player.handleKeyDown)}))}setupSeekBar(){const e=this.getSeekBarName(),t=this.player.controlBar.getChild("progressControl");t.addChild(e),t.setSeekBarName(e)}getSeekBarName(){return"ChapterSeekBar"}configureMenuDimensions(){const e=this.player.currentWidth(),t=this.player.currentHeight()/e*100,n=this.player.el().querySelector(".cv-collapsorator"),r=this.player.el().querySelectorAll(".vjs-menu"),i=n&&n.offsetHeight;i?r&&r.length&&r.forEach(n=>{n.style.paddingTop=`calc(${t}% - ${i}px)`,n.style.marginBottom=i+"px";n.querySelector(".vjs-menu-content")&&(e<=Be?this.player.addClass("cv-player-small"):this.player.removeClass("cv-player-small"))}):this.one("play",()=>this.configureMenuDimensions())}}Ve.options_={viewKey:null,controls:!0,playbackRates:[.5,1,1.5,2],playerApi:new URL("http://localhost:52000"),enableLocalCache:!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),i=n(11),o=n(50),a=n(56),s=n(55),c=n(241),l=n(41),u=n(14),p=n(102),h=n(23);const d=/([A-Z])/g,f=/(^|:)(\w)/gi;class g extends o.AppRouter{constructor(e){super(e),this.bindDisposal(),this.processInternalRoutes(),this.processExternalRoutes(),this.processAppLinks()}bindDisposal(){this.listenTo(h.a.SHELL,l.a.ROUTE,e=>{e.application!==this.channelName&&this.destroyApp()})}addRouteLookup(e,t){this.options.shell.addRouteLookup(`${this.channelName}:${e}`,(n,r)=>a.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 i=r.extend({},this.controller.getAndClearDefaultQueryParams(),t.params);t.params=i,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(a.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 o=this.toMethodName(e.action);a.b.routingStarted();const s=i.Radio.channel(h.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(l.a.NAV_IS_LOCKED,e),void a.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 i=this.controller;if(r.isFunction(i[o])||(a.b.routingEnded(),u.c.throw(new u.b(`${o} does not exist on the ${r.result(i,"name")}.`))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void a.b.routingEnded();i.triggerMethod("load:layout"),i[o].apply(i,[...e.args||[],e.params||{}]),r.isFunction(n)&&n(),a.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(f,(e,t,n)=>n.toUpperCase());return t[0].toLowerCase()+t.slice(1,t.length)}validateAppLink(e){e.application&&e.action||(a.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 o}));var r=n(50),i=n(55);class o extends r.Behavior{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 s}));var r=n(1),i=n(50),o=n(55),a=n(14);class s extends i.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]||a.c.throw(new a.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)||a.c.throw(new a.b(`Layout: ${e.prototype.name} must define an ${t} region.`))})}listenTo(...e){return o.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),i=n(11),o=n(50),a=n(56),s=n(55),c=n(23),l=n(14),u=n(41),p=n(102);class h{constructor(e,t){this.application=e,this.options=t||{}}get Application(){return this.application}get Options(){return this.options}}class d extends o.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=i.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",()=>{a.b.routingEnded()})}bindErrorListener(){const e=i.Radio.channel(c.a.SHELL);this.listenTo(e,u.a.ERROR,this.handleError)}bindRouteLookup(){i.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 h(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,i)=>t(n,r,()=>e(n,r,i))),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){},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";n.r(t);var r=n(360);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(361);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var a=n(362);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);var s=n(363);for(var i in s)"default"!==i&&function(e){n.d(t,e,(function(){return s[e]}))}(i);var c=n(364);for(var i in c)"default"!==i&&function(e){n.d(t,e,(function(){return c[e]}))}(i);var l=n(365);for(var i in l)"default"!==i&&function(e){n.d(t,e,(function(){return l[e]}))}(i);var u=n(366);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);var p=n(367);for(var i in p)"default"!==i&&function(e){n.d(t,e,(function(){return p[e]}))}(i);var h=n(368);for(var i in h)"default"!==i&&function(e){n.d(t,e,(function(){return h[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 u}));var r=n(204),i=n(27),o=n(68),a=n(65),s=n(125),c=n(186),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 u(e){const{fetchData:t,bootstrappedData:n,defaultExpiryTime:u}=e,p=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:e=>e,expiryTime:u});return function(e){return i=>u=>{if(u.type!==a.a.API_REQUEST)return void i(u);const h=e.getState(),d=Object.assign({},p,u.request),{success:f,error:g,always:m,formatData:y}=d,v=l(d,["success","error","always","formatData"]),b=h.flightData.resources[v.key];if(i(u),b&&b.status===o.a.Fetching)return;if(v.bootstrapName&&n[u.request.bootstrapName])return C(n[u.request.bootstrapName]),T(),void delete n[u.request.bootstrapName];const _={resource:v.url,type:v.type,data:v.data,success:C,error:function(t){e.dispatch({type:a.a.API_ERROR,errorResponse:t.responseJSON,request:u.request,timestamp:r.a.currentTimestamp(),xhr:t}),v.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:v.invalidationKeys,request:v});g&&g(t)},always:T};return void(c.a.isSimulated(v)?c.a.simulateFetchData(_,v):t(_));function C(t,n){const i=y(t);let o={result:i,entities:{}};if(v.normalize&&(o=Object(s.b)(i,v.normalizeOptions)),e.dispatch({type:a.a.API_REPONSE,result:o.result,entities:o.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(h.flightData,t.keys),r=Object.assign({},Object.keys(h.flightData.resources).filter(e=>n[e]).reduce((e,t)=>{const n=h.flightData.resources[t];let r=n.response;return n.request.normalize&&(r=Object(s.a)(n.response,h.flightData.entities)),e[t]=r,e},{})),i=t.updateData(r);Object.keys(i).forEach(t=>{const n=h.flightData.resources[t],r=i[t];let o={result:r,entities:{}};n.request.normalize&&(o=Object(s.b)(r,n.request.normalizeOptions)),e.dispatch({type:a.a.UPDATE,result:o.result,entities:o.entities,request:n.request})})}(t)})}if(v.invalidationKeys&&e.dispatch({type:a.a.INVALIDATE,keys:v.invalidationKeys,request:v}),!f)return;let l=o.result;v.normalize&&(l=Object(s.a)(o.result,Object.assign(Object.assign({},h.flightData.entities),o.entities))),f(l)}function T(){m&&m()}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(65),i=n(68),o=n(186);function a(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:i.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:a(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[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}})}}(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:i.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=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(e=>r[e]).reduce((t,n)=>{const r=e.resources[n];return t[n]=Object.assign({},r,{status:i.a.None}),t},{}))}}(e,t);case r.a.UPDATE:return function(e=s,t){const n=t.entities?Object.keys(t.entities):[];return{entities:a(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(143);const i="id";function o(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function a(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}const s={getAll(e,t){const n=a(e);return n&&n.length?n:!n&&t?(t.forEach(t=>s.create(e,t)),a(e)):[]},get(e,t){const n=s.getAll(e);return n.length?n.find(e=>e[i]===t):null},create(e,t){const n=s.getAll(e),r=Object.assign(Object.assign({},t),{[i]:t[i]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()});return n.push(r),o(e,n),r},update(e,t){const n=s.getAll(e);if(!n.length)return t;const r=n.findIndex(e=>e[i]===t[i]);return n[r]=t,o(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[i]===e);n.splice(t,1)}),o(e,n))},assoc(e,t,n,i,a){const c=Array.isArray(a);let l=c?a:[a];"string"==typeof r.a.first(l)&&(l=s.getAll(i).filter(e=>l.includes(e.id)));const u=l.map(e=>e.id?e:s.create(i,e));let p=s.getAll(e);if(!p.length)return;const h=p.find(e=>e.id===t);return h?(u.forEach(e=>{if(h[n])if(Array.isArray(h[n])){if(h[n].find(t=>t.id===e.id))return;h[n].push(e)}else h[n]=e;else h[n]=c?[e]:e}),p=p.map(e=>e.id!==h.id?e:h),o(e,p),c?u:r.a.first(u)):void 0},dissoc(e,t,n,r){let i=s.getAll(e);if(!i.length)return;const a=i.find(e=>e.id===t);if(!a)return;let c=a[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)}),a[n]=c,i=i.map(e=>e.id!==a.id?e:a),o(e,i),i):void 0}}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(220);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,s=t,c=[],l=void 0;i<a&&(l=s.next(e[i]));)s=l,i++;if(i>=a)return[];for(;i<a-1;)l=new o(r),c.push(l),s.on(e[i],l),s=l,i++;return l=new o(n),c.push(l),s.on(e[a-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";n.d(t,"a",(function(){return a}));var r=n(58),i=n(126);const o=i.a.Newest,a={getSortTypeFromName(e){switch(e){case"recently_added":return i.a.RecentlyUpdated;case"atoz":return i.a.AtoZ;case"ztoa":return i.a.ZtoA;case"newest":return i.a.Newest;case"oldest":return i.a.Oldest;default:return i.a.Newest}},getOrSetSortType(e,t){const n=(e=>"playlist:sort:"+e)(e);return!t&&r.a.cacheExists(n)||r.a.cacheSet(n,t||o),t||(t=r.a.cacheGet(n)),t}}},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";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.videoNotFoundError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.videoPrivateError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"VideoPrivateError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.playlistNotFoundError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"PlaylistNotFoundError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(9);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){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 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 l(this,n)}}function l(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 u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="shared.playlistPrivateError",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&&s(e,t)}(l,e);var t,n,r,o=c(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,i.a.getPhrase(p,"title"))}return t=l,(n=[{key:"name",get:function(){return"PlaylistPrivateError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading")}},{key:"description",get:function(){return i.a.getPhrase(p,"description")}}])&&a(t.prototype,n),r&&a(t,r),l}(r.a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(10);function o(e){const t=i.a.getInstance(e);return r.useEffect(()=>()=>i.a.releaseInstance(e)),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(14),i=n(21);class o{constructor(e){this.setData(e)}setData(e){const{collectionPrefix:t,id:n,sort:r,cursor:i}=e;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}toString(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}toParams(){const e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}getSortTypeParam(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}},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){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+' partial-loading-background"></div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(r||(r={}))},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-2"><a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+" - "+c("function"==typeof(o=null!=(o=n.libraryName||(null!=t?t.libraryName:t))?o:s)?o.call(a,{name:"libraryName",hash:{},data:i}):o)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+c("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:s)?o.call(a,{name:"templateText",hash:{},data:i}):o)+'</span>\r\n <span class="query-text">'+c("function"==typeof(o=null!=(o=n.query||(null!=t?t.query:t))?o:s)?o.call(a,{name:"query",hash:{},data:i}):o)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(o=null!=(o=n.dataset||(null!=t?t.dataset:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,u=i.ENTITY_NODE=6,p=i.PROCESSING_INSTRUCTION_NODE=7,h=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,f=i.DOCUMENT_TYPE_NODE=10,g=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,y={},v={},b=(y.INDEX_SIZE_ERR=(v[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),y.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),_=(y.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(v[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),y.NOT_FOUND_ERR=(v[8]="Not found",8)),C=(y.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),y.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));y.INVALID_STATE_ERR=(v[11]="Invalid state",11),y.SYNTAX_ERR=(v[12]="Syntax error",12),y.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),y.NAMESPACE_ERR=(v[14]="Invalid namespace",14),y.INVALID_ACCESS_ERR=(v[15]="Invalid access",15);function T(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,T);return n.code=e,t&&(this.message=this.message+": "+t),n}function S(){}function w(e,t){this._node=e,this._refresh=t,E(this)}function E(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function k(){}function A(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function x(e,t,n,r){if(r?t[A(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&D(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function I(e,t,n){var r=A(t,n);if(!(r>=0))throw T(_,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(D(o,e,n),n.ownerElement=null)}}function O(e){if(this._features={},e)for(var t in e)this._features=e[t]}function L(){}function P(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function N(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(N(e,t))return!0}while(e=e.nextSibling)}function R(){}function D(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function U(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,U(e.ownerDocument,e),t}function V(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===g){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return U(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function j(){}function F(){}function H(){}function z(){}function W(){}function q(){}function G(){}function $(){}function K(){}function Y(){}function J(){}function X(){}function Q(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,n,e,t,a),n.join("")}function Z(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);i.length;var u=e.attributes,m=u.length,y=e.firstChild,v=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",v);for(var b=0;b<m;b++){"xmlns"==(_=u.item(b)).prefix?i.push({prefix:_.localName,namespace:_.value}):"xmlns"==_.nodeName&&i.push({prefix:"",namespace:_.value})}for(b=0;b<m;b++){var _;if(Z(_=u.item(b),0,i)){var C=_.prefix||"",T=_.namespaceURI,S=C?" xmlns:"+C:" xmlns";t.push(S,'="',T,'"'),i.push({prefix:C,namespace:T})}ee(_,t,n,r,i)}if(Z(e,0,i)){C=e.prefix||"",T=e.namespaceURI,S=C?" xmlns:"+C:" xmlns";t.push(S,'="',T,'"'),i.push({prefix:C,namespace:T})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),n&&/^script$/i.test(v))for(;y;)y.data?t.push(y.data):ee(y,t,n,r,i),y=y.nextSibling;else for(;y;)ee(y,t,n,r,i),y=y.nextSibling;t.push("</",v,">")}else t.push("/>");return;case d:case g:for(y=e.firstChild;y;)ee(y,t,n,r,i),y=y.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,P),'"');case s:return t.push(e.data.replace(/[<&]/g,P));case c:return t.push("<![CDATA[",e.data,"]]>");case h:return t.push("\x3c!--",e.data,"--\x3e");case f:var w=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),w)t.push(' PUBLIC "',w),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var k=e.internalSubset;k&&t.push(" [",k,"]"),t.push(">")}return;case p:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}T.prototype=Error.prototype,n(y,T),S.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ee(this[r],n,e,t);return n.join("")}},w.prototype.item=function(e){return E(this),this[e]},r(w,S),k.prototype={length:0,item:S.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new T(C);var n=this.getNamedItem(e.nodeName);return x(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new T(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),x(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return I(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return I(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},O.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new R;if(r.implementation=this,r.childNodes=new S,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new q;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},L.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return V(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var s in n){var c=n[s];"object"!=typeof c&&c!=i[s]&&(i[s]=c)}n.childNodes&&(i.childNodes=new S);switch(i.ownerDocument=t,i.nodeType){case o:var l=n.attributes,u=i.attributes=new k,p=l.length;u._ownerElement=i;for(var h=0;h<p;h++)i.setAttributeNode(e(t,l.item(h),!0));break;case a:r=!0}if(r)for(var d=n.firstChild;d;)i.appendChild(e(t,d,r)),d=d.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,L),n(i,L.prototype),R.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),V(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=t;case g:break;case a:r=!0}i||(i=n.cloneNode(!1));if(i.ownerDocument=t,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(e(t,s,r)),s=s.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return N(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new M;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new S,(t.attributes=new k)._ownerElement=t,t},createDocumentFragment:function(){var e=new Y;return e.ownerDocument=this,e.childNodes=new S,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new J;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new j;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new k;return n.childNodes=new S,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new j,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(R,L),M.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,U(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new w(this,(function(t){var n=[];return N(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new w(this,(function(n){var r=[];return N(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},R.prototype.getElementsByTagName=M.prototype.getElementsByTagName,R.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,L),j.prototype.nodeType=a,r(j,L),F.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(F,L),H.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,F),z.prototype={nodeName:"#comment",nodeType:h},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),q.prototype.nodeType=f,r(q,L),G.prototype.nodeType=m,r(G,L),$.prototype.nodeType=u,r($,L),K.prototype.nodeType=l,r(K,L),Y.prototype.nodeName="#document-fragment",Y.prototype.nodeType=g,r(Y,L),J.prototype.nodeType=p,r(J,L),X.prototype.serializeToString=function(e,t,n){return Q.call(e,t,n)},L.prototype.toString=Q;try{if(Object.defineProperty){Object.defineProperty(w.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(L.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case g:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case o:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=O,t.XMLSerializer=X},function(e,t,n){"use strict";e.exports={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[(i=3*n)+2],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},discardEmulationPreventionBytes:function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},USER_DATA_REGISTERED_ITU_T_T35:4}},function(e,t,n){"use strict";var r=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};r.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},r.prototype.push=function(e){this.trigger("data",e)},r.prototype.flush=function(e){this.trigger("done",e)},r.prototype.partialFlush=function(e){this.trigger("partialdone",e)},r.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},r.prototype.reset=function(e){this.trigger("reset",e)},e.exports=r},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();var a,s=Array.prototype,c=Function.prototype,l=Object.prototype,u=o["__core-js_shared__"],p=(a=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",h=c.toString,d=l.hasOwnProperty,f=l.toString,g=RegExp("^"+h.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,y=E(o,"Map"),v=E(Object,"create");function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function S(e){return!(!A(e)||(t=e,p&&p in t))&&(function(e){var t=A(e)?f.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:n).test(function(e){if(null!=e){try{return h.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function w(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function k(e,t){if("function"!=typeof e||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),a};return n.cache=new(k.Cache||C),n}function A(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=v?v(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(v){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return d.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return v?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=v&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=T(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=T(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return T(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=T(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new b,map:new(y||_),string:new b}},C.prototype.delete=function(e){return w(this,e).delete(e)},C.prototype.get=function(e){return w(this,e).get(e)},C.prototype.has=function(e){return w(this,e).has(e)},C.prototype.set=function(e,t){return w(this,e).set(e,t),this},k.Cache=C,e.exports=k}).call(this,n(95))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function s(){o(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=y(0,0,0,0);function h(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function f(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var l=Math.round(s+o)-t,f=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(f)&&(c-=f)}return y(i.left,i.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):f(e):p}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,i,o,a,s,c,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),l(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);l(this,{target:e,contentRect:u})},_=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new n,T=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new _(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:T;t.a=S}).call(this,n(95))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(103),a=n(46),s=n(9),c=n(320),l=n(316);const u={render:(e,t={})=>{const n=document.getElementById("dialog-region");function r(){a.a.isFunction(t.cancel)&&t.cancel(),Object(o.unmountComponentAtNode)(n)}const s=(t.buttons||[u.getConfirmDefault(),u.getCancelDefault()]).map(e=>{const i=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){i&&(a.a.isFunction(t.success)&&t.success(),Object(o.unmountComponentAtNode)(n)),r(),a.a.isFunction(e.onClick)&&e.onClick()}})});Object(o.render)(i.a.createElement(l.a,{title:t.title,closePopup:r,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName},e,!t.hideButtons&&i.a.createElement(c.a,{buttons:s})),n)},getCancelDefault:()=>({variant:"light",buttonText:s.a.getPhrase("shared.shared-utils","cancel")}),getConfirmDefault:()=>({variant:"dark",success:!0,buttonText:s.a.getPhrase("shared.shared-utils","confirm")})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(40);function o(){return r.createElement("div",{className:"text-center p-5"},r.createElement(i.Spinner,{as:"div",animation:"border",role:"status"}))}},function(e,t,n){"use strict";var r=n(500);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(502);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(503);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(504);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(505);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(506);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(231);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var u=n(507);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var p=n(508);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var h=n(509);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return h.ClassroomGroupColour})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var d=n(510);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var f=n(511);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var g=n(512);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return g.ClassroomGroupColour})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType})),n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var m=n(513);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return m.ClassroomGroupColour})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var y=n(514);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return y.ClassroomGroupColour})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var v=n(515);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return v.ClassroomGroupColour})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var b=n(516);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return b.ClassroomGroupColour})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var _=n(517);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return _.ClassroomGroupColour})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var C=n(518);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return C.ClassroomGroupColour})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(519);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return T.ClassroomGroupColour})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var S=n(520);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return S.ClassroomGroupColour})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var w=n(521);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return w.ClassroomGroupColour})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var E=n(522);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return E.ClassroomGroupColour})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(523);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return k.ClassroomGroupColour})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var A=n(524);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return A.ClassroomGroupColour})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}))},function(e,t,n){"use strict";var r=n(501);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},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){},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";var r=n(526);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(529);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(536);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(537);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(538);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(539);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(540);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var u=n(541);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var p=n(542);n.d(t,"ClassroomGroupColour",(function(){return p.a}));var h=n(543);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var d=n(544);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var f=n(545);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var g=n(232);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var m=n(546);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var y=n(547);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var v=n(548);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var b=n(549);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var _=n(550);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var C=n(551);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(233);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var S=n(552);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType})),n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var w=n(553);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var E=n(554);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(555);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var A=n(556);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var x=n(557);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables})),n.o(x,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return x.InteractionTypeId})),n.o(x,"WidgetType")&&n.d(t,"WidgetType",(function(){return x.WidgetType}));var I=n(234);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var O=n(558);n.d(t,"WidgetType",(function(){return O.a}));var L=n(559);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId}));var P=n(560);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId}));var N=n(561);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables})),n.o(N,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return N.InteractionTypeId}));var R=n(562);n.o(R,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables})),n.o(R,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId}));var D=n(563);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables})),n.o(D,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return D.InteractionTypeId}));var U=n(564);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables})),n.o(U,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return U.InteractionTypeId}));var B=n(565);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables})),n.o(B,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return B.InteractionTypeId}));var V=n(566);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables})),n.o(V,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return V.InteractionTypeId}));var M=n(567);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables})),n.o(M,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return M.InteractionTypeId}));var j=n(568);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables})),n.o(j,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return j.InteractionTypeId}));var F=n(569);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables})),n.o(F,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return F.InteractionTypeId}));var H=n(570);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables})),n.o(H,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return H.InteractionTypeId}));var z=n(571);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables})),n.o(z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return z.InteractionTypeId}));var W=n(572);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(W,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(573);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables})),n.o(q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(574);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables})),n.o(G,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return G.InteractionTypeId}));var $=n(575);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o($,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return $.InteractionTypeId})),n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId}));var K=n(576);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(K,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Y=n(577);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables})),n.o(Y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Y.InteractionTypeId}));var J=n(578);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables})),n.o(J,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return J.InteractionTypeId}));var X=n(579);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables})),n.o(X,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return X.InteractionTypeId})),n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId}));var Q=n(580);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables})),n.o(Q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var Z=n(581);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables})),n.o(Z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Z.InteractionTypeId}));var ee=n(582);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables})),n.o(ee,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ee.InteractionTypeId}));var te=n(583);n.o(te,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return te.BaseNotificationsAppVariables})),n.o(te,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return te.BaseSearchAppVariables})),n.o(te,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return te.InteractionTypeId}));var ne=n(584);n.o(ne,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ne.BaseNotificationsAppVariables})),n.o(ne,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ne.BaseSearchAppVariables})),n.o(ne,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ne.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(527);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(528);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(530);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(531);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(532);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(533);n.d(t,"InteractionTypeId",(function(){return a.a}));var s=n(534);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(535);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(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,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Pizazz="colour:1",e.Emerald="colour:2",e.PictonBlue="colour:3",e.EastSide="colour:4",e.Portage="colour:5"}(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){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(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){},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";var r=n(586);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t,n){"use strict";var r=n(588);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(589);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(590);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(591);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(592);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(593);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(594);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}))},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";var r=n(596);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(597);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(598);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(599);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(600);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(601);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var l=n(602);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}))},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";var r=n(1),i=n(11),o=n(3),a=n(48),s=n(187),c=n(2),l=n(58),u=n(9),p=n(10),h=n(44),d=n(30),f=n(39),g=n(20),m=n(254),y=n(247),v=n(17);const b={showMask(e={}){const{targetSelector:t,additionalClasses:n,fade:r=!0}=e;if($(".mask").length)return;const i=$("<div>",{class:"mask "+(n||"")});return r&&i.addClass("fade show"),$(i).appendTo(b.getTarget(t)),$(b.getTarget(t)).addClass("mask-lock"),i},hideMask(e){const t=e||$(".mask");if(!t.length)return;$(".mask-lock").removeClass("mask-lock"),t.remove()},getTarget(e){const t=$(e||"#app");if(t.length)return t}},_={libraries:{dataServiceName:g.a.Library,eventName:"libraries:sync",getData:e=>e.getLibraries(),getInstance:e=>p.a.getInstance(g.a.Library,e),beforeOnBeforeRender:!0}};var C,T,S;!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(C||(C={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(T||(T={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Subjects="subjects"}(S||(S={}));const w={getContextualSearchQueryParams(e){if(!e||!e.get("filterParam"))return{};return{[e.get("filterParam")]:e.get("filterValue")}}};var E=n(481);const k={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}},A=k.SuggestionLimit,x={prepareQuery:(e,t,n={})=>{const{model:r,libraryIds:i,presentationId:o}=n;r&&r.get("filterValue")&&(e+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`);let a=`${t.url}?q=${e}`;return i&&(a+="&ids="+i),o&&(a+="&presentationId="+o),a},bloodhoundConfig:(e,t)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:r.partial(x.prepareQuery,r,r,t),transform:r.partial(x.handleResult,r,e)}}),handleResult:(e={},t,n={})=>t===S.Subjects?x.processSubjectResult(e[t]):t===S.Video?x.processVideoResult(e[t]):n.showFolder&&t===S.Folder?x.processFolderResult(e[t]):t===S.Series?x.processSeriesResult(e[t]):t===S.Tags?x.processTagsResult(e[t]):[],processSubjectResult:e=>e?(e=x.processCollection(e),r.map(e,e=>(e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e))):[],processVideoResult:e=>e?(e=x.processCollection(e),r.map(e,e=>(e.cached||(e.topics=r.map(e.topics,e=>({name:e})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e))):[],processTagsResult(e){if(!e)return[];const t=p.a.getInstance(f.a.SEARCH,this);return e=x.processCollection(e),r.map(e,e=>(e.cached||(e.url=c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},t.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e))},processSeriesResult:e=>e?(e=x.processCollection(e),r.map(e,e=>{let t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=r.first(e.folder)),r.extend({},e,{collectionType:void 0,collection:t})})):[],processFolderResult:e=>e?(e=x.processCollection(e,{limit:A.Folder}),r.map(e,e=>{const{library:t={}}=e;return t.type===E.a.Exchange&&(t.name="Exchange"),r.extend({},e,{libraryId:t.id,libraryName:t.name,libraryType:t.type})})):[],processCollection(e,t={}){const{limit:n=A.Default}=t;return e.slice(0,n)}},I={getRecentSearches(e,t){let n=t.cacheGet(e);return r.isArray(n)||(n=[]),n},setRecentSearches(e,t,n){r.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches(e,t,n){const{add:i,remove:o,query:a,limit:s=5}=n;let c=I.getRecentSearches(e,t);const l=r.indexOf(c,a);return i&&-1===l&&c.unshift(a),o&&l>-1&&c.splice(l,1),c.length>s&&(c=c.slice(0,s)),I.setRecentSearches(e,c,t),c}};var O=n(306),L=n(649),P=n.n(L),N=n(263),R=n.n(N);class D extends c.a.Component{constructor(e){super(e)}get name(){return"ConfirmSelectionComponent"}get template(){return P.a}get className(){return`suggestion-footer empty-suggestion px-2 ${R.a.selectionContainer} clearfix`}viewOptions(){return{styles:R.a,confirmSelectionText:u.a.getPhrase("shared.utils","confirmSelection",{svg:`<kbd><span class="${R.a.svgContainer}">${v.a.getSvg(v.b.Enter)}</span></kbd>`})}}}const U={handleQuery:(e,t)=>(n,r,i)=>{if(t||(t={}),n&&t.ignoreOnQuery)return r([]);const o=n&&n.length>=k.ActivationLength;return t.fetchType!==T.Local||o?o?e instanceof O?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())},getTemplate(e,t={}){const{fallbackTemplate:n,templateText:i}=t;return t=>{const{query:o}=t;if(!o)return n(...arguments);if(o.length&&o.length<k.ActivationLength)return n(...arguments);const a=r.extend(t,{templateText:i});return e(a)}},getSearchSources:e=>r.map(e,(e,t)=>{const{typeaheadConfig:n,bloodhoundConfig:r,name:i,options:o}=e;let a;return r&&(a=U.buildBloodhound(r(i,o))),n({bloodhound:a,name:i},t,o)}),buildBloodhound:e=>new O(e),selectFirstResult(e,t,n){if(!n)return;if(this.$el.find(".tt-cursor").length)return;const i=r.first(t);if(!i||r.isEmpty(i))return void this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion");const o=this.$el.find(".add-new");!o||i.id?(o&&o.hasClass("tt-cursor")&&o.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):o.addClass("tt-cursor")},emitEventOnInput(e,t,n,o){if(e)return(a,s)=>{i.Radio.channel(e).trigger(t,a,n,r.extend({},o,s))}},resetAssociationOnBlur:e=>function(t,n){const o=this.model.get(n),a=r.isNumber(this.model.id);return e[n]||a?"string"==typeof o&&o.length?a?void(e.id===this.model.id&&(this.model.set(e),i.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(i.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void i.Radio.channel(t).trigger("typeahead:clear:input"))},getConfirmSelectionTemplate:(e={})=>()=>new D(e).render().el,clearInputOnBlur(e){i.Radio.channel(e).trigger("typeahead:clear:input")}};var B;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(B||(B={}));class V extends c.a.Behavior{get defaults(){return{title:"",placement:B.bottom,size:"popover-md"}}set defaults(e){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}events(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}bindListeners(){this.options.toggleEventName&&this.listenTo(this.view.channelName,""+this.options.toggleEventName,this.toggle)}bindBodyClickListener(){$("body").one("click.popover"+this.view.cid,this.onClickOutside.bind(this))}bindDropdownListener(){$("body").one("show.bs.dropdown.popover"+this.view.cid,this.onClickOutside.bind(this))}onPopoverInserted(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}onPopoverHidden(){$("body").off("click.popover"+this.view.cid),$("body").off("show.bs.dropdown.popover"+this.view.cid)}toggle(){this.view.$el.popover("toggle")}hide(){this.view.$el.popover("hide")}onClickPopover(e){e.stopPropagation()}onClickOutside(){this.hide()}getTrigger(){return this.options.toggleEventName?"manual":"click"}onAttach(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}}var M=n(650),j=n.n(M),F=n(651),H=n.n(F),z=n(264),W=n.n(z);class q extends c.a.Component{get name(){return"SearchTipComponentItem"}get template(){return H.a}get className(){return"py-2 "+W.a.tip}viewOptions(){return{styles:W.a}}}class G extends c.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return q}}class K extends c.a.Component{initialize(){this.collection=new c.a.Collection([{term:[""+u.a.getPhrase(this.lang,"firstTerm")],description:""+u.a.getPhrase(this.lang,"firstDescription")},{term:[""+u.a.getPhrase(this.lang,"secondTerm")],description:""+u.a.getPhrase(this.lang,"secondDescription")},{term:[""+u.a.getPhrase(this.lang,"thirdTerm")],description:""+u.a.getPhrase(this.lang,"thirdDescription")},{term:[""+u.a.getPhrase(this.lang,"fourthTerm1"),""+u.a.getPhrase(this.lang,"fourthTerm2")],description:""+u.a.getPhrase(this.lang,"fourthDescription")},{term:[""+u.a.getPhrase(this.lang,"fifthTerm")],description:""+u.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return j.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:V,containerSelector:".popover-container",title:u.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:e=>this.renderTips(e)}]}renderTips(e){this.showChildView(e,new G({collection:this.collection}))}viewOptions(){return{styles:W.a,searchInfoSvg:v.a.getSvg(v.b.Info)}}}class Y extends c.a.Behavior{get defaults(){return{placement:"top"}}set defaults(e){}get ui(){return this.options.selector?{tooltip:this.options.selector}:{}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}getElement(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}getOptions(){const e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}onRender(){const e=this.getElement();e.length&&e.tooltip(this.getOptions())}onBeforeDetach(){const e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}}var J=n(652),X=n.n(J),Q=n(161),Z=n.n(Q);class ee extends c.a.Component{initialize(){this.listenTo(d.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return X.a}get tagName(){return"span"}get className(){return Z.a.searchContextContainer}get behaviors(){return[{behaviorClass:Y,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+Z.a.searchContextTag,clearSvg:"."+Z.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}onMouseEnter(){this.model.set("preventTypeaheadClose",!0)}onMouseLeave(){this.model.set("preventTypeaheadClose",!1)}toggleFocus(e){const t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Z.a.tagFocus):t.removeClass(Z.a.tagFocus))}viewOptions(){return{styles:Z.a,closeSvg:v.a.getSvg(v.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var te=n(653),ne=n.n(te),re=n(654),ie=n.n(re);class oe extends c.a.Component{constructor(e){super(e)}get name(){return"RecentSearchResultComponent"}get template(){return ne.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:ie.a,closeSvg:v.a.getSvg(v.b.Close)}}onClick(e){return e.stopPropagation(),setTimeout(()=>{i.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var ae=n(655),se=n.n(ae);class ce extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"SeriesSearchResultComponent"}get template(){return se.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(h.a.slugify(this.model.get("name"))),c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}viewOptions(){return{url:this.getUrl(),name:this.model.get("name")}}}var le=n(656),ue=n.n(le);class pe extends c.a.Component{get name(){return"TagSearchResultComponent"}get template(){return ue.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}const he="lazy:load:behavior";var de=n(214),fe=n(329),ge=n(657),me=n.n(ge),ye=n(209),ve=n.n(ye);class be extends c.a.Component{constructor(e){super(e)}initialize(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}get name(){return"ThumbnailComponent"}get template(){return me.a}get tagName(){return"a"}get className(){if(this.options.classNameOverride)return this.options.classNameOverride;let e=ve.a.thumbnailContainer+" responsive-img";return this.options.onClickHandler&&(e+=" cursor-pointer"),e}get elements(){return{["."+ve.a.playSvgContainer]:"showPlayIcon",img:"img"}}events(){return{click:"onClick"}}get appLinks(){return this.options.appLink?{"[this]":this.options.appLink}:{}}get attributes(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}showPlayIcon(){this.$el.find("."+ve.a.playSvgContainer).show()}onClick(...e){if(!this.options.appLink&&r.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,...e)}onImageLoad(){this.options.channelName&&i.Radio.channel(this.options.channelName).trigger("thumbnail:load")}viewOptions(){const e=this.model.get("duration");return{styles:ve.a,url:de.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&fe.a.ToDisplayDuration(e),playSvg:v.a.getSvg(v.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}onRender(){if(i.Radio.channel(he).trigger("update:loader"),this.options.lazyload&&this.options.channelName){const e=this.getUI("img");e.length&&(e[0].onload=r.bind(this.onImageLoad,this))}}}var _e=n(658),Ce=n.n(_e);class Te extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return Ce.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getCollection(){const{categories:e,series:t}=this.model;if(e&&e.length){return{name:e.first().get("name"),type:"Folder"}}if(t&&t.get("name"))return{name:t.get("name"),type:"Series"}}getUrl(){const e=[this.model.get("id")];return this.appVariables.addSlugs&&e.push(h.a.slugify(this.model.get("name"))),c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:e}))}renderThumbnail(){const e=new be({model:this.model});this.showChildView("thumbnail",e)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var Se=n(307),we=n(659),Ee=n.n(we);class ke extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(f.a.SEARCH,this)}get name(){return"ClassificationSearchResultComponent"}get template(){return Ee.a}get className(){return"p-2 container-fluid"}regions(){return{cover:{replaceElement:!0,el:".cover-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){return c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),h.a.slugify(this.model.get("name"))]}))}renderThumbnail(){const e=new be({model:this.model,classNameOverride:Se.coverImage+" responsive-img"});this.showChildView("cover",e)}viewOptions(){return{url:this.getUrl(),styles:Se}}onRender(){this.renderThumbnail()}}var Ae=n(482),xe=n.n(Ae),Ie=n(483),Oe=n.n(Ie),Le=n(484),Pe=n.n(Le),Ne=n(485),Re=n.n(Ne),De=n(486),Ue=n.n(De),Be=n(487),Ve=n.n(Be),Me=n(488),je=n.n(Me),Fe=n(489),He=n.n(Fe),ze=n(660),We=n.n(ze),qe=n(308),Ge=n.n(qe),$e=n(661),Ke=n.n($e),Ye=n(662),Je=n.n(Ye),Xe=n(46);n.d(t,"a",(function(){return Ze}));const{SuggestionLimit:Qe}=k;class Ze extends c.a.View{constructor(e){super(e),this.viewCache={}}initialize(){this.contextualSearchService=p.a.getInstance(g.b.ContextualSearch,this),this.appVariables=p.a.getInstance(f.a.SEARCH,this),this.storageHelper=l.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return We.a}get lang(){return"search.searchBar"}get channelName(){return"searchbar:"+this.cid}get className(){return"search-query-container position-relative m-0 w-100 form-control p-0 "+Ge.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}get bindings(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}regions(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:y.a.Component,options:{template:Je.a,className:"w-100",viewOptions:{styles:Ke.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}get recentSearchKey(){return"recent:search:"+this.currentUser.id}bindListeners(){this.listenTo(d.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(d.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(e,t){const{ctor:n,viewOptions:r}=t;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}clearViewCache(){r.each(this.viewCache,e=>e.destroy()),this.viewCache={}}getDynamicTemplate(e){return e===C.Recent?e=>this.getOrCacheView("recent:"+e,{ctor:oe,viewOptions:{model:new c.a.Model({name:e}),channelName:this.channelName}}).render().el:e===S.Subjects?e=>this.getOrCacheView(e.id,{ctor:ke,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Video?e=>this.getOrCacheView(e.id,{ctor:Te,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Folder?xe.a:e===S.Series?e=>this.getOrCacheView(e.id,{ctor:ce,viewOptions:{model:new c.a.Model(e)}}).render().el:e===S.Tags?e=>this.getOrCacheView(e.id,{ctor:pe,viewOptions:{model:new c.a.Model(e)}}).render().el:void 0}getLimits(e){return S.Folder,Qe.Folder}updateSearchHistory(e){const{add:t,remove:n}=e;let{query:r}=e;r=r.trim();const i=I.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Qe.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(i),i}handleRecentSearch(){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(I.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(e,t){if(t===S.Series){const t=[e.id];return this.appVariables.addSlugs&&t.push(h.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:t})}if(t===S.Video){const t=[e.id];return this.appVariables.addSlugs&&t.push(h.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t})}return t===S.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===S.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id,h.a.slugify(e.name)]}):void 0}onTypeaheadSelect(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?S.Subjects:n,"object"==typeof t&&t.id){const e=this.getInstantSearchAppLink(t,n);if(!e)return!1;const{data:r,action:l}=a.a.buildInstantSearchEvent(this.model.get("query"),t,n);return s.a.log(o.UserAction.InstantSearch,r,l),this.model.clear(),this.getUI("input").typeahead("close"),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(e),!1}const r="string"==typeof t?t:t.query;this.model.set({query:r});const l=n===C.Recent?o.DirectSearchDescriptor.Recent:o.DirectSearchDescriptor.ShowAll;return this.submitQuery(l),!1}onClickSearch(e){return e.stopPropagation(),this.submitQuery(o.DirectSearchDescriptor.SearchIcon),!1}onClickClose(){Xe.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}onSubmit(e){return e.preventDefault(),this.submitQuery(o.DirectSearchDescriptor.Submit),!1}submitQuery(e){this.updateInitialQuery();const t=this.model.get("query");if(!t)return;this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=w.getContextualSearchQueryParams(this.searchContext);i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(e,t){const{data:n,action:r}=a.a.buildSearchEvent(e,t);s.a.log(o.UserAction.Search,n,r)}onTypeaheadOpen(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const e=this.model.get("query");e&&e.length>=k.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}onBeforeTypeaheadClose(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),b.showMask())}hideMask(){this.options.disableMask||b.hideMask()}alignTypeahead(){const e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}onTypeaheadRender(e,t,n,r){r===C.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:select",r.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",r.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",r.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",r.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",r.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:open",r.bind(this.showMask,this)),e.on("typeahead:close",r.bind(this.hideMask,this)),e.on("typeahead:select",r.bind(()=>{c.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(e){8!==e.keyCode||this.model.get("query")||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const e=I.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}getDynamicBloodhoundConfig(){return x.bloodhoundConfig}getDynamicTypeaheadConfig(){const e=U.getTemplate(Ve.a,{fallbackTemplate:Re.a}),t=U.getTemplate(Pe.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:this.getConfigName(n.name),source:U.handleQuery(n.bloodhound,{fetchType:T.Remote}),limit:this.getLimits(n.name),display:e=>e.name,async:!0,templates:{header:e,pending:0===r?t:Re.a,notFound:Re.a,suggestion:this.getDynamicTemplate(n.name),footer:Ue.a}})}getConfigName(e){switch(e){case S.Subjects:return u.a.getPhrase(this.lang,"classifications");case S.Video:return u.a.getPhrase(this.lang,"videos");case S.Tags:return u.a.getPhrase(this.lang,"tags");case S.Series:return u.a.getPhrase(this.lang,"series")}return e}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:C.Recent,source:U.handleQuery(this.recentSearchEngine,{fetchType:T.Local,ignoreOnQuery:!0}),limit:Qe.Default,templates:{header:()=>je.a({templateText:u.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(C.Recent)}}]}getDirectSearchSources(){return[{name:C.Direct,source:U.handleQuery(),display:e=>e.query,templates:{suggestion:U.getTemplate(Oe.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"allResults")}),footer:Ue.a}}]}getDynamicSearchSources(){const e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return U.getSearchSources([{name:S.Subjects,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:S.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}getSources(){const e=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&e.push(...this.getRecentSearchSources()),e}getNoLibrariesSource(){return[{name:"NoLibrary",source:U.handleQuery(),display:e=>e.query,templates:{suggestion:U.getTemplate(He.a,{fallbackTemplate:Re.a,templateText:u.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(e=>e.id)}viewOptions(){return{styles:Ge.a,svg:v.a.getSvg(v.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:v.a.getSvg(v.b.Close),libraryText:this.appVariables.searchBarPlaceholder||u.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:m.b.currentUser,libraryCollection:_.libraries}}renderSearchTips(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new K)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),i.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new ee({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),i.Validation.unbind(this)}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(340),a=n(6);n(914);const s=a.a.getComponent("Button");class c extends s{constructor(e){super(e)}buildCSSClass(){return"vjs-example-button "+super.buildCSSClass()}}c.prototype.controlText_="Example Button",a.a.registerComponent("ExampleButton",c);var l=n(249);function u(){return i.a.createElement("button",{style:{height:"100%",cursor:"pointer"},onClick:()=>console.log("Clicked React Button")},"React Button")}a.a.registerComponent("ExampleReactButton",Object(l.a)(()=>i.a.createElement(u,null)));const p=a.a.getPlugin("plugin");a.a.registerPlugin("examplePlugin",class extends p{constructor(e,t){super(e,t),e.ready(()=>this.onReady())}onReady(){this.player.controlBar.getChild("collapserator").addChild("exampleReactButton")}});const h=a.a.getPlugin("plugin"),d="play",f="playing",g="pause",m="seeking",y="seekstart",v="seekend",b="ended",_="pausedseek",C="timeupdate";a.a.registerPlugin("progressReporterPlugin",class extends h{constructor(e,t){super(e,t),this.eventBuffer=[],this.latestTime=0,this.lastPlayingTime=0,this.isPlaying=!1,this.isSeeking=!1,this.hasEnded=!1,this.shouldLogPlayOnTimeUpdate=!1,this.options=t,this.initialize()}initialize(){this.validateOptions(),this.bindListeners(),this.startInterval()}validateOptions(){if("function"!=typeof this.options.onFlush)throw new Error("Please provide the onFlush option")}bindListeners(){const e={[d]:()=>this.onPlay(),[g]:()=>this.onPause(),[C]:()=>this.onTimeUpdate(),[m]:()=>this.onSeeking(),[b]:()=>this.onEnded()};for(const t in e)e.hasOwnProperty(t)&&this.player.on(t,e[t])}startInterval(){const e=this.options.interval||5e3;setInterval(()=>this.flushBuffer(),e)}onPlay(){return this.isPlaying=!0,this.isSeeking?(this.logEvent(v),void(this.isSeeking=!1)):this.hasEnded?(this.shouldLogPlayOnTimeUpdate=!0,void(this.hasEnded=!1)):void this.logEvent(d)}onPause(){this.isSeeking||(this.pauseTimeout=window.setTimeout(()=>{this.isPlaying=!1,this.logEvent(g),delete this.pauseTimeout},50))}onTimeUpdate(){this.shouldLogPlayOnTimeUpdate&&(this.shouldLogPlayOnTimeUpdate=!1,this.logEvent(d)),this.isPlaying&&!this.isSeeking&&this.logEvent(f)}onSeeking(){this.pauseTimeout&&(this.latestTime=this.previousLatestTime,window.clearTimeout(this.pauseTimeout),delete this.pauseTimeout),this.isPlaying||this.logEvent(_),!this.isSeeking&&this.isPlaying&&(this.isSeeking=!0,this.logEvent(y))}onEnded(){this.hasEnded=!0,this.logEvent(b)}logEvent(e){let t=this.player.currentTime();e===y&&(t=this.latestTime),this.previousLatestTime=this.latestTime,this.latestTime=this.player.currentTime(),this.eventBuffer.push({time:t,type:e})}shouldUseCarriedOverTime(e){return this.lastPlayingTime&&(e===f||e===d)}shouldClearCarriedOverTime(e){return e===b||e===_}flushBuffer(){const e=[];let t={};for(;this.eventBuffer.length;){const n=this.eventBuffer.shift();this.shouldClearCarriedOverTime(n.type)?delete this.lastPlayingTime:t.start?n.type===f&&this.eventBuffer.length>0||(this.shouldUseCarriedOverTime(n.type)&&(this.lastPlayingTime=n.time),t.end=n,e.push(t),t={}):(this.shouldUseCarriedOverTime(n.type)&&(n.time=this.lastPlayingTime,delete this.lastPlayingTime),t.start=n)}this.eventBuffer=[],e.length&&this.options.onFlush(e)}});const T=a.a.getPlugin("plugin"),S="cv-persisttest";a.a.registerPlugin("persistVolumePlugin",class extends T{constructor(e){super(e),this.initialize()}initialize(){if(!this.hasLocalStorage())return;this.player.on("volumechange",()=>{this.store("cv-volume",this.player.volume().toString()),this.store("cv-mute",this.player.muted().toString())});const e=this.get("cv-volume"),t=this.get("cv-mute");e&&this.player.volume(+e),t&&this.player.muted("true"===t)}store(e,t){window.localStorage.setItem(e,t)}get(e){return window.localStorage.getItem(e)}hasLocalStorage(){try{return window.localStorage.setItem(S,"persistVolume"),window.localStorage.removeItem(S),!0}catch(e){return!1}}});const w=a.a.getPlugin("plugin");a.a.registerPlugin("fullscreenOnRotatePlugin",class extends w{constructor(e){super(e),this.hasScreenOrientation()&&this.player.supportsFullScreen()&&(this.onRotate=this.onRotate.bind(this),this.onFullscreenChange=this.onFullscreenChange.bind(this),this.initialize())}initialize(){window.addEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.on("fullscreenchange",this.onFullscreenChange),this.player.one("dispose",()=>{window.removeEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.off("fullscreenchange",this.onFullscreenChange)})}onFullscreenChange(){!this.getAngle()&&this.player.isFullscreen()?window.screen.orientation.lock("portrait-primary"):window.screen.orientation.unlock()}onRotate(){const e=this.getAngle();90===e||-90===e||270===e?this.player.requestFullscreen():this.player.isFullscreen()&&this.player.exitFullscreen()}hasScreenOrientation(){var e,t;return"function"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.lock)}hasScreenLock(){var e,t;return"function"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.lock)}getAngle(){var e,t;return"number"==typeof(null===(t=null===(e=window.screen)||void 0===e?void 0:e.orientation)||void 0===t?void 0:t.angle)?window.screen.orientation.angle:0}});n(915);const E=a.a.getComponent("Button");class k extends E{constructor(e,t){super(e,t),this.update=function(e,t){let n=window.performance.now();return function(...r){const i=window.performance.now();i-n>=t&&(e(...r),n=i)}}(this.update.bind(this),1e3),e.on("timeupdate",this.update),e.on("dispose",()=>{e.off("timeupdate",this.update)})}update(){const e=this.player_.currentTime();this.el_.href=this.options_.getExternalLink({currentTime:Math.round(e)})}buildCSSClass(){return"cv-open-externally-button"}createEl(){const e={innerHTML:"<svg viewBox='0 0 434 71'><g><path fill='#FFFFFF' d='M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z'/><path fill='#F8981D' d='M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z'/></g></svg>",className:this.buildCSSClass()},t={type:"button",href:this.options_.getExternalLink({currentTime:0}),target:"_blank"},n=a.a.dom.createEl("a",e,t);return this.createControlTextEl(n),n}}k.prototype.controlText_="Open in ClickView",a.a.registerComponent("OpenExternallyButton",k);const A=a.a.getPlugin("plugin");a.a.registerPlugin("openExternallyPlugin",class extends A{constructor(e,t){super(e,t),this.options=t,e.ready(()=>this.onReady())}onReady(){const e=this.player.controlBar.getChild("collapserator");e.addChild("OpenExternallyButton",{getExternalLink:this.options.getExternalLink},e.children_.length-2)}});const x=a.a.getPlugin("plugin");a.a.registerPlugin("clipPlugin",class extends x{constructor(e,t){if(super(e),void 0===t.startTime)throw Error("Invalid clip start");if(void 0===t.endTime)throw Error("Invalid clip end");if(t.startTime>t.endTime)throw Error("Clip start cannot be greater than clip end");this._clipStart=t.startTime,this._clipEnd=t.endTime,this.playerEndedFn=this.player.ended.bind(e),this.playerDurationFn=this.player.duration.bind(e),this.playerCurrentTimeFn=this.player.currentTime.bind(e),this.playerbufferedFn=this.player.buffered.bind(e),this.player.ended=this.ended.bind(this),this.player.duration=this.duration.bind(this),this.player.currentTime=this.currentTime.bind(this),this.player.buffered=this.buffered.bind(this),this.initialize(),this.player.ready(()=>{this.player.trigger("durationchange")})}get clipStart(){const e=this.playerDurationFn();return this._clipStart>e?e:this._clipStart}get clipEnd(){const e=this.playerDurationFn();return this._clipEnd>e?e:this._clipEnd}dispose(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange")}initialize(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay),this.player.on("dispose",()=>{this.dispose()})}onPlay(){this._isEnded&&this.player.currentTime(0)}onTimeUpdate(){const e=this.getCurrentTime(!1);e>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,e<this.clipStart&&this.playerCurrentTimeFn(this.clipStart))}ended(){return this.getCurrentTime(!1)>this.clipEnd}duration(e){return void 0!==e&&this.playerDurationFn(e),this.clipEnd-this.clipStart}currentTime(e){if(void 0===e)return this.getCurrentTime(!0);const t=e+this.clipStart;this.playerCurrentTimeFn(t)}getCurrentTime(e){const t=this.playerCurrentTimeFn();let n=0;return t>=this.clipStart&&(n=t-this.clipStart),this.player.getCache().currentTime=n,e?n:t}buffered(){const e=this.playerbufferedFn(),t=[];for(let n=0;n<e.length;n++)t[n]=[Math.max(0,e.start(n)-this.clipStart),Math.min(Math.max(0,e.end(n)-this.clipStart),this.player.duration())];return a.a.createTimeRanges(t)}});n(916);const I=a.a.getComponent("component");a.a.registerComponent("TouchControls",class extends I{constructor(e,t){super(e,t)}buildCSSClass(){return"cv-touch-control-ui "+super.buildCSSClass()}createEl(e,t,n){return super.createEl(e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}setUi(e,t){const n=e>0,r=n?"cv-touch-right":"cv-touch-left";this.el_.className=this.buildCSSClass()+" cv-ui-touch-active",this.el_.innerHTML=`\n <div class='${r}'>\n <div class='cv-touch-text'>\n ${n?"+":""}${10*e}s\n </div>\n </div>\n `,window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.removeText()},t)}removeText(){this.el_.className=this.buildCSSClass(),this.el_.innerHTML=""}});const O=a.a.getPlugin("plugin");a.a.registerPlugin("touchControls",class extends O{constructor(e){super(e),this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0,this.bindFunctions(),this.initialize()}bindFunctions(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.reBindEventListeners=this.reBindEventListeners.bind(this),this.unBindEventListeners=this.unBindEventListeners.bind(this)}initialize(){this.player.addChild("TouchControls"),this.touchControls=this.player.getChild("TouchControls"),this.player.on("ready",this.reBindEventListeners),this.player.on("dispose",this.unBindEventListeners),this.reBindEventListeners()}reBindEventListeners(){this.unBindEventListeners(),this.tech=this.player.tech(!0),this.on(this.tech,"touchstart",this.onTouchStart),this.on(this.tech,"touchend",this.onTouchEnd)}unBindEventListeners(){this.tech&&(this.off(this.tech,"touchstart",this.onTouchStart),this.off(this.tech,"touchend",this.onTouchEnd))}onTouchStart(e){this.touchStartTime=e.timeStamp}onTouchEnd(e){if(e.changedTouches.length){if(e.timeStamp-this.lastTouchTime<300)return this.onDoubleTouch(e),void(this.lastTouchTime=e.timeStamp);this.resetProperties(),this.lastTouchTime=e.timeStamp,e.timeStamp-this.touchStartTime<300&&window.setTimeout(()=>{this.doubleTouchCount||(this.player.paused()?this.player.play():this.player.pause())},300)}}resetProperties(){this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0}onDoubleTouch(e){const t=this.player.el().getBoundingClientRect(),n=t.left+t.width/2;if(0===this.doubleTouchCount&&(this.seekStartTime=this.player.currentTime(),e.changedTouches[0].pageX<n?this.directionModifier=-1:this.directionModifier=1),this.doubleTouchCount++,this.directionModifier<0){if(10*this.doubleTouchCount>this.seekStartTime+10)return;return this.touchControls.setUi(-this.doubleTouchCount,900),void this.player.currentTime(this.player.currentTime()-10)}const r=this.player.duration()-this.seekStartTime;10*this.doubleTouchCount>r+10||(this.touchControls.setUi(this.doubleTouchCount,900),this.player.currentTime(this.player.currentTime()+10))}});var L=n(112);n(917);function P(e){var t;const[n,i]=r.useState(105),o=r.useRef(e.player.duration()-e.player.currentTime()),[a,s]=r.useState(o.current);function c(){const t=e.player.el().querySelector(".vjs-control-bar"),n=null==t?void 0:t.offsetHeight;isNaN(n)||i(n+15)}function l(){const t=e.player.duration()-e.player.currentTime();s(t),t>o.current&&(o.current=t)}if(r.useEffect(()=>(c(),e.player.on("resize",c),e.player.on("fullscreenchange",c),e.player.on("timeupdate",l),()=>{e.player.off("resize",c),e.player.off("fullscreenchange",c),e.player.off("timeupdate",l)}),[]),!e.nextVideo||!e.onPlayNext)return r.createElement(r.Fragment,null);const u=(o.current-a)/o.current*100,p=Math.ceil(a),h=1===p?"second":"seconds";return r.createElement("div",{className:"cv-up-next-container rounded",style:{bottom:n+"px"}},r.createElement("div",{className:"cv-up-next-progress-bar rounded",style:{width:u+"%"}}),r.createElement("div",{className:"row no-gutters"},r.createElement("div",{className:"col-6"},r.createElement("div",{className:"cv-up-next-thumbnail-container",onClick:e.onPlayNext},r.createElement("div",{className:"cv-up-next-thumbnail-mask"},r.createElement("div",{className:"position-relative w-100 h-100"},r.createElement("div",{className:"cv-up-next-play-icon-container"},r.createElement("div",{className:"position-relative w-100 h-100"},r.createElement("span",{className:"cv-up-next-play-icon"}))))),r.createElement("img",{className:"img-fluid",src:null===(t=e.nextVideo)||void 0===t?void 0:t.thumbnailUrl}))),r.createElement("div",{className:"col-5 pl-2 pt-2"},r.createElement("p",null,"Up next in ",p," ",h),r.createElement("p",null,e.nextVideo.name)),r.createElement("div",{className:"col-1 pr-1"},r.createElement("div",{className:"close cv-cancel-up-next cursor-pointer",role:"button",onClick:e.onCancel},"×"))))}a.a.registerComponent("UpNext",Object(l.a)((e,t)=>r.createElement(P,Object.assign({player:e},t))));const N=a.a.getPlugin("plugin");a.a.registerPlugin("nextVideoPlugin",class extends N{constructor(e){super(e),this.setShouldPlayNext=this.setShouldPlayNext.bind(this),this.getShouldPlayNext=this.getShouldPlayNext.bind(this),this.setChapterTrack=this.setChapterTrack.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),e.ready(()=>{this.initialize()})}initialize(){this.hasLocalStorage=this.testHasLocalStorage(),L.a.useTrack(this.player,"chapters",null,this.setChapterTrack),this.bindListeners()}setNextVideo(e,t){var n;this.nextVideo=e,this.callback=t;(null===(n=this.player.controlBar.getChild("collapserator"))||void 0===n?void 0:n.getChild("cogButton")).showPlayNext()}getShouldPlayNext(){if(!this.hasLocalStorage)return void 0===this.shouldPlayNextVideo&&(this.shouldPlayNextVideo=!0),this.shouldPlayNextVideo;const e=window.localStorage.getItem("cv-play-next-video");return null===e||"true"===e}setShouldPlayNext(e){this.hasLocalStorage?window.localStorage.setItem("cv-play-next-video",e.toString()):this.shouldPlayNextVideo=e}setChapterTrack(e){this.chapterTrack=e}bindListeners(){this.player.on("timeupdate",this.onTimeUpdate)}unbindListeners(){this.player.off("timeupdate",this.onTimeUpdate)}onTimeUpdate(){var e,t,n,r;if(!this.getShouldPlayNext())return void this.hideUpNext();if(this.upNextRendered&&this.player.currentTime()>this.upNextTimepoint)return;"credits"===(null===(r=null===(n=(null===(t=null===(e=this.chapterTrack)||void 0===e?void 0:e.activeCues)||void 0===t?void 0:t.length)&&this.chapterTrack.activeCues[0])||void 0===n?void 0:n.text)||void 0===r?void 0:r.toLowerCase())||this.player.currentTime()>=this.player.duration()-5?this.showUpNext():this.hideUpNext()}showUpNext(){this.upNextRendered||(this.upNextRendered=!0,this.upNextTimepoint=this.player.currentTime(),this.player.addChild("UpNext",{nextVideo:this.nextVideo,onPlayNext:this.callback,onCancel:()=>{this.hideUpNext(),this.setShouldPlayNext(!1)}}))}hideUpNext(){if(!this.upNextRendered)return;this.upNextRendered=!1,this.upNextTimepoint=null;const e=this.player.getChild("UpNext");e&&this.player.removeChild(e)}testHasLocalStorage(){try{return window.localStorage.setItem("cv-persisttest","persistVolume"),window.localStorage.removeItem("cv-persisttest"),!0}catch(e){return!1}}});n(918);const R=a.a.getComponent("Button");class D extends R{constructor(){super(...arguments),this.alwaysCollapsed=!1,this.isCollapsed=!1,this.isCollabsible=!0}buildCSSClass(){return"cv-create-clip-button"}getCollabsibleName(){return this.controlText_}getCollabsibleValue(){return""}showInCollabsibleMenu(){return!0}showCollapsibleMenu(){super.handleClick(null)}}D.prototype.controlText_="Create Clip",a.a.registerComponent("CreateClipButton",D);const U=a.a.getPlugin("plugin");a.a.registerPlugin("createClipButtonPlugin",class extends U{constructor(e,t){super(e,t),this.options=t,e.ready(()=>this.onReady())}onReady(){var e;const t=this.player.controlBar.getChild("collapserator"),n=null===(e=null==t?void 0:t.children())||void 0===e?void 0:e.findIndex(e=>"CustomControlSpacer"===e.name());n&&-1!==n&&t.addChild("CreateClipButton",{clickHandler:this.options.onClick},n+1)}});var B=n(259),V=n(3),M=n(185);const j={version:"1.0.0",region:"cv-ap-southeast-1",urls:{collectionApi:{cvApSoutheast1:"https://staging-collection.clickview.com.au/",cvApSoutheast2:"https://staging-collection.clickview.com.au/",cvEuWest1:"https://staging-collection.clickview.co.uk/"}},collectionApiClientId:"cv_webplayer"};const F=class{constructor(){this.initialize()}static get Instance(){return this.instance||(this.instance=new this)}logStream(){this.collectionApiClient.log({type:V.UserAction.Stream,actionContext:this.getActionContext(),data:{},eventVersion:V.EventVersion.V1})}logVideoProgress(e){this.collectionApiClient.log(e.map(e=>({type:V.UserAction.StreamProgress,actionContext:this.getActionContext(),data:{progress:e,video:{}},eventVersion:V.EventVersion.V1})))}initialize(){this.setupCollectionApiClient()}setupCollectionApiClient(){this.collectionApiClient=new B.a({productName:"webplayer.web",productVersion:j.version,regionName:j.region,collectionApiUrls:j.urls.collectionApi,collectionApiClientId:j.collectionApiClientId,getUser:this.getCurrentUser,shouldLog:M.a.shouldLog,formatData:M.a.formatData})}getCurrentUser(){return{}}getActionContext(){return{entity:V.EntityType.Video,location:V.LocationContext.Player,productArea:null,descriptor:null,workflowPhase:null}}}.Instance;var H=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class z extends o.a{constructor(e,t){super(e,t)}configurePlugins(){try{const e=this.player;e.progressReporterPlugin({onFlush:e=>F.logVideoProgress(e)}),e.persistVolumePlugin(),e.fullscreenOnRotatePlugin(),e.touchControls(),this.options.getExternalLink&&e.openExternallyPlugin({getExternalLink:this.options.getExternalLink}),this.options.onClickCreateClip&&e.createClipButtonPlugin({onClick:this.options.onClickCreateClip})}catch(e){console.log("failed to register plugins",e)}}setNextVideo(e,t){this.player.nextVideoPlugin().setNextVideo(e,t)}additionalSetup(e){const t=Object.create(null,{additionalSetup:{get:()=>super.additionalSetup}});return H(this,void 0,void 0,(function*(){if(t.additionalSetup.call(this,e),"MasterClip"===e.mediaType){const t=e.additionalData;if(null===t)throw Error("Invalid clip data");this.player.clipPlugin({startTime:t.startTime,endTime:t.endTime})}}))}}n.d(t,"a",(function(){return q}));var W=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 q(e){const{className:t="",playerApi:n,onReady:r,onDispose:o}=e,a=W(e,["className","playerApi","onReady","onDispose"]),s=i.a.useRef(),c=i.a.useRef();return i.a.useEffect(()=>{var e;if(null===(e=c.current)||void 0===e||e.dispose(),s)return c.current=new z(s.current,Object.assign(Object.assign({},a),{playerApi:n&&new URL(n)})),r&&c.current.ready(()=>{r(c.current)}),o&&c.current.one("dispose",o),()=>{var e;null===(e=c.current)||void 0===e||e.dispose()}},[e.viewKey]),i.a.createElement("div",{ref:s,className:t})}},function(e,t,n){"use strict";var r,i=n(318);!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));class o extends i.BaseCollectionIdentifier{getSortTypeParam(){return r[this.sort]}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(39);class i{get name(){return r.a.SEARCH}}class o{get name(){return r.a.NOTIFICATIONS}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(27);function i(e){const{getResponseHeader:t,responseJSON:n,status:r}=e;return{getResponseHeader:t,responseJSON:n,status:r}}const o=[r.a.POST,r.a.PUT];function a(e){const{resource:t,type:n,headers:r,success:a,error:s,always:c}=e,l={url:t,method:n};o.includes(n)&&e.data&&(l.data=JSON.stringify(e.data)),r&&(l.headers=r),$.ajax(l).done((e,t,n)=>{a&&a(e,i(n))}).fail(e=>{s&&s(i(e))}).always(()=>{c&&c()})}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(80);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 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),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),c=s(r),l=e.apply(void 0,[function(){return o++,a.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=a,u.dependencies=c,u.recomputations=function(){return o},u.resetRecomputations=function(){return o=0},u}}var l=c(a);var u=n(204),p=n(72),h=n(65),d=n(125),f=n(68),g=n(0);n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"e",(function(){return T})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return w})),n.d(t,"f",(function(){return E}));class m{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===f.a.None||this.isExpired}get isExpired(){return u.a.isExpired(this.requestTime,this.cacheDuration)}get isFetching(){return this.status===f.a.Fetching}get hasError(){return this.status===f.a.Error}get isComplete(){return this.status===f.a.Success||this.status===f.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 m({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function v(){return new m({status:f.a.None})}function b(e,t){return y(t,e.flightData.resources[t],e.flightData.entities)}function _(e,t){return()=>{C(e,t)}}function C(e,t){e({type:h.a.API_REQUEST,request:t})}function T(e,t,n){var r,i,o,a;const s=b(t,null==n?void 0:n.key);n&&s.shouldFetch?C(e,n):s.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,s.data),null===(a=n.always)||void 0===a||a.call(n))}function S(e){const t=Object(r.useDispatch)();if(e)return _(t,e)}function w(e,t){const n=Object(g.useMemo)(()=>(null==t?void 0:t.optimize)?function(e){return c(a,(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 E(e,t){const n=Object(r.useDispatch)(),i=w(e&&e.key,t),o=_(n,e);return e&&i.shouldFetch&&o(),i}},function(e,t,n){"use strict";var r=n(0),i=n(106),o=n(633),a=n(76);function s(e){var t="".concat(e.webPlayerHost,"home/ev?vid=").concat(e.id);return e.startTime&&(t+="&t=".concat(e.startTime)),r.createElement("div",{className:"embed-responsive ".concat(e.className?e.className:"")},r.createElement("iframe",{src:t,className:"embed-responsive-item",allowFullScreen:!0,allow:"autoplay; fullscreen"}))}var c=n(312);function l(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(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 u(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 u(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){var t=l(Object(i.a)(a.a.WEB_PLAYER_DATA),2)[1],n=l(r.useState(!1),2),u=n[0],p=n[1],h=r.useRef();return r.useEffect((function(){p(!1),t("allowFloatingPlayer",!0)}),[e.viewKey]),r.useEffect((function(){h.current&&h.current.currentTime(e.startTime)}),[e.startTime]),r.createElement("div",{ref:e.innerRef},u?r.createElement(s,{webPlayerHost:e.webPlayerUrl,id:e.videoId,className:e.embed?c.embeddedPlayer:"embed-responsive-16by9"}):r.createElement(o.a,{viewKey:e.viewKey,startTime:e.startTime,playerApi:e.playerApiUrl,hotkeyElQuerySelector:"body",onReady:function(t){h.current=t,e.onReady&&e.onReady(h.current)},onError:function(n){p(!0),t("allowFloatingPlayer",!1),e.onError&&e.onError(n)},onDispose:e.onDispose,onClickCreateClip:e.onClickCreateClip,embed:e.embed,className:e.embed?c.embeddedPlayer:"",autoplay:e.autoplay}))}n.d(t,"a",(function(){return p}))},function(e,t){e.exports=g},function(e,t,n){e.exports=n(870).default},function(e,t){e.exports=m},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.unreadCount:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.unreadCount:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.unreadCount:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.heading:o,t))+"</h4>\r\n"},3:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return"<p>"+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.description:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+s(a(null!=(o=null!=t?t.options:t)?o.imageClass:o,t))+'"/>\r\n'+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.heading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.description:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.actionText:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.actionText:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+" "+s(a(null!=(o=null!=t?t.options:t)?o.iconClass:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.icon:o,t))?o:"")+'</div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.content:o,t))+"</div>\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showActionText:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.notificationTime:o,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:i}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.hasNotifications:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.notificationsContainer:o,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.confirmSelectionText:o,t))?o:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'" data-toggle="popover">\r\n '+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.searchInfoSvg:o,t))?o:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c=e.lambda,l=e.escapeExpression;return' <span class="border rounded align-middle '+l(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.term:s,t))+'">'+l(c(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+l(e.lambda(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.termContainer:s,t))+'">\r\n'+(null!=(s=n.each.call(u,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,i,0,o,a),inverse:e.noop,data:i}))?s:"")+"</span>\r\n<span>"+l("function"==typeof(c=null!=(c=n.description||(null!=t?t.description:t))?c:e.hooks.helperMissing)?c.call(u,{name:"description",hash:{},data:i}):c)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchContextTag:o,t))+'" title="'+c("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:u)?a.call(l,{name:"title",hash:{},data:i}):a)+'">\r\n <span>'+c("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:u)?a.call(l,{name:"searchTag",hash:{},data:i}):a)+'</span>\r\n <span class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+s(c(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.removeRecent:o,t))+'">'+(null!=(o=c(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return"<img "+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+'src="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'" class="img-fluid lazy-img w-100 '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.thumbnail:o,t))+'" />\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.playIcon:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,n,r,i){return"data-"},4:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.playSvgContainer:o,t))+'" '+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"},5:function(e,t,n,r,i){return'style="display: none;"'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge float-right '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationOverlay:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda;return(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.url:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'<div class="'+e.escapeExpression(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.duration:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"aligned"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <div class="result-title collection"> '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.type:o,t))+": "+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<a class="row" href="'+s(e.lambda(null!=(o=null!=t?t.options:t)?o.url:o,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(o=n.unless.call(c,null!=(o=null!=t?t.options:t)?o.collection:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:i}):a)+"</div>\r\n"+(null!=(o=n.if.call(c,null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression;return'<a class="row" href="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'">\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.coverContainer:o,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.textContainer:o,t))+' px-2">\r\n <div class="result-title text-capitalize">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchInput:o,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+s(a(null!=(o=null!=t?t.options:t)?o.libraryText:o,t))+'" aria-label="Search">\r\n</div>\r\n<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchIcons:o,t))+'">\r\n <span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchSvgContainer:o,t))+' search-btn">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showCloseButton:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"</div>\r\n"},2:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchSvgContainer:o,t))+' close-btn">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n"},4:function(e,t,n,r,i){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showPartial:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(4,i,0),data:i}))?o:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchBar:o,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){var r=n(490),i=n(884);function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},function(e,t,n){var r=n(490);e.exports=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&&r(e,t)}},function(e,t,n){"use strict";(function(t){var r,i=(r=n(4))&&"object"==typeof r&&"default"in r?r.default:r;e.exports=function(e){for(var n,r=(n=e,i.atob?i.atob(n):t.from(n,"base64").toString("binary")),o=new Uint8Array(r.length),a=0;a<r.length;a++)o[a]=r.charCodeAt(a);return o}}).call(this,n(270).Buffer)},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new l,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,u=n.xmlns||{},p={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(p.nbsp=" ",p.copy="©",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,u,p):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new u).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){e=r.getURI(l);var u=r.getValue(l),p=(n=r.getQName(l),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(l),p),p.value=p.nodeValue=u,a.setAttributeNode(p)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var l=n(888).XMLReader,u=t.DOMImplementation=n(491).DOMImplementation;t.XMLSerializer=n(491).XMLSerializer,t.DOMParser=r},function(e,t,n){"use strict";var r=n(492).discardEmulationPreventionBytes,i=n(889).CaptionStream,o=n(184),a=n(248),s=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},c=function(e,t){var n=o.findBox(e,["moof","traf"]),i=o.findBox(e,["mdat"]),c={},l=[];return i.forEach((function(e,t){var r=n[t];l.push({mdat:e,traf:r})})),l.forEach((function(e){var n,i=e.mdat,l=e.traf,u=o.findBox(l,["tfhd"]),p=a.parseTfhd(u[0]),h=p.trackId,d=o.findBox(l,["tfdt"]),f=d.length>0?a.parseTfdt(d[0]).baseMediaDecodeTime:0,g=o.findBox(l,["trun"]);t===h&&g.length>0&&(n=function(e,t,n){var i,o,a,c,l=new DataView(e.buffer,e.byteOffset,e.byteLength),u=[];for(o=0;o+4<e.length;o+=a)if(a=l.getUint32(o),o+=4,!(a<=0))switch(31&e[o]){case 6:var p=e.subarray(o+1,o+1+a),h=s(o,t);i={nalUnitType:"sei_rbsp",size:a,data:p,escapedRBSP:r(p),trackId:n},h?(i.pts=h.pts,i.dts=h.dts,c=h):(i.pts=c.pts,i.dts=c.dts),u.push(i)}return u}(i,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,c=[];return e.forEach((function(e){var t=a.parseTrun(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration})),c=c.concat(t)})),c}(g,f,p),h),c[h]||(c[h]=[]),c[h]=c[h].concat(n))})),c};e.exports=function(){var e,t,n,r,o,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new i,s=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,o.captions.push(e),o.captionStreams[e.stream]=!0}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,i,a){var s;if(!this.isInitialized())return null;if(!i||!a)return null;if(this.isNewInit(i,a))n=i[0],r=a[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,i,a)}return null!==(s=function(e,t,n){return null===t?null:{seiNals:c(e,t)[t],timescale:n}}(e,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),o):null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},function(e,t,n){"use strict";var r=n(494),i=n(890).handleRollover,o={};o.ts=n(891),o.aac=n(892);var a=n(893).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[c]||71!==e[l]&&l!==e.byteLength)c++,l++;else{switch(r=e.subarray(c,l),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;c+=188,l+=188}for(c=(l=e.byteLength)-188,u=!1;c>=0;)if(71!==e[c]||71!==e[l]&&l!==e.byteLength)c--,l--;else{switch(r=e.subarray(c,l),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;c-=188,l-=188}},c=function(e,t,n){for(var r,i,a,s,c,l,u,p=0,h=188,d=!1,f={data:[],size:0};h<e.byteLength;)if(71!==e[p]||71!==e[h])p++,h++;else{switch(r=e.subarray(p,h),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!d&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0),!n.firstKeyFrame)){if(a&&0!==f.size){for(c=new Uint8Array(f.size),l=0;f.data.length;)u=f.data.shift(),c.set(u,l),l+=u.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var g=o.ts.parsePesTime(c);g?(n.firstKeyFrame=g,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(r),f.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;p+=188,h+=188}for(p=(h=e.byteLength)-188,d=!1;p>=0;)if(71!==e[p]||71!==e[h])p--,h--;else{switch(r=e.subarray(p,h),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0)}if(d)break;p-=188,h-=188}},l=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],c(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,c=0,l=0;e.length-l>=3;){switch(o.aac.parseType(e,l)){case"timed-metadata":if(e.length-l<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,l))>e.length){n=!0;break}null===s&&(t=e.subarray(l,l+c),s=o.aac.parseAacTimestamp(t)),l+=c;break;case"audio":if(e.length-l<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,l))>e.length){n=!0;break}null===i&&(t=e.subarray(l,l+c),i=o.aac.parseSampleRate(t)),r++,l+=c;break;default:l++}if(n)return null}if(null===i||null===s)return null;var u=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*u,pts:s+1024*r*u}]}}(e):l(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}))}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var i,o,a,s=t||[0],c=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=(a=i+c)>>>2,s.length<=o&&s.push(0),s[o]|=e[i]<<8*(l+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,i){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var i,o,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=2){if(o=parseInt(e.substr(i,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(a=(s=(i>>>1)+l)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(u+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,i)};case"TEXT":return function(e,t,n){return function(e,t,n,r,i){var o,a,s,c,l,u,p,h,d=0,f=n||[0],g=(r=r||0)>>>3;if("UTF8"===t)for(p=-1===i?3:0,s=0;s<e.length;s+=1)for(a=[],128>(o=e.charCodeAt(s))?a.push(o):2048>o?(a.push(192|o>>>6),a.push(128|63&o)):55296>o||57344<=o?a.push(224|o>>>12,128|o>>>6&63,128|63&o):(s+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(s)),a.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),c=0;c<a.length;c+=1){for(l=(u=d+g)>>>2;f.length<=l;)f.push(0);f[l]|=a[c]<<8*(p+i*(u%4)),d+=1}else for(p=-1===i?2:0,h="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===h&&(o=(c=255&o)<<8|o>>>8),l=(u=d+g)>>>2;f.length<=l;)f.push(0);f[l]|=o<<8*(p+i*(u%4)),d+=2}return{value:f,binLen:8*d+r}}(e,r,t,n,i)};case"B64":return function(e,n,r){return function(e,n,r,i){var o,a,s,c,l,u,p=0,h=n||[0],d=(r=r||0)>>>3,f=-1===i?3:0,g=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==g&&g<e.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){for(c=e.substr(o,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(l=(u=p+d)>>>2;h.length<=l;)h.push(0);h[l]|=(s>>>16-8*a&255)<<8*(f+i*(u%4)),p+=1}}return{value:h,binLen:8*p+r}}(e,n,r,i)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var i,o,a,s,c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+l)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(u+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,i){return n(new Uint8Array(e),t,r,i)}(e,t,r,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e,n,r,i){switch(e){case"HEX":return function(e){return function(e,t,n,r){var i,o,a="",s=t/8,c=-1===n?3:0;for(i=0;i<s;i+=1)o=e[i>>>2]>>>8*(c+n*(i%4)),a+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return r.outputUpper?a.toUpperCase():a}(e,n,r,i)};case"B64":return function(e){return function(e,n,r,i){var o,a,s,c,l,u="",p=n/8,h=-1===r?3:0;for(o=0;o<p;o+=3)for(c=o+1<p?e[o+1>>>2]:0,l=o+2<p?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(h+r*(o%4))&255)<<16|(c>>>8*(h+r*((o+1)%4))&255)<<8|l>>>8*(h+r*((o+2)%4))&255,a=0;a<4;a+=1)u+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return u}(e,n,r,i)};case"BYTES":return function(e){return function(e,t,n){var r,i,o="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)i=e[r>>>2]>>>8*(s+n*(r%4))&255,o+=String.fromCharCode(i);return o}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=new ArrayBuffer(i),a=new Uint8Array(o),s=-1===n?3:0;for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return o}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=-1===n?3:0,a=new Uint8Array(i);for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(o+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function l(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function u(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16))<<16|65535&o}function p(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function h(e,t){var n,r,i,o,p,h,d,f,g=[];for(n=t[0],r=t[1],i=t[2],o=t[3],p=t[4],d=0;d<80;d+=1)g[d]=d<16?e[d]:a(g[d-3]^g[d-8]^g[d-14]^g[d-16],1),h=d<20?u(a(n,5),(f=r)&i^~f&o,p,1518500249,g[d]):d<40?u(a(n,5),s(r,i,o),p,1859775393,g[d]):d<60?u(a(n,5),c(r,i,o),p,2400959708,g[d]):u(a(n,5),s(r,i,o),p,3395469782,g[d]),p=o,o=i,i=a(r,30),r=n,n=h;return t[0]=l(n,t[0]),t[1]=l(r,t[1]),t[2]=l(i,t[2]),t[3]=l(o,t[3]),t[4]=l(p,t[4]),t}function d(e,t,n,r){for(var i,o=15+(t+65>>>9<<4),a=t+n;e.length<=o;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[o]=4294967295&a,e[o-1]=a/4294967296|0,i=0;i<e.length;i+=16)r=h(e.slice(i,i+16),r);return r}return function(t){function n(e,n,i){var o=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=i||{};return(o=t.call(this,e,n,i)||this).t=!0,o.i=o.o,o.u=-1,o.s=r(o.h,o.v,o.u),o.A=h,o.p=function(e){return e.slice()},o.l=p,o.R=d,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,a.hmacKey&&o.B(function(e,t,n,i){var o="hmacKey must include a value and format";if(!t)throw new Error(o);if(void 0===t.value||!t.format)throw new Error(o);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,o.u)),o}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,i=this.s(e,this.Y,this.I),o=i.binLen,a=i.value,s=o>>>5;for(t=0;t<s;t+=r)n+this.T<=o&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=o%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=o(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=i(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var i=r(t,(n||{}).encoding||"UTF8",this.u);this.B(i(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=o(t);return i(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.18"}')},function(e,t,n){var r=n(34);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(34);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";(function(e){n.d(t,"a",(function(){return h}));var r,i,o=n(54),a=n(101),s=n(8),c=n(22),l=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};if("undefined"==typeof XMLHttpRequest){var p=require;i=p("request")}var h=function(t){function n(e){var n=t.call(this)||this;if(void 0===i)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=i.jar(),n.request=i.defaults({jar:n.cookieJar}),n}return l(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new o.a):new Promise((function(r,i){var l;l=Object(c.g)(t.content)?e.from(t.content):t.content||"";var p=n.request(t.url,{body:l,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:u({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,c,l){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(s.a.Warning,"Timeout from HTTP request."),i(new o.c)),n.logger.log(s.a.Warning,"Error from HTTP request. "+e),void i(e);c.statusCode>=200&&c.statusCode<300?r(new a.b(c.statusCode,c.statusMessage||"",l)):i(new o.b(c.statusMessage||"",c.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){p.abort(),i(new o.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(270).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(142),i=n(22),o=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,o;if(Object(i.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),o=a.byteLength>s?a.slice(s).buffer:null}else{var c,l=t;if(-1===(c=l.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=l.substring(0,s),o=l.length>s?l.substring(s):null}var u=r.a.parse(n),p=JSON.parse(u[0]);if(p.type)throw new Error("Expected a handshake response from the server.");return[o,p]},t}()}).call(this,n(270).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},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){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){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){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,n){},function(e,t,n){},function(e,t,n){},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(871));var i=r.tokenize,o=r.options.Options;function a(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 o(t);for(var n=i(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),h=p.formatted,d=p.formattedHref,f=p.tagName,g=p.className,m=p.target,y=p.attributes,v="<"+f+' href="'+s(d)+'"';g&&(v+=' class="'+s(g)+'"'),m&&(v+=' target="'+s(m)+'"'),y&&(v+=" "+c(y)),v+=">"+a(h)+"</"+f+">",r.push(v)}else r.push(a(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(220),i=s(n(872)),o=s(n(873)),a=s(n(874));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 a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(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=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},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(372),i=n(284),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("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],p=function(e){return new r.CharacterState(e)},h=p(),d=p(i.NUM),f=p(i.DOMAIN),g=p(),m=p(i.WS);h.on("@",p(i.AT)).on(".",p(i.DOT)).on("+",p(i.PLUS)).on("#",p(i.POUND)).on("?",p(i.QUERY)).on("/",p(i.SLASH)).on("_",p(i.UNDERSCORE)).on(":",p(i.COLON)).on("{",p(i.OPENBRACE)).on("[",p(i.OPENBRACKET)).on("<",p(i.OPENANGLEBRACKET)).on("(",p(i.OPENPAREN)).on("}",p(i.CLOSEBRACE)).on("]",p(i.CLOSEBRACKET)).on(">",p(i.CLOSEANGLEBRACKET)).on(")",p(i.CLOSEPAREN)).on("&",p(i.AMPERSAND)).on([",",";","!",'"',"'"],p(i.PUNCTUATION)),h.on("\n",p(i.NL)).on(l,m),m.on(l,m);for(var y=0;y<a.length;y++){var v=(0,r.stateify)(a[y],h,i.TLD,i.DOMAIN);u.push.apply(u,v)}var b=(0,r.stateify)("file",h,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("ftp",h,i.DOMAIN,i.DOMAIN),C=(0,r.stateify)("http",h,i.DOMAIN,i.DOMAIN),T=(0,r.stateify)("mailto",h,i.DOMAIN,i.DOMAIN);u.push.apply(u,b),u.push.apply(u,_),u.push.apply(u,C),u.push.apply(u,T);var S=b.pop(),w=_.pop(),E=C.pop(),k=T.pop(),A=p(i.DOMAIN),x=p(i.PROTOCOL),I=p(i.MAILTO);w.on("s",A).on(":",x),E.on("s",A).on(":",x),u.push(A),S.on(":",x),A.on(":",x),k.on(":",I);var O=(0,r.stateify)("localhost",h,i.LOCALHOST,i.DOMAIN);u.push.apply(u,O),h.on(s,d),d.on("-",g).on(s,d).on(c,f),f.on("-",g).on(c,f);for(var L=0;L<u.length;L++)u[L].on("-",g).on(c,f);g.on("-",g).on(s,f).on(c,f),h.defaultTransition=p(i.SYM);var P=h;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=h,a=null,s=0,c=null,l=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(l=0,c=o):l>=0&&l++,s++,i++;if(!(l<0)){i-=l,s-=l;var u=c.emit();r.push(new u(e.substr(i-s,s)))}}return r},t.start=P},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(372),i=n(875),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(284);var s=function(e){return new r.TokenState(e)},c=s(),l=s(),u=s(),p=s(),h=s(),d=s(),f=s(),g=s(i.URL),m=s(),y=s(i.URL),v=s(i.URL),b=s(),_=s(),C=s(),T=s(),S=s(),w=s(i.URL),E=s(i.URL),k=s(i.URL),A=s(i.URL),x=s(),I=s(),O=s(),L=s(),P=s(),N=s(),R=s(i.EMAIL),D=s(),U=s(i.EMAIL),B=s(i.MAILTOEMAIL),V=s(),M=s(),j=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,l).on(a.MAILTO,u).on(a.SLASH,p),l.on(a.SLASH,p),p.on(a.SLASH,h),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,g).on(a.NUM,d),h.on(a.TLD,v).on(a.DOMAIN,v).on(a.NUM,v).on(a.LOCALHOST,v),d.on(a.DOT,f),P.on(a.DOT,N),f.on(a.TLD,g).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),N.on(a.TLD,R).on(a.DOMAIN,P).on(a.NUM,P).on(a.LOCALHOST,P),g.on(a.DOT,f),R.on(a.DOT,N),g.on(a.COLON,m).on(a.SLASH,v),m.on(a.NUM,y),y.on(a.SLASH,v),R.on(a.COLON,D),D.on(a.NUM,U);var z=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];v.on(a.OPENBRACE,_).on(a.OPENBRACKET,C).on(a.OPENANGLEBRACKET,T).on(a.OPENPAREN,S),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,C).on(a.OPENANGLEBRACKET,T).on(a.OPENPAREN,S),_.on(a.CLOSEBRACE,v),C.on(a.CLOSEBRACKET,v),T.on(a.CLOSEANGLEBRACKET,v),S.on(a.CLOSEPAREN,v),w.on(a.CLOSEBRACE,v),E.on(a.CLOSEBRACKET,v),k.on(a.CLOSEANGLEBRACKET,v),A.on(a.CLOSEPAREN,v),x.on(a.CLOSEBRACE,v),I.on(a.CLOSEBRACKET,v),O.on(a.CLOSEANGLEBRACKET,v),L.on(a.CLOSEPAREN,v),_.on(z,w),C.on(z,E),T.on(z,k),S.on(z,A),_.on(W,x),C.on(W,I),T.on(W,O),S.on(W,L),w.on(z,w),E.on(z,E),k.on(z,k),A.on(z,A),w.on(W,w),E.on(W,E),k.on(W,k),A.on(W,A),x.on(z,w),I.on(z,E),O.on(z,k),L.on(z,A),x.on(W,x),I.on(W,I),O.on(W,O),L.on(W,L),v.on(z,v),b.on(z,v),v.on(W,b),b.on(W,b),u.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,V),V.on(z,B).on(W,V);var q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(q,M).on(a.AT,j),g.on(q,M).on(a.AT,j),f.on(q,M),M.on(q,M).on(a.AT,j).on(a.DOT,F),F.on(q,M),j.on(a.TLD,P).on(a.DOMAIN,P).on(a.LOCALHOST,R);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=c,s=null,l=null,u=0,p=null,h=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(l=s||a.next(e[n]));)s=null,(a=l).accepts()?(h=0,p=a):h>=0&&h++,n++,u++;if(h<0)for(var d=n-u;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=h,u-=h;var f=p.emit();r.push(new f(e.slice(n-u,n)))}}return o.length>0&&r.push(new i.TEXT(o)),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(373),i=n(220),o=n(284);function a(e){return e instanceof o.DOMAIN||e instanceof o.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,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),h=(0,i.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,i=[],s=0;r[s]instanceof o.PROTOCOL;)t=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=p,t.TEXT=u,t.URL=h},function(e,t){},function(e,t,n){var r=n(678),i=n(31);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(95))},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){var r=n(12),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function l(e,t,n){var r=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=i(),l(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),l(),t.endTime=i(),l(),function(e,t){var r=new s;c(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=r.createElement("textarea"),p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},f={rt:"ruby"};function g(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function i(t,n){var r=p[t];if(!r)return null;var i=e.document.createElement(r),o=d[t];return o&&n&&(i[o]=n.trim()),i}for(var o,s,c=e.document.createElement("div"),l=c,g=[];null!==(o=n());)if("<"!==o[0])l.appendChild(e.document.createTextNode((s=o,u.innerHTML=s,s=u.textContent,u.textContent="",s)));else{if("/"===o[1]){g.length&&g[g.length-1]===o.substr(2).replace(">","")&&(g.pop(),l=l.parentNode);continue}var m,y=a(o.substr(1,o.length-2));if(y){m=e.document.createProcessingInstruction("timestamp",y),l.appendChild(m);continue}var v=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(m=i(v[1],v[3])))continue;if(!r(l,m))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var r=t?"background-color":"color",i=h[n];m.style[r]=i}})),m.className=b.join(" ")}g.push(v[1]),l.appendChild(m),l=m}return c}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function v(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(y(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=g(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function C(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function T(e,t,n,r){var i=new C(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var c;switch(o.vertical){case"":s=["+y","-y"],c="height";break;case"rl":s=["+x","-x"],c="width";break;case"lr":s=["-x","+x"],c="width"}var l=i.lineHeight,u=l*Math.round(a),p=n[c]+l,h=s[0];Math.abs(u)>p&&(u=u<0?-1:1,u*=Math.ceil(p/l)*l),a<0&&(u+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(h,u)}else{var d=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new C(t)}var f=function(e,t){for(var i,o=new C(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var c=e.intersectPercentage(n);a>c&&(i=new C(e),a=c),e=new C(o)}return i||o}(i,s);t.move(f.toCSSCompatValues(n))}function S(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=i(b.prototype),_.prototype.constructor=_,C.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},C.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},C.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},C.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},C.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},C.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},C.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},C.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},S.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},S.convertCueToDOMTree=function(e,t){return e&&t?g(e,t):null};S.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=C.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,c=0;c<t.length;c++)s=t[c],n=new _(e,s,a),r.appendChild(n.div),T(0,n,o,i),s.displayState=n.div,i.push(C.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},S.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},S.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?c(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new s;c(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",a(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):c(e,(function(e,n){switch(e){case"Region":!function(e){var n=new s;if(c(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var p=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{l(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==i.indexOf("--\x3e");if(!i||h&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new o(o.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=S},function(e,t){var n={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function o(e,t,r){this.hasBeenReset=!1;var o="",a=!1,s=e,c=t,l=r,u=null,p="",h=!0,d="auto",f="start",g="auto",m="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return p},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");p=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=i(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=i(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},function(e,t){e.exports=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}}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,p=s>0?a-4:a;for(n=0;n<p;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,h=n?-1:1,d=e[t+p];for(p+=h,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+p],p+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,p=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+p>=1?h/c:h*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(t*c-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+d]=255&a,d+=f,a/=256,l-=8);e[n+d-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,i,o){for(var a,s=++t,c=0;;){var l=e.charAt(s);switch(l){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(l,t))>0))throw new Error("attribute value no end '"+l+"' match");u=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,u,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');u=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,u,t),o.warning('attribute "'+a+'" missed start quot('+l+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===c&&(u=a),4==c?(o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":l=" ";default:if(l<=" ")switch(c){case 0:n.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var u=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u,t);case 5:c=6}else switch(c){case 2:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((d=s.indexOf(":"))>0)var l=a.prefix=s.slice(0,d),u=s.slice(d+1),h="xmlns"===l&&u;else u=s,l=null,h="xmlns"===s&&"";a.localName=u,!1!==h&&(null==i&&(i={},p(n,n={})),n[h]=i[h]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(h,c))}for(o=e.length;o--;){(l=(a=e[o]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=n[l||""]))}var d;(d=r.indexOf(":"))>0?(l=e.prefix=r.slice(0,d),u=e.localName=r.slice(d+1)):(l=null,u=e.localName=r);var f=e.uri=n[l||""];if(t.startElement(f,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(f,u,r),i)for(l in i)t.endPrefixMapping(l)}function l(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function u(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function p(e,t){for(var n in e)t[n]=e[n]}function h(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],l=a>4&&o[4][0],u=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),u.index+u[0].length}}return-1}function d(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function f(e){}function g(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),p(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function p(t){if(t>T){var n=e.substring(T,t).replace(/&#?\w+;/g,o);b&&g(T),r.characters(n,0,t-T),T=t}}function g(t,n){for(;t>=y&&(n=v.exec(e));)m=n.index,y=m+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}var m=0,y=0,v=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,_=[{currentNSMap:t}],C={},T=0;for(;;){try{var S=e.indexOf("<",T);if(S<0){if(!e.substr(T).match(/^\s*$/)){var w=r.doc,E=w.createTextNode(e.substr(T));w.appendChild(E),r.currentElement=E}return}switch(S>T&&p(S),e.charAt(S+1)){case"/":var k=e.indexOf(">",S+3),A=e.substring(S+2,k),x=_.pop();k<0?(A=e.substring(S+2).replace(/[\s<].*/,""),i.error("end tag name: "+A+" is not complete:"+x.tagName),k=S+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),i.error("end tag name: "+A+" maybe not complete"),k=S+1+A.length);var I=x.localNSMap,O=x.tagName==A;if(O||x.tagName&&x.tagName.toLowerCase()==A.toLowerCase()){if(r.endElement(x.uri,x.localName,A),I)for(var L in I)r.endPrefixMapping(L);O||i.fatalError("end tag name: "+A+" is not match the current start tagName:"+x.tagName)}else _.push(x);k++;break;case"?":b&&g(S),k=d(e,S,r);break;case"!":b&&g(S),k=h(e,S,r,i);break;default:b&&g(S);var P=new f,N=_[_.length-1].currentNSMap,R=(k=s(e,S,P,N,o,i),P.length);if(!P.closed&&u(e,k,P.tagName,C)&&(P.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&R){for(var D=a(b,{}),U=0;U<R;U++){var B=P[U];g(B.offset),B.locator=a(b,{})}r.locator=D,c(P,r,N)&&_.push(P),r.locator=b}else c(P,r,N)&&_.push(P);"http://www.w3.org/1999/xhtml"!==P.uri||P.closed?k++:k=l(e,k,P.tagName,o,r)}}catch(e){i.error("element parse error: "+e),k=-1}k>T?T=k:p(Math.max(S,T)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},g({},g.prototype)instanceof g||(g=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=o},function(e,t,n){"use strict";var r=n(493),i=n(492),o=function(){o.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new u(0,0),new u(0,1),new u(1,0),new u(1,1)],this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this)};o.prototype=new r,o.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=i.parseSei(e.escapedRBSP)).payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},o.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},o.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2&&this.dispatchCea608Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},o.prototype.flush=function(){return this.flushStream("flush")},o.prototype.partialFlush=function(){return this.flushStream("partialFlush")},o.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},o.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},o.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},o.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},o.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(e){return null===e?"":(e=a[e]||e,String.fromCharCode(e))},c=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],l=function(){for(var e=[],t=15;t--;)e.push("");return e},u=function(e,t){u.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=l();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=l();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=l()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=c.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=s(r),o+=s(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};u.prototype=new r,u.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},u.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=l(),this.nonDisplayed_=l(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},u.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},u.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},u.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},u.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},u.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},u.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},u.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},u.prototype.isNormalChar=function(e){return e>=32&&e<=127},u.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=l(),this.displayed_=l()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},u.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},u.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},u.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},u.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},u.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},u.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},e.exports={CaptionStream:o,Cea608Stream:u}},function(e,t,n){"use strict";var r=n(493),i=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=i(e.dts,n),e.pts=i(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};o.prototype=new r,e.exports={TimestampRolloverStream:o,handleRollover:i}},function(e,t,n){"use strict";var r=n(494),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},o=function(e){return!!(64&e[1])},a=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};e.exports={parseType:function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),n=4+a(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=o(e),r=4+a(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var c=r+s;t[(31&e[c+1])<<8|e[c+2]]=e[c],s+=5+((15&e[c+3])<<8|e[c+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[i(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+a(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+a(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),o}}},function(e,t,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},parseId3TagSize:function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return r[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=i(e.subarray(10,14)));do{if((n=i(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var o=0;o<r.byteLength;o++)if(0===r[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,o))){var a=r.subarray(o+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t){var n,r,i,o,a,s,c;n=function(e){return 9e4*e},r=function(e,t){return e*t},i=function(e){return e/9e4},o=function(e,t){return e/t},a=function(e,t){return n(o(e,t))},s=function(e,t){return r(i(e),t)},c=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:c}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(705),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869);var r=n(2),i=n(0),o=n.n(i),a=n(11),s=n(240),c=n(23);class l extends s.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,i.createElement(t,{alerts:r,removeAlert:e=>a.Radio.channel(c.a.ALERT).trigger("remove:alert",e)}))}}const u="content",p="popup",h="alert";var d=n(3),f="TeacherLayout",g="EmbedLayout",m=n(7),y=n(19),v=n(13),b=n(165),_=n(74),C=[{application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND},{application:m.a.DEFAULT,action:v.a.Default.ERROR},{application:m.a.DEFAULT,action:v.a.Default.DEV_ERROR},{application:m.a.DEFAULT,action:v.a.Default.DIALOG_ERROR}];function T(e,t){var n=e.appLink,i=e.shell;if(C.find((function(e){return e.application===n.application&&e.action===n.action})))t(e);else{var o=i.store,a=o.dispatch,s=o.getState;y.a.hooklessFetch(a,s(),_.a.currentUser((function(n){n.emailVerified?t(e):(r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new b.a))}),(function(){t(e)})))}}var S=n(300),w=n.n(S),E=n(326),k=n(104),A=n(327),x=[{application:m.a.SUBJECT,action:v.a.Subjects.PREFERENCES},{application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND}];function I(e,t){O(e,(function(n){if(n)return r.a.AppLinkHelper.trigger({application:m.a.SUBJECT,action:v.a.Subjects.PREFERENCES}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function O(e,t){var n=e.appLink,r=e.shell;if(x.find((function(e){return e.application===(null==n?void 0:n.application)&&e.action===(null==n?void 0:n.action)})))t(!1);else{var i=r.store,o=i.dispatch,a=i.getState;y.a.hooklessFetch(o,a(),_.a.currentUser((function(e){y.a.hooklessFetch(o,a(),_.a.permissions((function(n){n[k.a.ManageSubjectPreferences]&&w.a.get("_onboardingComplete")!==e.id.toString()?y.a.hooklessFetch(o,a(),A.a.setting(e.id,E.a.HasCompletedOnboarding,(function(n){if(n.value)return w.a.set("_onboardingComplete",e.id,{expires:30}),void t(!1);t(!0)}),(function(){t(!1)}))):t(!1)}),(function(){t(!1)})))}),(function(){t(!1)})))}}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 P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(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 R(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}function D(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)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(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 V(this,n)}}function V(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 M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){D(n,e);var t=B(n);function n(){return P(this,n),t.apply(this,arguments)}return R(n,[{key:"channelName",get:function(){return m.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),F=function(e){D(r,e);var t=B(r);function r(){return P(this,r),t.apply(this,arguments)}return R(r,[{key:"index",value:function(){var e=this;n.e(31).then(n.bind(null,1670)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(u,o.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(42).then(n.bind(null,1673)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(u,o.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,i=t.tab;["students","groups"].includes(i)||(i="students"),n.e(19).then(n.bind(null,1665)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(u,o.a.createElement(n,{id:e,activeTab:i}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(55)]).then(n.bind(null,1626)).then((function(t){var n=t.CreateClassroomView,r={actionType:d.UserAction.Create,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};e.layout.showChildView(p,o.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(56)]).then(n.bind(null,1627)).then((function(n){var r=n.EditClassroomView,i={actionType:d.UserAction.Edit,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(71).then(n.bind(null,1628)).then((function(n){var r=n.DeleteClassroomView,i={actionType:d.UserAction.Delete,entity:d.EntityType.Classroom,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(9),n.e(65)]).then(n.bind(null,1629)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:d.UserAction.Associate,entity:d.EntityType.Classroom,location:d.LocationContext.Popup,descriptor:d.AssocDescriptor.User,workflowPhase:d.WorkflowPhase.Complete};t.layout.showChildView(p,o.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:i}))}))}},{key:"removeStudents",value:function(e,t){var r=this,i=t.studentIds;n.e(72).then(n.bind(null,1630)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:d.UserAction.Dissociate,entity:d.EntityType.Classroom,location:d.LocationContext.Popup,descriptor:d.AssocDescriptor.User,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,i=t.addStudents,a=void 0===i?[]:i;Promise.all([n.e(1),n.e(2),n.e(43)]).then(n.bind(null,1631)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:d.EntityType.ClassroomGroup,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:i}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(44)]).then(n.bind(null,1632)).then((function(n){var i=n.EditClassroomGroupView,a={entity:d.EntityType.ClassroomGroup,actionType:d.UserAction.Edit,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(70).then(n.bind(null,1633)).then((function(n){var i=n.DeleteClassroomGroupView,a={entity:d.EntityType.ClassroomGroup,actionType:d.UserAction.Delete,location:d.LocationContext.Popup,workflowPhase:d.WorkflowPhase.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return m.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return j}}]),r}(l),H="content",z="popup",W="alert",q=n(304);function G(e){return(G="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 K(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 J(e,t,n){return t&&Y(e.prototype,t),n&&Y(e,n),e}function X(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&&Q(e,t)}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(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=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==G(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 te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){X(n,e);var t=Z(n);function n(){return K(this,n),t.apply(this,arguments)}return J(n,[{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),re=function(e){X(r,e);var t=Z(r);function r(){return K(this,r),t.apply(this,arguments)}return J(r,[{key:"contentUpdates",value:function(){var e=this;Promise.all([n.e(0),n.e(6),n.e(69)]).then(n.bind(null,1674)).then((function(t){var n=t.ContentUpdatesView;e.layout.showChildView(H,i.createElement(n,{appLinks:q.a}))}))}},{key:"classificationUpdate",value:function(e){var t=this;Promise.all([n.e(0),n.e(6),n.e(75)]).then(n.bind(null,1634)).then((function(n){var r=n.ClassificationUpdateView;t.layout.showChildView(H,i.createElement(r,{classificationId:e,appLinks:q.a}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return ne}}]),r}(l);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 ae(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 se(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),e}function ce(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&&le(e,t)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(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=he(e);if(t){var i=he(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pe(this,n)}}function pe(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 he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=function(e){ce(n,e);var t=ue(n);function n(){return oe(this,n),t.apply(this,arguments)}return se(n,[{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","dashboard/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),fe=function(e){ce(r,e);var t=ue(r);function r(){return oe(this,r),t.apply(this,arguments)}return se(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(38)]).then(n.bind(null,1671)).then((function(t){var n=t.DashboardView;e.layout.showChildView(H,i.createElement(n,null))}))}},{key:"dashboard",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.cursor||1;Promise.all([n.e(0),n.e(23)]).then(n.bind(null,1682)).then((function(t){var n=t.DashboardWidgetView;r.layout.showChildView(H,i.createElement(n,{widgetId:e,cursor:a}))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}}],[{key:"router",get:function(){return de}}]),r}(l);function ge(e){return(ge="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 me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ye(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 ve(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}function be(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)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(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=Se(e);if(t){var i=Se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==ge(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 Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(e){be(n,e);var t=Ce(n);function n(){return me(this,n),t.apply(this,arguments)}return ve(n,[{key:"channelName",get:function(){return m.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","videos/:id/clips/new(/)":"createClip","clips/:id/edit(/)":"editClip","clips/:id(/:slug)":"playClip","series/:id(/:slug)":"series","favourited-videos(/)":"favouriteVideos","my-videos(/)":"myVideos","interactive/:id(/:slug)":"previewInteractive","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","previewPdf","previewQuestions","createClipDetails","editClipDetails","deleteClip","viewCurriculumLinks"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Ee=function(e){be(o,e);var t=Ce(o);function o(){return me(this,o),t.apply(this,arguments)}return ve(o,[{key:"myVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(29)]).then(n.bind(null,1672)).then((function(n){var r=n.MyVideosView;t.layout.showChildView(H,i.createElement(r,{cursor:e.cursor}))}))}},{key:"playVideo",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t?Promise.all([n.e(0),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1683)).then((function(t){var n=t.PlayView;r.layout.showChildView(H,i.createElement(n,{id:e,startTime:o.t}))})):this.playVideoNoSlug(e,t||{})}},{key:"playVideoNoSlug",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1683)).then((function(n){var o=n.PlayView;r.layout.showChildView(H,i.createElement(o,{id:e,startTime:t.t}))}))}},{key:"previewInteractive",value:function(e){var t=this;Promise.all([n.e(50),n.e(0),n.e(3),n.e(18)]).then(n.bind(null,1664)).then((function(n){var r=n.PreviewInteractiveView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"previewQuestions",value:function(e){var t=this;n.e(57).then(n.bind(null,1635)).then((function(n){var r=n.PreviewQuestionsView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(59)]).then(n.bind(null,1636)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var o=this;Promise.all([n.e(0),n.e(22)]).then(n.bind(null,1637)).then((function(t){var n=t.SeriesView;o.layout.showChildView(H,i.createElement(n,{id:e,cursor:null==r?void 0:r.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(27)]).then(n.bind(null,1638)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(H,i.createElement(r,{cursor:e.cursor}))}))}},{key:"previewPdf",value:function(e){var t=this;Promise.all([n.e(34),n.e(39)]).then(n.bind(null,1684)).then((function(n){var r=n.PreviewPdfView;t.layout.showChildView(z,i.createElement(r,{closePopup:function(){return t.layout.closePopup()},id:e}))}))}},{key:"createClip",value:function(e,t){var r=this;n.e(10).then(n.bind(null,1669)).then((function(n){var o=n.EditClipTimepointsView;r.layout.showChildView(H,i.createElement(o,{videoId:e,startTime:t.startTime}))}))}},{key:"editClip",value:function(e){var t=this;n.e(10).then(n.bind(null,1669)).then((function(n){var r=n.EditClipTimepointsView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"createClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(11)]).then(n.bind(null,1685)).then((function(n){var o=n.EditClipDetailsView;r.layout.showChildView(z,i.createElement(o,{videoId:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"editClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(11)]).then(n.bind(null,1685)).then((function(n){var o=n.EditClipDetailsView;r.layout.showChildView(z,i.createElement(o,{id:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteClip",value:function(e){var t=this;n.e(64).then(n.bind(null,1639)).then((function(n){var r=n.DeleteClipView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"playClip",value:function(e){var t=this;n.e(53).then(n.bind(null,1640)).then((function(n){var r=n.PlayClipView;t.layout.showChildView(H,i.createElement(r,{id:e}))}))}},{key:"viewCurriculumLinks",value:function(e){var t=this;n.e(61).then(n.bind(null,1641)).then((function(n){var r=n.ViewCurriculumLinksView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new b.a)}},{key:"notFound",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(62).then(n.bind(null,1642)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(66).then(n.bind(null,1399)).then((function(n){var r=n.ErrorView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(74).then(n.bind(null,1643)).then((function(n){var o=n.DialogView;e.layout.showChildView(z,i.createElement(o,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(76).then(n.bind(null,1644)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(H,i.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.DEFAULT}}],[{key:"router",get:function(){return we}}]),o}(l);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 Ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(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 Ie(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}function Oe(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&&Le(e,t)}function Le(e,t){return(Le=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=Re(e);if(t){var i=Re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(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 Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){Oe(n,e);var t=Pe(n);function n(){return Ae(this,n),t.apply(this,arguments)}return Ie(n,[{key:"channelName",get:function(){return m.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shareId":"embedVideo"}}},{key:"filters",get:function(){return[T]}}]),n}(r.a.AppRouter),Ue=function(e){Oe(r,e);var t=Pe(r);function r(){return Ae(this,r),t.apply(this,arguments)}return Ie(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.a,a=void 0!==o&&o;n.e(68).then(n.bind(null,1645)).then((function(n){var r=n.EmbedView;t.layout.showChildView(H,i.createElement(r,{shareId:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:g}}},{key:"channelName",get:function(){return m.a.EMBED}}],[{key:"router",get:function(){return De}}]),r}(l),Be=n(206);function Ve(e){return(Ve="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 Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 Fe(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),e}function He(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&&ze(e,t)}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(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=Ge(e);if(t){var i=Ge(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==Ve(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 Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){He(n,e);var t=We(n);function n(){return Me(this,n),t.apply(this,arguments)}return Fe(n,[{key:"channelName",get:function(){return m.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Ke=function(e){He(r,e);var t=We(r);function r(){return Me(this,r),t.apply(this,arguments)}return Fe(r,[{key:"index",value:function(e){var t=this;n.e(63).then(n.bind(null,1686)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(u,i.createElement(Be.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}},{key:"channelName",get:function(){return m.a.NOTIFICATIONS}}],[{key:"router",get:function(){return $e}}]),r}(l),Ye=n(44),Je=n(374),Xe=n(118);function Qe(e){return(Qe="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 Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function et(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 tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(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&&rt(e,t)}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function it(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=at(e);if(t){var i=at(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==Qe(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 at(e){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var st=function(e){nt(n,e);var t=it(n);function n(){return Ze(this,n),t.apply(this,arguments)}return tt(n,[{key:"channelName",get:function(){return m.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist","copyPlaylist"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),ct=function(e){nt(r,e);var t=it(r);function r(){return Ze(this,r),t.apply(this,arguments)}return tt(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:d.LocationContext.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:m.a.PLAYLISTS,action:v.a.Playlists.PLAYLIST,args:[e.id,Ye.a.slugify(e.name)]}},o=e.sort&&Je.a.getSortTypeFromName(e.sort);n.e(17).then(n.bind(null,1678)).then((function(e){var n=e.PlaylistsView;t.layout.showChildView(H,i.createElement(n,{getPlaylistAppLink:r,sort:o}))}))}},{key:"playlist",value:function(e){var t=this,r=function(e){return{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO,args:[e.id,Ye.a.slugify(e.name)],params:Xe.a.getVideoProgress(e)?{t:Math.floor(Xe.a.getVideoProgress(e))}:{}}},o=function(e){return{application:m.a.DEFAULT,action:v.a.Default.SERIES,args:[e.id,Ye.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1666)).then((function(n){var a=n.PlaylistView;t.layout.showChildView(H,i.createElement(a,{key:e,playlistId:e,application:m.a.PLAYLISTS,getVideoAppLink:r,getSeriesAppLink:o,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(37)]).then(n.bind(null,1646)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(z,i.createElement(n,Object.assign({application:m.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(36)]).then(n.bind(null,1647)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(z,i.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(47).then(n.bind(null,1648)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(z,i.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(30).then(n.bind(null,1675)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(z,i.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(48).then(n.bind(null,1649)).then((function(n){var o=n.RemoveVideoFromPlaylistView;r.layout.showChildView(z,i.createElement(o,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"copyPlaylist",value:function(e){var t=this;n.e(40).then(n.bind(null,1650)).then((function(n){var r=n.CopyPlaylistView;t.layout.showChildView(z,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.PLAYLISTS}}],[{key:"router",get:function(){return st}}]),r}(l);function lt(e){return(lt="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 ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pt(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 ht(e,t,n){return t&&pt(e.prototype,t),n&&pt(e,n),e}function dt(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&&ft(e,t)}function ft(e,t){return(ft=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(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=yt(e);if(t){var i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){return!t||"object"!==lt(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 yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){dt(n,e);var t=gt(n);function n(){return ut(this,n),t.apply(this,arguments)}return ht(n,[{key:"channelName",get:function(){return m.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),bt=function(e){dt(r,e);var t=gt(r);function r(){return ut(this,r),t.apply(this,arguments)}return ht(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(28)]).then(n.bind(null,1676)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(H,i.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0}}}},{key:"channelName",get:function(){return m.a.SEARCH}}],[{key:"router",get:function(){return vt}}]),r}(r.a.Application),_t=n(10),Ct=n(39);function Tt(e){return(Tt="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 St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(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 Et(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),e}function kt(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&&At(e,t)}function At(e,t){return(At=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xt(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=Ot(e);if(t){var i=Ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==Tt(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 Ot(e){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lt=function(e){kt(n,e);var t=xt(n);function n(){return St(this,n),t.apply(this,arguments)}return Et(n,[{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),Pt=function(e){kt(r,e);var t=xt(r);function r(){return St(this,r),t.apply(this,arguments)}return Et(r,[{key:"initialize",value:function(){this.subjectsAppVariables=_t.a.getInstance(Ct.a.SUBJECTS,this)}},{key:"classification",value:function(e,t,r){var o=this;Promise.all([n.e(0),n.e(3),n.e(15)]).then(n.bind(null,1667)).then((function(t){var n=t.ClassificationView;o.layout.showChildView(u,i.createElement(n,{key:e,id:e,queryParams:r}))}))}},{key:"preferences",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(41).then(n.bind(null,1687)).then((function(n){var r=n.BasePreferencesView;e.layout.showChildView(u,i.createElement(r,{step:t.step||"",redirectUrl:t.redirectUrl||""}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:this.subjectsAppVariables.hasCompletedOnboarding,alertRegion:h}}}}],[{key:"router",get:function(){return Lt}}]),r}(l);function Nt(e){return(Nt="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 Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(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 Ut(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),e}function Bt(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&&Vt(e,t)}function Vt(e,t){return(Vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(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=Ft(e);if(t){var i=Ft(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(e,t){return!t||"object"!==Nt(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 Ft(e){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ht=function(e){Bt(n,e);var t=Mt(n);function n(){return Rt(this,n),t.apply(this,arguments)}return Ut(n,[{key:"channelName",get:function(){return m.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),zt=function(e){Bt(r,e);var t=Mt(r);function r(){return Rt(this,r),t.apply(this,arguments)}return Ut(r,[{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(54)]).then(n.bind(null,1651)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(p,i.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(73).then(n.bind(null,1652)).then((function(n){var o=n.CancelUploadView;r.layout.showChildView(p,i.createElement(o,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return m.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return Ht}}]),r}(l),Wt=n(58),qt=n(144),Gt=n(76);function $t(e){return($t="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 Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(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 Jt(e,t,n){return t&&Yt(e.prototype,t),n&&Yt(e,n),e}function Xt(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&&Qt(e,t)}function Qt(e,t){return(Qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zt(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=tn(e);if(t){var i=tn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return en(this,n)}}function en(e,t){return!t||"object"!==$t(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 tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nn=function(e){Xt(n,e);var t=Zt(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Jt(n,[{key:"channelName",get:function(){return m.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/staff(/)":"staffManager","user-manager/users/upload/edit":"bulkUserUploadEdit","user-manager/users/upload/duplicates":"bulkUserUploadDuplicates","user-manager/users/upload/review":"bulkUserUploadReview"}}},{key:"appLinks",get:function(){return["createUser","editUser","bulkRemoveUsers","toggleUserStatus","bulkUserUploadPopup"]}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),rn=function(e){Xt(r,e);var t=Zt(r);function r(){return Kt(this,r),t.apply(this,arguments)}return Jt(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(80)]).then(n.bind(null,1688)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(u,i.createElement(r,{queryParams:e}))}))}},{key:"staffManager",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(79)]).then(n.bind(null,1689)).then((function(n){var r=n.SchoolStaffManagerView;t.layout.showChildView(u,i.createElement(r,{queryParams:e}))}))}},{key:"createUser",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(45)]).then(n.bind(null,1653)).then((function(n){var r=n.CreateUserView,o={actionType:d.UserAction.Create,entity:d.EntityType.User,workflowPhase:d.WorkflowPhase.Complete,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.Popup};t.layout.showChildView(p,i.createElement(r,{userType:e.userType,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUser",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(46)]).then(n.bind(null,1654)).then((function(n){var o=n.EditUserView,a={actionType:d.UserAction.Edit,entity:d.EntityType.User,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup};r.layout.showChildView(p,i.createElement(o,{id:e,userType:t.userType,analyticsOptions:a,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"bulkRemoveUsers",value:function(e){var t=this,r=e.userType;n.e(58).then(n.bind(null,1655)).then((function(e){var n=e.BulkRemoveUsersView;t.layout.showChildView(p,i.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"toggleUserStatus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.e(51).then(n.bind(null,1656)).then((function(n){var o=n.ToggleUserStatusView;t.layout.showChildView(p,i.createElement(o,{id:e,userType:r.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadPopup",value:function(e){var t=this,r=e.userType;n.e(52).then(n.bind(null,1677)).then((function(e){var n=e.BulkUserUploadPopupView;t.layout.showChildView(p,i.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadEdit",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;Promise.all([n.e(1),n.e(2),n.e(8),n.e(49)]).then(n.bind(null,1657)).then((function(n){var o=n.BulkUserUploadEditView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadDuplicates",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;Promise.all([n.e(1),n.e(2),n.e(8),n.e(78)]).then(n.bind(null,1679)).then((function(n){var o=n.BulkUserUploadDuplicatesView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadReview",value:function(){var e=this,t=Wt.a.get(Gt.a.BULK_USER_UPLOAD),r=t===qt.a.Learner?d.LocationContext.StudentManager:d.LocationContext.StaffManager;n.e(35).then(n.bind(null,1658)).then((function(n){var o=n.BulkUserUploadReviewView,a={entity:d.EntityType.User,location:r,actionType:d.UserAction.Create};e.layout.showChildView(u,i.createElement(o,{userType:t,analyticsOptions:a,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return m.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:h}}}}],[{key:"router",get:function(){return nn}}]),r}(l);function on(e){return(on="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 an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(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 cn(e,t,n){return t&&sn(e.prototype,t),n&&sn(e,n),e}function ln(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&&un(e,t)}function un(e,t){return(un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pn(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=dn(e);if(t){var i=dn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hn(this,n)}}function hn(e,t){return!t||"object"!==on(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 dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fn=function(e){ln(n,e);var t=pn(n);function n(){return an(this,n),t.apply(this,arguments)}return cn(n,[{key:"channelName",get:function(){return m.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),gn=function(e){ln(r,e);var t=pn(r);function r(){return an(this,r),t.apply(this,arguments)}return cn(r,[{key:"index",value:function(){var e=this;n.e(60).then(n.bind(null,1680)).then((function(t){var n=t.SettingsView;e.layout.showChildView(H,o.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.SETTINGS}}],[{key:"router",get:function(){return fn}}]),r}(l);function mn(e){return(mn="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 yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vn(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 bn(e,t,n){return t&&vn(e.prototype,t),n&&vn(e,n),e}function _n(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&&Cn(e,t)}function Cn(e,t){return(Cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tn(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=wn(e);if(t){var i=wn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){return!t||"object"!==mn(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 wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En=function(e){_n(n,e);var t=Tn(n);function n(){return yn(this,n),t.apply(this,arguments)}return bn(n,[{key:"channelName",get:function(){return m.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[T,I]}}]),n}(r.a.AppRouter),kn=function(e){_n(r,e);var t=Tn(r);function r(){return yn(this,r),t.apply(this,arguments)}return bn(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(25)]).then(n.bind(null,1681)).then((function(n){var r=n.WatchHistoryView;t.layout.showChildView(H,o.a.createElement(r,{cursor:e.cursor}))}))}},{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.WATCH_HISTORY}}],[{key:"router",get:function(){return En}}]),r}(l),An=n(21),xn=n(100),In=n(29);function On(e){return(On="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 Ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pn(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 Nn(e,t,n){return t&&Pn(e.prototype,t),n&&Pn(e,n),e}function Rn(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&&Dn(e,t)}function Dn(e,t){return(Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Un(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=Vn(e);if(t){var i=Vn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bn(this,n)}}function Bn(e,t){return!t||"object"!==On(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 Vn(e){return(Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mn=function(e){Rn(n,e);var t=Un(n);function n(){return Ln(this,n),t.apply(this,arguments)}return Nn(n,[{key:"channelName",get:function(){return m.a.SHARE}},{key:"appRoutes",get:function(){return{"share/:id(/)":"viewShared"}}},{key:"appLinks",get:function(){return["share"]}}]),n}(r.a.AppRouter),jn=function(e){Rn(o,e);var t=Un(o);function o(){return Ln(this,o),t.apply(this,arguments)}return Nn(o,[{key:"share",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(9),n.e(20)]).then(n.bind(null,1668)).then((function(n){var o=n.ShareView;r.layout.showChildView(z,i.createElement(o,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"viewShared",value:function(e){var t=this;_t.a.getInstance(In.a.FlightShare).getShareLink(e,(function(n){switch(_t.a.releaseInstance(In.a.FlightShare),n.objectTypeId){case xn.a.Video:return t.playSharedVideo(e);default:r.a.ErrorHelper.throw(new An.a("Share view not implemented for objectTypeId: ".concat(n.objectTypeId,".")))}}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(5),n.e(77)]).then(n.bind(null,1659)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(H,i.createElement(r,{shareId:e}))}))}},{key:"name",get:function(){return"Share Application"}},{key:"layoutOptions",get:function(){return{name:f,options:{showNav:!0,alertRegion:W}}}},{key:"channelName",get:function(){return m.a.SHARE}}],[{key:"router",get:function(){return Mn}}]),o}(l);var Fn,Hn=n(1);!function(e){e.Fifo="FifoMemoryCache"}(Fn||(Fn={}));var zn=n(79),Wn=n(14);class qn extends zn.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return Fn.Fifo}removeCacheKey(e){this.cachedkeys=Hn.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||Wn.c.throw(new An.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=Hn.object(this.cachedkeys,this.cachedkeys);let r=[];Hn.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),i=Hn.filter(n,e=>t.test(e));r.push(...i)}),r.length&&(r=Hn.uniq(r),Hn.each(r,e=>{delete this.cache[e],Hn.isFunction(t)&&t(e)}),this.cachedkeys=Hn.without(this.cachedkeys,...r))}}var Gn,$n=n(50),Kn=n(181),Yn=n(27),Jn=n(139);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(Gn||(Gn={}));const Xn={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 Qn extends $n.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 Gn.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=Yn.a.GET);const i=Hn.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===Yn.a.POST||n===Yn.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);const a=$.ajax(o);return Hn.keys(this.successMiddleware).length&&a.done(Hn.values(this.successMiddleware)),Hn.keys(this.errorMiddleware).length&&a.fail(Hn.values(this.errorMiddleware)),a}create(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,Yn.a.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Yn.a.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,Yn.a.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,Yn.a.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,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=Kn.a;switch(n.code=e.status,n.message=Xn.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=Jn.a.BadRequest;break;case 401:n.type=Jn.a.Unauthorized;break;case 403:n.type=Jn.a.Forbidden;break;case 404:n.type=Jn.a.NotFound;break;case 500:n.type=Jn.a.InternalServer}return n}}var Zn=n(62),er=n(73),tr=n(114),nr=n(20),rr=n(115),ir=n(51),or=n(30),ar=n(207);class sr extends tr.a{get name(){return nr.a.Language}get channelName(){return or.b.LANGUAGE}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:ir.a.LOCALE,expiryTime:rr.a.STANDARD,bootstrapName:ar.a.LOCALE,callback:n=>{t.locale=n,t.phrases&&Hn.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:ir.a.PHRASES,expiryTime:rr.a.STANDARD,bootstrapName:ar.a.PHRASES,callback:n=>{t.phrases=n,t.locale&&Hn.isFunction(e)&&e(t)}})}}class cr extends r.a.Model{}class lr extends tr.a{get name(){return nr.a.NotificationSocket}get channelName(){return or.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(e){return this.get({callback:e,formatData:e=>new cr(e),resource:"notify",eventPrefix:ir.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:ir.a.NOTIFICATIONS+":count"})}}var ur=n(127),pr=n(9),hr=n(105),dr=n(140);class fr extends r.a.Collection{get model(){return cr}parse(e){return e.data||e}}const gr=(e,t)=>{const n=`/api/domain/v2/objects/${e}/notifications?query={orderbydesc:datecreated}`;if(!t)return n;const{limit:r,cursor:i,before:o}=t,a=[],s=hr.a.buildFilter({limit:r,before:o});return s&&a.push("filter="+s),i&&a.push("cursor="+i),a.length?`${n}&${a.join("&")}`:n},mr=e=>"/api/notifications/v1/notifications/"+e,yr="/api/notifications/v1/notifications",vr="/api/domain/v1/notifications";class br extends tr.a{get name(){return nr.a.Notification}get channelName(){return or.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(e,t,n,r){return this.get({resource:gr(e,t),expiryTime:rr.a.STANDARD,eventPrefix:n,formatData:e=>new fr(e,{parse:!0}),callback:r})}markRead(e,t){return this.update({callback:t,data:{notificationStatus:dr.a.Read},resource:mr(e),eventPrefix:ir.a.NOTIFICATIONS+":read"})}markSeen(e){const t=ur().utc().toISOString();return this.update({callback:e,data:{notificationStatus:dr.a.Seen},resource:`${yr}?to=${t}&notificationStatus=${dr.a.Received}`,eventPrefix:ir.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(e){return this.getCursors(e)}suggestEdit(e,t){return this.create({resource:""+vr,eventPrefix:""+ir.a.SUGGEST_EDIT,callback:t,data:e,successHandler:this.alertService.success(pr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}var _r=n(208),Cr=n(17),Tr=n(251),Sr=n(66),wr=n(59),Er=n(116),kr=n.n(Er);function Ar(e){const{alert:t,svgName:n,svgClassName:r,closeAlert:o}=e,{message:a,heading:s,appLink:c,appLinkText:l,appLinkClassName:u=""}=t,p=Object(Tr.sanitize)(a);return i.createElement(i.Fragment,null,i.createElement("div",{className:"d-inline-block "+kr.a.icon},i.createElement(Sr.a,{svgName:n,className:"svg-container "+r})),i.createElement("div",{className:"pl-2 d-inline-block "+kr.a.alertContent},i.createElement("p",{className:"p-0 m-0 pb-1 "+kr.a.heading},s),i.createElement("p",{className:"p-0 m-0 text-break clamp-4 "+kr.a.message,dangerouslySetInnerHTML:{__html:p}}),!!c&&i.createElement(wr.a,{className:u,appLink:c},l)),i.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:o},"×"))}const xr=e=>{switch(e.type){case Zn.a.Success:return Cr.b.CheckCircleOutline;case Zn.a.Fail:case Zn.a.Warning:return Cr.b.Warning;case Zn.a.Info:default:return Cr.b.Info}};function Ir({alert:e,closeAlert:t}){const[n,r]=i.useState(!0),o=i.useRef();i.useEffect(()=>{n?o.current=window.setTimeout(t,3e3):clearTimeout(o.current)},[n]);const a="text-"+e.type.toLowerCase();return i.createElement("li",{className:"bg-white mt-2 p-2 show clearfix "+kr.a.alertItem,onMouseEnter:()=>r(!1),onMouseLeave:()=>r(!0)},i.createElement(Ar,{alert:e,svgName:xr(e),svgClassName:a,closeAlert:t}))}function Or({alerts:e,removeAlert:t}){return i.createElement("div",{className:kr.a.alertBox},i.createElement(_r.TransitionGroup,{component:"ul",className:kr.a.alertList+" list-unstyled"},e&&e.map((e,n)=>i.createElement(_r.CSSTransition,{key:n,timeout:200,classNames:"alert"},i.createElement(Ir,{alert:e,closeAlert:()=>t(e.id)})))))}var Lr=n(254),Pr=n(190),Nr=n(301);function Rr(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 Dr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=Nr.a.libraries((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),i=y.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&y.a.fetch(this.store.dispatch,n),i.data&&new r.a.Collection(i.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=Nr.a.folder(e,(function(e){return t&&t(new r.a.Model(e))})),i=y.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&y.a.fetch(this.store.dispatch,n),i.data&&new r.a.Model(i.data)}},{key:"name",get:function(){return nr.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&Rr(t.prototype,n),i&&Rr(t,i),e}(),Ur=n(49);function Br(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 Vr=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Ur.a.SERIES),key:"series:".concat(e),success:t}},Mr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=Vr(e,(function(e){return t&&t(new r.a.Model(e))})),i=y.a.getResponse(this.store.getState(),n.key);i.shouldFetch&&y.a.fetch(this.store.dispatch,n);var o=i.data?new r.a.Model(i.data):null;return t&&o&&t(o),o}},{key:"name",get:function(){return nr.a.Series}},{key:"channelName",get:function(){return or.b.SERIES}}])&&Br(t.prototype,n),i&&Br(t,i),e}();function jr(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 Fr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getCurrentUser",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.currentUser(e,t))}},{key:"getToken",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.token(e,t))}},{key:"getWorkspace",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.workspace(e,t))}},{key:"getPermissions",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),_.a.permissions(e,t))}},{key:"name",get:function(){return In.a.FlightUser}}])&&jr(t.prototype,n),r&&jr(t,r),e}(),Hr=n(145);function zr(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 Wr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getConfig",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),Hr.a.config(e,t))}},{key:"getVersion",value:function(e,t){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),Hr.a.version(e,t))}},{key:"name",get:function(){return In.a.FlightConfig}}])&&zr(t.prototype,n),r&&zr(t,r),e}(),qr=n(328);function Gr(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 $r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getShareLink",value:function(e,t,n){y.a.hooklessFetch(this.store.dispatch,this.store.getState(),qr.a.getShareLink(e,t,n))}},{key:"name",get:function(){return In.a.FlightShare}}])&&Gr(t.prototype,n),r&&Gr(t,r),e}();Wn.a;class Kr extends r.a.SilentError{get name(){return"AlertError"}}class Yr extends r.a.SilentError{get name(){return"ErrorPageError"}}var Jr=n(179),Xr=n(334),Qr=n(335),Zr=n(336),ei=n(466),ti=n(467),ni=n(468),ri=n(469);function ii(e){_t.a.getInstance(er.a.ALERT).createAlert({heading:Pr.a.Fail,type:Zn.a.Fail,message:e.message})}function oi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.NOT_FOUND})}function ai(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.ERROR})}function si(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.DIALOG_ERROR})}var ci=n(103),li=n(80),ui=n(242);class pi extends ui.a{isReactComponent(e){return i&&i.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"),ci.render(t,r[0],()=>n.trigger("show")),this.listenToOnce(this,"unmount:"+e,()=>ci.unmountComponentAtNode(r[0])),this.listenToOnce(this,"before:destroy",()=>ci.unmountComponentAtNode(r[0])))}wrapWithStore(e){return i.createElement(li.Provider,{store:this.options.store},e)}}var hi=n(137),di=n(641),fi=n(212),gi=n(106),mi=n(182),yi=n(48);var vi=n(213),bi=n(43),_i=n(164),Ci=n(85),Ti=n(642),Si=n.n(Ti),wi=n(261),Ei=n.n(wi);class ki extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${Ei.a.notificationIcon} ${Ei.a[this.options.color]}`}get template(){return Si.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:Ei.a,svg:Cr.a.getSvg(Cr.b.Bell),unreadCount:this.model.get("unreadCount")}}}var Ai=n(250),xi=n(247),Ii=n(634),Oi=n(646),Li=n.n(Oi),Pi=n(479),Ni=n.n(Pi),Ri=n(480),Di=n.n(Ri);class Ui extends r.a.View{constructor(e){super(e)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return Li.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:xi.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Ni.a,className:"px-1 py-2",viewOptions:{styles:Di.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=_t.a.getInstance(nr.b.Notification,this),this.appVariables=_t.a.getInstance(Ct.a.NOTIFICATIONS,this)}onData(e){this.collection=e,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Ii.a({collectionPrefix:ir.a.NOTIFICATIONS})}renderNotificationList(){const e=new Ai.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),e=>this.onData(e)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var Bi=n(647),Vi=n.n(Bi),Mi=n(648),ji=n.n(Mi);class Fi extends r.a.View{initialize(){this.appVariables=_t.a.getInstance(Ct.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return Vi.a}regions(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}events(){return{"click .notifications-status-region":"renderNotificationList"}}renderNotificationList(){const e=new Ui({childType:Ai.a.Popover});this.showChildView("notifications",e)}renderNotificationStatus(){const e=_t.a.getInstance(nr.b.Notification),t=new ki({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}viewOptions(){return ji.a}onRender(){this.renderNotificationStatus()}}var Hi=n(632),zi=n(333),Wi=n(337),qi=n(269),Gi=n(75),$i=n(40),Ki=n(94),Yi=n(324),Ji=n(325),Xi=n(309),Qi=n.n(Xi),Zi={settings:{application:m.a.SETTINGS,action:v.a.Settings.HOME},analytics:null,logOut:{application:m.a.DEFAULT,action:v.a.Default.LOG_OUT},logIn:{application:m.a.DEFAULT,action:v.a.Default.LOG_IN}},eo=i.memo((function(e){return i.createElement(Ki.a.Provider,{value:"shared.userOptions"},e.user?i.createElement($i.Dropdown,{className:"cursor-pointer mr-3 position-relative"},i.createElement($i.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat(Qi.a.avatarContainer," no-caret")},i.createElement(Yi.a,{imageUrl:e.user.avatar,imageCdnUrl:e.imageCdnUrl,initials:Ji.a.getInitials(e.user.givenName,e.user.familyName)})),i.createElement($i.Dropdown.Menu,{alignRight:!0,className:Qi.a.dropdownMenu,as:"ul"},i.createElement($i.Dropdown.Item,{as:"span"},i.createElement("div",{className:"m-0"},i.createElement("strong",null,e.user.displayName)),i.createElement("div",{className:"m-0 text-muted"},e.user.customerName)),i.createElement($i.Dropdown.Divider,null),!e.onlyShowSignOut&&i.createElement(i.Fragment,null,i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.settings},i.createElement(Ki.b,{phrase:"settings"})),i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.analytics},i.createElement(Ki.b,{phrase:"analytics"})),i.createElement($i.Dropdown.Item,{as:"a",href:e.supportSiteUrl,target:"_blank"},i.createElement(Ki.b,{phrase:"helpCentre"})),i.createElement($i.Dropdown.Divider,null)),i.createElement($i.Dropdown.Item,{as:wr.a,appLink:Zi.logOut},i.createElement(Ki.b,{phrase:"signOut"})))):i.createElement(wr.a,{appLink:Zi.logIn,className:"btn btn-primary mr-2"},i.createElement(Ki.b,{phrase:"logIn"})))}),(function(e,t){var n,r,i,o,a,s,c,l;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(i=e.user)||void 0===i?void 0:i.avatar)===(null===(o=t.user)||void 0===o?void 0:o.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(s=t.user)||void 0===s?void 0:s.displayName)&&(null===(c=e.user)||void 0===c?void 0:c.customerName)===(null===(l=t.user)||void 0===l?void 0:l.customerName)})),to=n(188);function no(e){const t=i.useRef(null),n=i.useCallback(e=>{e&&(t.current=e)},[]),r=()=>{t.current.value=null,t.current.click(null)};return i.createElement(i.Fragment,null,e.svgName?i.createElement(to.a,{svgName:e.svgName,className:e.className,onClick:r},e.children):i.createElement("button",{type:"button",className:e.className,onClick:r},e.children),i.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!!e.acceptMultiple,accept:e.mimeType,ref:n,onChange:t=>e.onFileSelect(t.target.files)}))}no.defaultProps={className:"btn btn-primary"};var ro=i.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(fi.a)(In.b.VideoUpload);return i.createElement(no,{svgName:Cr.b.Upload,className:"btn btn-secondary",mimeType:"video/*",onFileSelect:function(e){return r.addFiles(e,{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Start,descriptor:yi.a.mapInteractionType(d.InteractionType.FileSelect),location:d.LocationContext.TopNav})}},!n&&i.createElement(Ki.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"}))})),io=n(162),oo=n.n(io),ao=n(314);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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(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 co(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 co(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 lo(e){var t=Object(Gi.a)(bi.a.MDDown),n=t?oo.a.logoContainerSm:oo.a.logoContainerLg,r={className:"navbar-brand text-hide align-top ".concat(n," d-inline-block'")};return e.isLink&&(r.href="/"),i.createElement("a",Object.assign({},r),t?i.createElement(qi.b,null):i.createElement(qi.a,null))}function uo(e){var t=so(i.useState(!1),2),n=t[0],r=t[1],o=y.a.useBasicFetch(_.a.currentUser(),{optimize:!0}).data,a=y.a.useBasicFetch(Hr.a.config(),{optimize:!0}),s=y.a.useBasicFetch(zi.a.presentation()),c=Object(_i.a)().hasPermissions,l=Object(vi.a)(),u=Object(Gi.a)(bi.a.SMDown),p=Object(Gi.a)(bi.a.MDDown),h=Object(Gi.a)(bi.a.LGDown);i.useEffect((function(){!p&&n&&r(!1)}),[p,l,n]);var d=so(Object(gi.a)(Gt.a.SEARCH_BAR_LOCATION,!0),1)[0];e.showNav||(d=!1);var f,g=d&&h;return i.createElement("nav",{className:"navbar navbar-expanded w-100 ".concat(oo.a.nav)},!n&&i.createElement("div",{className:"justify-content-start"},e.showNav&&i.createElement(Sr.a,{svgName:Cr.b.Handle,className:"".concat(oo.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),i.createElement(lo,{isLink:e.showNav})),d?p&&!n?i.createElement(ao.a,{className:"ml-auto mr-3",onClick:function(){return r(!0)}},i.createElement(Sr.a,{svgName:Cr.b.Search})):i.createElement("div",{className:n?"w-100 pr-3":"flex-fill mr-3"},i.createElement(Be.a,{className:"container ".concat(oo.a.searchBarNavContainer),view:Hi.a,options:{model:Ci.a.get("search",{ctor:Wi.a}),disableMask:!0,presentationId:null===(f=s.data)||void 0===f?void 0:f.id,showCloseButton:n,onClickClose:function(){return r(!1)}}})):i.createElement(i.Fragment,null),!n&&i.createElement("div",{className:"d-flex align-items-center justify-content-end ".concat(oo.a.actionButtons)},e.showNav&&o&&i.createElement(i.Fragment,null,c(k.a.UploadVideos)&&!u&&i.createElement("div",{className:"mr-3"},i.createElement(ro,{hideButtonText:g})),i.createElement(Be.a,{view:Fi,className:"mx-n2 pr-3"})),!!a.data&&i.createElement(eo,{user:o,imageCdnUrl:a.data.imageCdnUrl,supportSiteUrl:a.data.supportSiteUrl,onlyShowSignOut:!e.showNav})))}var po,ho=n(218);!function(e){e.Discover="Discover",e.Playlists="Playlists",e.MyVideos="MyVideos",e.FavouritedVideos="FavouritedVideos",e.WatchHistory="WatchHistory",e.Classrooms="Classrooms",e.Classroom="Classroom",e.Settings="Settings"}(po||(po={}));var fo=n(338),go=n(46),mo=n(166);const yo="d-inline-block svg-container",vo="span";function bo(e){const{children:t,className:n=yo,tagName:r=vo,size:o=Sr.b.Standard,onClick:a,title:s,tooltipPlacement:c="right"}=e,l=r,u={className:`${n} ${o}`,onClick:go.a.isFunction(a)?a:null};return s?i.createElement(mo.a,{title:s,placement:c},i.createElement(l,Object.assign({},u),t)):i.createElement(l,Object.assign({},u),t)}var _o,Co=n(42),To=n.n(Co);function So(e){var t=e.collapsed&&e.active,n=e.icon,r="".concat(To.a.leftNavAnchor," ").concat(e.className," py-2 ");return r+=!e.collapsed||e.active?To.a.active:To.a.iconGrey,!e.collapsed&&e.active&&(r+=" "+To.a.bgGrey),o.a.createElement(wr.a,{className:r,appLink:e.appLink},o.a.createElement("span",{className:"".concat(To.a.leftNavIcon)},e.icon?o.a.createElement(bo,{size:Sr.b.Large},o.a.createElement(n,null)):o.a.createElement(Sr.a,{svgName:e.svgName,size:Sr.b.Large})),o.a.createElement("span",{className:"".concat(To.a.leftNavText," ").concat(t?To.a.highlightText:"")},e.name))}function wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eo,ko=pr.a.encloseNamespace("shared.leftNav"),Ao=(wo(_o={},po.Discover,{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}),wo(_o,po.Playlists,{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}),wo(_o,po.MyVideos,{application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS}),wo(_o,po.FavouritedVideos,{application:m.a.DEFAULT,action:v.a.Default.FAVOURITE_VIDEOS}),wo(_o,po.Classrooms,{application:m.a.CLASSROOMS,action:v.a.Classrooms.HOME}),wo(_o,po.Classroom,{application:m.a.CLASSROOMS,action:v.a.Classrooms.CLASSROOM}),wo(_o,po.WatchHistory,{application:m.a.WATCH_HISTORY,action:v.a.WatchHistory.HOME}),wo(_o,po.Settings,{application:m.a.SETTINGS,action:v.a.Settings.HOME}),_o);function xo(e){var t=e.activeItem,n=e.dynamicActiveId,r=e.hideFavouritedVideos,i=e.favouritedClassrooms,a=e.hideClassrooms;return o.a.createElement("nav",{className:"".concat(To.a.leftNav," ").concat(To.a.leftNavExpanded," pt-3")},o.a.createElement(ho.Scrollbars,{height:"100%"},o.a.createElement(So,{key:po.Discover,name:ko("discover"),appLink:Ao[po.Discover],className:To.a.discover,svgName:Cr.b.Compass,active:t===po.Discover}),o.a.createElement(So,{key:po.Playlists,name:ko("playlists"),appLink:Ao[po.Playlists],className:To.a.playlists,svgName:Cr.b.Playlist,active:t===po.Playlists}),o.a.createElement(So,{key:po.MyVideos,name:ko("myVideos"),appLink:Ao[po.MyVideos],className:To.a.myVideos,svgName:Cr.b.Video,active:t===po.MyVideos}),!r&&o.a.createElement(So,{key:po.FavouritedVideos,name:ko("favouritedVideos"),appLink:Ao[po.FavouritedVideos],className:To.a.favouritedVideos,svgName:Cr.b.Heart,active:t===po.FavouritedVideos}),o.a.createElement("hr",null),!a&&o.a.createElement(o.a.Fragment,null,o.a.createElement(So,{key:po.Classrooms,name:ko("classrooms"),appLink:Ao[po.Classrooms],className:To.a.classrooms,icon:fo.a,active:t===po.Classrooms}),(null==i?void 0:i.length)?i.map((function(e){return o.a.createElement(So,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Ao[po.Classroom]),{args:[e.id]}),className:To.a.classroom,svgName:Cr.b.Star,active:t===po.Classroom&&e.id===n})})):o.a.createElement(o.a.Fragment,null)),o.a.createElement("div",{className:To.a.leftNavBottom},o.a.createElement(So,{key:po.WatchHistory,name:ko("watchHistory"),appLink:Ao[po.WatchHistory],className:To.a.watchHistory,svgName:Cr.b.History,active:t===po.WatchHistory}),o.a.createElement(So,{key:po.Settings,name:ko("settings"),appLink:Ao[po.Settings],className:To.a.settings,svgName:Cr.b.Cog,active:t===po.Settings}))))}function Io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=pr.a.encloseNamespace("shared.leftNav"),Lo=(Io(Eo={},po.Discover,{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}),Io(Eo,po.Playlists,{application:m.a.PLAYLISTS,action:v.a.Playlists.HOME}),Io(Eo,po.MyVideos,{application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS}),Io(Eo,po.FavouritedVideos,{application:m.a.DEFAULT,action:v.a.Default.FAVOURITE_VIDEOS}),Io(Eo,po.WatchHistory,{application:m.a.WATCH_HISTORY,action:v.a.WatchHistory.HOME}),Eo);function Po(e){var t=e.activeItem,n=e.hideFavouritedVideos;return o.a.createElement("nav",{className:"".concat(To.a.leftNav," ").concat(To.a.leftNavCollapsed," pt-3")},o.a.createElement(ho.Scrollbars,{height:"100%"},o.a.createElement(So,{key:po.Discover,name:Oo("discover"),appLink:Lo[po.Discover],className:To.a.discover,svgName:Cr.b.Compass,active:t===po.Discover,collapsed:!0}),o.a.createElement(So,{key:po.Playlists,name:Oo("playlists"),appLink:Lo[po.Playlists],className:To.a.playlists,svgName:Cr.b.Playlist,active:t===po.Playlists,collapsed:!0}),o.a.createElement(So,{key:po.MyVideos,name:Oo("myVideos"),appLink:Lo[po.MyVideos],className:To.a.myVideos,svgName:Cr.b.Video,active:t===po.MyVideos,collapsed:!0}),!n&&o.a.createElement(So,{key:po.FavouritedVideos,name:Oo("favouritedVideos"),appLink:Lo[po.FavouritedVideos],className:To.a.favouritedVideos,svgName:t===po.FavouritedVideos?Cr.b.Heart:Cr.b.HeartOutline,active:t===po.FavouritedVideos,collapsed:!0}),o.a.createElement(So,{key:po.WatchHistory,name:Oo("watchHistory"),appLink:Lo[po.WatchHistory],className:To.a.watchHistory,svgName:Cr.b.History,active:t===po.WatchHistory,collapsed:!0})))}var No,Ro,Do=n(87),Uo=n(321);function Bo(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vo(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 Vo(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 Vo(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 Mo(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[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Ro||(Ro={}));var jo=(Mo(No={},po.Discover,Do.a.getDiscoverAppLinks()),Mo(No,po.Playlists,Do.a.getPlaylistAppLinks()),Mo(No,po.MyVideos,Do.a.getMyVideosAppLinks()),Mo(No,po.FavouritedVideos,Do.a.getFavouritedVideosAppLinks()),Mo(No,po.WatchHistory,Do.a.getWatchHistoryAppLinks()),Mo(No,po.Classrooms,Do.a.getClassroomsAppLinks()),Mo(No,po.Classroom,Do.a.getClassroomAppLinks()),Mo(No,po.Settings,Do.a.getSettingsAppLinks()),No);function Fo(e){var t,n=Bo(o.a.useState(null),2),r=n[0],i=n[1],a=Bo(o.a.useState([]),2),s=a[0],c=a[1],l=y.a.useBasicFetch(Uo.a.getAll()),u=Object(_i.a)().hasPermissions;if(o.a.useEffect((function(){var e,t;(null===(t=null===(e=l.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&c(l.data.data.filter((function(e){return e.isFavourited})))}),[l.data]),o.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(jo).find((function(n){t||jo[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=po[n])})),i(t)}}),[e.activeAppLink]),e.navState===Ro.Hidden)return o.a.createElement(o.a.Fragment,null);var p=(null===(t=e.activeAppLink)||void 0===t?void 0:t.args)&&e.activeAppLink.args[0];return e.navState===Ro.Collapsed?o.a.createElement(Po,{activeItem:r,hideFavouritedVideos:!u(k.a.FavouriteVideos)}):o.a.createElement(xo,{activeItem:r,dynamicActiveId:p,favouritedClassrooms:s,hideClassrooms:!u(k.a.ViewClassrooms),hideFavouritedVideos:!u(k.a.FavouriteVideos)})}var Ho=n(323);function zo(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wo(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 Wo(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 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}var qo=n(638),Go=n(267),$o=n.n(Go);function Ko(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yo(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 Yo(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 Yo(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 Jo(e){return{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO,args:[e.id,Ye.a.slugify(e.name)],params:Xe.a.getVideoProgress(e)?{t:Math.floor(Xe.a.getVideoProgress(e))}:{}}}function Xo(e){var t,n=e.video;return i.createElement("h2",{className:"mb-0 h6"},!!n.series&&i.createElement(Ho.a,{className:"d-block",video:n,appLink:(t=n.series,{application:m.a.DEFAULT,action:v.a.Default.SERIES,args:[t.id,Ye.a.slugify(t.name)]})}),i.createElement(wr.a,{appLink:Jo(n)},n.name))}function Qo(){!function(){var e,t,n,r,i=y.a.useBasicFetch(Hr.a.config()),a=o.a.useRef(),s=zo(Object(gi.a)(Gt.a.WEB_PLAYER_DATA,{playerRef:a,playerApiUrl:(null===(e=i.data)||void 0===e?void 0:e.playerApiUrl)||"",webPlayerUrl:(null===(t=i.data)||void 0===t?void 0:t.webPlayerUrl)||"",viewKey:null,video:null,playerInViewport:!0,allowFloatingPlayer:!1,isOnPlayPage:!1,startTime:0,playPagePlayerContainerRef:null}),2)[1];o.a.useEffect((function(){var e;(null===(e=i.data)||void 0===e?void 0:e.playerApiUrl)&&s("playerApiUrl",i.data.playerApiUrl)}),[null===(n=i.data)||void 0===n?void 0:n.playerApiUrl]),o.a.useEffect((function(){var e;(null===(e=i.data)||void 0===e?void 0:e.webPlayerUrl)&&s("webPlayerUrl",i.data.webPlayerUrl)}),[null===(r=i.data)||void 0===r?void 0:r.webPlayerUrl])}();var e=Ko(Object(gi.a)(Gt.a.WEB_PLAYER_DATA),2),t=e[0],n=e[1],a=i.useRef(),s=i.useRef(),c=Object(Gi.a)(bi.a.XS),l=t.allowFloatingPlayer&&!c;return function(e,t,n,r){i.useEffect((function(){var i,o=null===(i=e.playPagePlayerContainerRef)||void 0===i?void 0:i.current,a=n.current,s=null==t?void 0:t.current;if(s){var c=e.playerInViewport?a:o,l=e.playerInViewport?o:a;if(r||(c=a,l=o),c&&c===o){var u=c.getBoundingClientRect();c.style.paddingBottom="".concat(u.height/u.width*100,"%")}l&&(l===o&&(l.style.paddingBottom=null),function(e,t){var n;t.firstChild||t.appendChild(s),null===(n=null==e?void 0:e.firstChild)||void 0===n||n.remove()}(c,l))}}),[e.playerInViewport,e.playPagePlayerContainerRef,n,t,r])}(t,s,a,l),(null==t?void 0:t.video)&&(null==t?void 0:t.viewKey)?i.createElement("div",{className:$o.a.floatingPlayer},i.createElement(_r.CSSTransition,{timeout:400,in:l&&!t.playerInViewport,classNames:"floating-player"},i.createElement("div",{className:"d-none shadow"},i.createElement("div",{ref:a},i.createElement(qo.a,{viewKey:t.viewKey,startTime:t.startTime,playerApiUrl:t.playerApiUrl,webPlayerUrl:t.webPlayerUrl,videoId:t.video.id,autoplay:!0,innerRef:s,onReady:function(e){t.playerRef.current=e},onDispose:function(){t.playerRef.current=null},onClickCreateClip:function(){r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:v.a.Default.CREATE_CLIP,args:[t.video.id]})}})),i.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},i.createElement(Xo,{video:t.video}),i.createElement("span",{className:"".concat($o.a.buttons," flex-shrink-1")},i.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){yi.a.logUserAction({id:t.video.id},{location:d.LocationContext.FloatingPlayer,entity:d.EntityType.Video,actionType:d.UserAction.Click,descriptor:d.ClickDescriptor.Close}),n("allowFloatingPlayer",!1),t.isOnPlayPage||n("video",null)}},i.createElement(Sr.a,{svgName:Cr.b.Close})),i.createElement(wr.a,{appLink:Jo(t.video),onClick:function(){yi.a.logUserAction({id:t.video.id},{location:d.LocationContext.FloatingPlayer,entity:d.EntityType.Video,actionType:d.UserAction.Click,descriptor:d.ClickDescriptor.Open})}},!t.isOnPlayPage&&i.createElement(Sr.a,{svgName:Cr.b.NewWindow,className:"".concat($o.a.flippedIcon," d-inline-block svg-container float-right")}))))))):i.createElement(i.Fragment,null)}var Zo=n(331),ea=n(211),ta=n.n(ea);function na(){return i.createElement(i.Fragment,null,i.createElement("div",{className:ta.a.dropMask}),i.createElement("div",{className:ta.a.dropContent},i.createElement("div",{className:ta.a.border},i.createElement("h1",null,i.createElement(Ki.b,{namespace:"shared.dragMask",phrase:"message"})))),i.createElement("div",{className:ta.a.dropArea}))}var ra=n(117),ia=n.n(ra);function oa(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,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aa(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 aa(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 aa(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 sa=function(e){var t=e.showNav,n=e.contentChild,r=e.popupChild,o=e.alertChild,a=e.activeAppLink,s=e.appLinkIsRoute,c=oa(i.useState(!1),2),l=c[0],u=c[1];Object(Zo.a)(),function(){function e(n){"Tab"===n.key&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",t))}function t(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",t),window.addEventListener("keydown",e)}Object(i.useEffect)(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}();var p=Object(_i.a)().hasPermissions,h=Object(vi.a)(),f=h===bi.a.XS,g=h===bi.a.SM,m=h===bi.a.XXL,y=!m&&h!==bi.a.XL,v=oa(Object(gi.a)(Gt.a.WEB_PLAYER_DATA),1)[0];i.useEffect((function(){u(!m)}),[m]);var b=function(e,t,n,r){return r?t?{state:e?Ro.Hidden:Ro.Open,showMask:!e,contentClass:ia.a.hiddenNavContent}:n?{state:e?Ro.Collapsed:Ro.Open,showMask:!e,contentClass:ia.a.collapsedNavContent}:{state:e?Ro.Collapsed:Ro.Open,showMask:!1,contentClass:e?ia.a.collapsedNavContent:ia.a.openNavContent}:{state:Ro.Hidden,showMask:!1,contentClass:ia.a.hiddenNavContent}}(l,f,g,t),_=Object(fi.a)(In.b.VideoUpload),C=i.useCallback((function(e){_.addFiles(e,{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Start,descriptor:yi.a.mapInteractionType(d.InteractionType.DragDrop),location:d.LocationContext.VideoUpload})}),[]),T=Object(di.useDropzone)({onDrop:C,noClick:!0,noKeyboard:!0}),S=T.getRootProps,w=T.getInputProps,E=T.isDragActive,A="d-flex flex-column align-items-end",x="";return(null==v?void 0:v.playerInViewport)?x=ia.a.fixedBottomRightContainer:A+=" ".concat(ia.a.fixedBottomRightContainer),i.createElement("div",Object.assign({},S()),i.createElement(uo,{toggleLeftNav:function(){u(!l)},showNav:t}),t&&i.createElement(Fo,{navState:b.state,activeAppLink:a,appLinkIsRoute:s}),i.createElement("div",{className:"".concat(ia.a.content," ").concat(b.contentClass)},i.createElement("div",{className:"".concat(y?"container-fluid":"container")},n)),r,b.showMask&&i.createElement("div",{className:"modal-backdrop show ".concat(ia.a.mask)}),i.createElement("div",{className:A},!!o&&i.createElement("div",{className:x},o),i.createElement(Qo,null)),p(k.a.UploadVideos)&&i.createElement(i.Fragment,null,E&&i.createElement(na,null),i.createElement("input",Object.assign({},w()))))};function ca(e){return i.createElement(li.Provider,{store:e.store},i.createElement(mi.b,{defaultTitle:""},i.createElement(sa,Object.assign({},e))))}var la=n(673),ua=n.n(la);function pa(e){return(pa="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 ha(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 da(e,t,n){return(da="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=ya(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 fa(e,t){return(fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ga(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=ya(e);if(t){var i=ya(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"!==pa(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 ya(e){return(ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var va=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&&fa(e,t)}(s,e);var t,n,o,a=ga(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).childComponents={},t}return t=s,o=[{key:"getCacheKey",value:function(e){return"".concat(f,":").concat(e.showNav)}}],(n=[{key:"initialize",value:function(){var e;this.activeAppLink=null===(e=hi.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(c.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange)}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[H],popupChild:this.childComponents[z],alertChild:this.childComponents[W],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute}}},{key:"onRouteChange",value:function(e,t){this.activeAppLink=e,this.appLinkIsRoute=t.isAppRoute}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(z)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,e===H&&$(window).scrollTop(0),this.renderLayout()}},{key:"renderLayout",value:function(){da(ya(s.prototype),"showChildView",this).call(this,"layout",i.createElement(ca,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return ua.a}}])&&ha(t.prototype,n),o&&ha(t,o),s}(pi);function ba(e){var t=e.contentChild;return i.createElement(i.Fragment,null,t)}function _a(e){var t=e.store;return i.createElement(li.Provider,{store:t},i.createElement(mi.b,{defaultTitle:""},i.createElement(ba,Object.assign({},e))))}var Ca=n(674),Ta=n.n(Ca);function Sa(e){return(Sa="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 wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(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 ka(e,t,n){return(ka="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=Oa(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 Aa(e,t){return(Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(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=Oa(e);if(t){var i=Oa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ia(this,n)}}function Ia(e,t){return!t||"object"!==Sa(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 Oa(e){return(Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var La=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&&Aa(e,t)}(a,e);var t,n,r,o=xa(a);function a(){var e;return wa(this,a),(e=o.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return g}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[H],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(z)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){ka(Oa(a.prototype),"showChildView",this).call(this,"layout",i.createElement(_a,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return Ta.a}}])&&Ea(t.prototype,n),r&&Ea(t,r),a}(pi);var Pa=n(113);class Na{constructor(e){this.value=e}increment(){this.value+=1}decrement(){this.value-=1}getValue(){return this.value}}class Ra extends r.a.Model{get idAttribute(){return"masterVideoId"}}class Da extends r.a.Collection{get model(){return Ra}}var Ua,Ba=n(141);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Ua||(Ua={}));var Va=n(57);class Ma extends r.a.Service{get name(){return nr.b.PendingItems}get channelName(){return or.c.PENDING_ITEMS}initialize(){this.videoDataService=_t.a.getInstance(nr.a.Video,this),this.videoUploadDataService=_t.a.getInstance(nr.a.VideoUpload,this)}clearPendingItem(e,t){switch(e.get("pendingProcessStatus")){case Ba.a.Completed:case Ba.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.updateViewModel(),this.videoDataService.clearVideoCache(),Hn.isFunction(t)&&t()});break;case Ba.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.videoDataService.clearVideoCache(),this.updateViewModel(),Hn.isFunction(t)&&t()})}}forceFetchPendingItems(e){this.fetchPendingItems(e)}retryPendingItem(e,t){this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:t})})}itemStatusChanged(){a.Radio.channel(this.channelName).trigger(Va.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new Da,this.listenTo(this.pendingItems,"change:foregroundComplete",e=>{if(!e.get("foregroundComplete"))return;this.itemStatusChanged();e.get("video")&&a.Radio.channel(this.channelName).trigger(Va.a.PENDING_ITEM_READY_TO_WATCH,e)}),this.listenTo(this.pendingItems,"remove",e=>{e.get("clearing")||this.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),e=>{e.get("status")===Ba.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(e={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(t=>{const n=Hn.map(t,e=>e.masterVideoId.toString()),i=n=>{Hn.each(t,e=>{const t=n.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Ua.Processing&&t.set("status",Ua.Published))}),this.pendingItems.set(t),this.updateViewModel(),e.resetTimeout&&window.setTimeout(Hn.bind(this.fetchPendingItems,this),this.getTimeoutLength()),Hn.isFunction(e.callback)&&e.callback()};n.length?this.videoDataService.getVideos(n,i):i(new r.a.Collection)})}updateViewModel(){const e=Ci.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void e.set({progress:0,items:0});const t=this.pendingItems.where(e=>e.get("pendingProcessStatus")>=0);let n=0;Hn.each(t,e=>n+=e.get("foregroundProgress"));const r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}getTimeoutLength(){return this.pendingItems.any(e=>e.get("pendingProcessStatus")===Ba.a.Processing)?5e3:3e4}}var ja=n(256);class Fa extends r.a.Service{constructor(){super()}get name(){return nr.b.Notification}initDataServices(){this.notificationDataService=_t.a.getInstance(nr.a.Notification,this),this.notificationSocketService=_t.a.getInstance(nr.a.NotificationSocket,this),this.userDataService=_t.a.getInstance(nr.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const e=ir.a.NOTIFICATIONS;this.listenTo(or.b.NOTIFICATIONS_SOCKET,e+":new:sync",this.addNewNotification),this.listenTo(or.b.NOTIFICATIONS_SOCKET,e+":count:sync",this.updateUnreadCount),this.listenTo(or.b.NOTIFICATIONS,e+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(or.a.NOTIFICATIONS,ja.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(e){this.userDataService.getCurrentUser(t=>{this.notificationDataService.getNotifications(t.id,null,ir.a.NOTIFICATIONS,t=>{t.add(e,{at:0})})})}updateUnreadCount(e=0){Ci.a.get(ir.a.NOTIFICATIONS).set("unreadCount",e)}getNotifications(e,t,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,e,t.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),Ci.a.get(ir.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(e){this.notificationDataService.markRead(e)}getNotificationsCursors(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}var Ha,za,Wa=n(54),qa=n(101),Ga=n(675),$a=n(8),Ka=(Ha=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}Ha(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ya=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return Ka(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Wa.a):e.method?e.url?new Promise((function(n,r){var i=new XMLHttpRequest;i.open(e.method,e.url,!0),i.withCredentials=!0,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var o=e.headers;o&&Object.keys(o).forEach((function(e){i.setRequestHeader(e,o[e])})),e.responseType&&(i.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){i.abort(),r(new Wa.a)}),e.timeout&&(i.timeout=e.timeout),i.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new qa.b(i.status,i.statusText,i.response||i.responseText)):r(new Wa.b(i.statusText,i.status))},i.onerror=function(){t.logger.log($a.a.Warning,"Error from HTTP request. "+i.status+": "+i.statusText+"."),r(new Wa.b(i.statusText,i.status))},i.ontimeout=function(){t.logger.log($a.a.Warning,"Timeout from HTTP request."),r(new Wa.c)},i.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(qa.a),Ja=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xa=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Ya(t):n.httpClient=new Ga.a(t),n}return Ja(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Wa.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(qa.a),Qa=n(676);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(za||(za={}));var Za,es=n(22),ts=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new es.d(this,e)},e}(),ns=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},rs=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Za||(Za={}));var is,os,as=function(){function e(e,t,n,r){var i=this;es.a.isRequired(e,"connection"),es.a.isRequired(t,"logger"),es.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new Qa.a,this.connection.onreceive=function(e){return i.processIncomingData(e)},this.connection.onclose=function(e){return i.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Za.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:za.Ping})}return e.create=function(t,n,r,i){return new e(t,n,r,i)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Za.Disconnected&&this.connectionState!==Za.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return ns(this,void 0,void 0,(function(){var e;return rs(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Za.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Za.Connecting,this.logger.log($a.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Za.Connected,this.connectionStarted=!0,this.logger.log($a.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Za.Disconnected,this.logger.log($a.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return ns(this,void 0,void 0,(function(){var e,t,n,r=this;return rs(this,(function(i){switch(i.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log($a.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return i.sent(),this.logger.log($a.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(i.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=i.sent(),this.logger.log($a.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw i.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return ns(this,void 0,void 0,(function(){var e;return rs(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Za.Disconnected?(this.logger.log($a.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Za.Disconnecting?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Za.Disconnecting,this.logger.log($a.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log($a.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i,o=this.replaceStreamingParams(n),a=o[0],s=o[1],c=this.createStreamInvocation(e,n,s),l=new ts;return l.cancelCallback=function(){var e=t.createCancelInvocation(c.invocationId);return delete t.callbacks[c.invocationId],i.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[c.invocationId]=function(e,t){t?l.error(t):e&&(e.type===za.Completion?e.error?l.error(new Error(e.error)):l.complete():l.next(e.item))},i=this.sendWithProtocol(c).catch((function(e){l.error(e),delete t.callbacks[c.invocationId]})),this.launchStreams(a,i),l},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),i=r[0],o=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,o));return this.launchStreams(i,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.replaceStreamingParams(n),o=i[0],a=i[1],s=this.createInvocation(e,n,!1,a),c=new Promise((function(e,n){t.callbacks[s.invocationId]=function(t,r){r?n(r):t&&(t.type===za.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(s).catch((function(e){n(e),delete t.callbacks[s.invocationId]}));t.launchStreams(o,r)}));return c},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case za.Invocation:this.invokeClientMethod(r);break;case za.StreamItem:case za.Completion:var i=this.callbacks[r.invocationId];i&&(r.type===za.Completion&&delete this.callbacks[r.invocationId],i(r));break;case za.Ping:break;case za.Close:this.logger.log($a.a.Information,"Close message received from server.");var o=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(o):this.stopPromise=this.stopInternal(o);break;default:this.logger.log($a.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var i="Error parsing handshake response: "+e;this.logger.log($a.a.Error,i);var o=new Error(i);throw this.handshakeRejecter(o),o}if(n.error){i="Server returned handshake error: "+n.error;this.logger.log($a.a.Error,i);o=new Error(i);throw this.handshakeRejecter(o),o}return this.logger.log($a.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return ns(e,void 0,void 0,(function(){return rs(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Za.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log($a.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log($a.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log($a.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log($a.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Za.Disconnecting?this.completeClose(e):this.connectionState===Za.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Za.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Za.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log($a.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return ns(this,void 0,void 0,(function(){var t,n,r,i,o,a=this;return rs(this,(function(s){switch(s.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(i=this.getNextRetryDelay(n++,0,r)))return this.logger.log($a.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Za.Reconnecting,e?this.logger.log($a.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log($a.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log($a.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Za.Reconnecting)return this.logger.log($a.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}s.label=1;case 1:return null===i?[3,7]:(this.logger.log($a.a.Information,"Reconnect attempt number "+n+" will start in "+i+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,i)}))]);case 2:if(s.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Za.Reconnecting)return this.logger.log($a.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(s.sent(),this.connectionState=Za.Connected,this.logger.log($a.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log($a.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return o=s.sent(),this.logger.log($a.a.Information,"Reconnect attempt failed because of error '"+o+"'."),this.connectionState!==Za.Reconnecting?(this.logger.log($a.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=o instanceof Error?o:new Error(o.toString()),i=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log($a.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log($a.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:za.Invocation};var i=this.invocationId;return this.invocationId++,{arguments:t,invocationId:i.toString(),streamIds:r,target:e,type:za.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var i;i=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,i))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var i in e)r(i)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];if(this.isObservable(i)){var o=this.invocationId;this.invocationId++,t[o]=i,n.push(o.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:za.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:za.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:za.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:za.Completion}:{invocationId:e,result:n,type:za.Completion}},e}(),ss=[0,2e3,1e4,3e4,null],cs=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):ss}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(is||(is={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(os||(os={}));var ls=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),us=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ps=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},hs=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new ls,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return us(this,void 0,void 0,(function(){var n,r,i,o;return ps(this,(function(a){switch(a.label){case 0:if(es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.url=e,this.logger.log($a.a.Trace,"(LongPolling transport) Connecting."),t===os.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===os.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),i=e+"&_="+Date.now(),this.logger.log($a.a.Trace,"(LongPolling transport) polling: "+i+"."),[4,this.httpClient.get(i,n)];case 2:return 200!==(o=a.sent()).statusCode?(this.logger.log($a.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new Wa.b(o.statusText||"",o.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return us(this,void 0,void 0,(function(){return ps(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return us(this,void 0,void 0,(function(){var n,r,i,o;return ps(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log($a.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(i=a.sent()).statusCode?(this.logger.log($a.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==i.statusCode?(this.logger.log($a.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new Wa.b(i.statusText||"",i.statusCode),this.running=!1):i.content?(this.logger.log($a.a.Trace,"(LongPolling transport) data received. "+Object(es.f)(i.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(i.content)):this.logger.log($a.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return o=a.sent(),this.running?o instanceof Wa.c?this.logger.log($a.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=o,this.running=!1):this.logger.log($a.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+o.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log($a.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return us(this,void 0,void 0,(function(){return ps(this,(function(t){return this.running?[2,Object(es.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return us(this,void 0,void 0,(function(){var e,t;return ps(this,(function(n){switch(n.label){case 0:this.logger.log($a.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log($a.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log($a.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log($a.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log($a.a.Trace,e),this.onclose(this.closeError)}},e}(),ds=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},fs=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},gs=function(){function e(e,t,n,r,i){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=i,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ds(this,void 0,void 0,(function(){var n,r=this;return fs(this,(function(i){switch(i.label){case 0:return es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.logger.log($a.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var o=!1;if(t===os.Text){var a;if(es.c.isBrowser||es.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var s=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:s}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log($a.a.Trace,"(SSE transport) data received. "+Object(es.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");o?r.close(t):i(t)},a.onopen=function(){r.logger.log($a.a.Information,"SSE connected to "+r.url),r.eventSource=a,o=!0,n()}}catch(e){return void i(e)}}else i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return ds(this,void 0,void 0,(function(){return fs(this,(function(t){return this.eventSource?[2,Object(es.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),ms=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ys=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},vs=function(){function e(e,t,n,r,i){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=i,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return ms(this,void 0,void 0,(function(){var n,r=this;return ys(this,(function(i){switch(i.label){case 0:return es.a.isRequired(e,"url"),es.a.isRequired(t,"transferFormat"),es.a.isIn(t,os,"transferFormat"),this.logger.log($a.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=i.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),i.label=2;case 2:return[2,new Promise((function(n,i){var o;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),s=!1;es.c.isNode&&a&&(o=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),o||(o=new r.webSocketConstructor(e)),t===os.Binary&&(o.binaryType="arraybuffer"),o.onopen=function(t){r.logger.log($a.a.Information,"WebSocket connected to "+e+"."),r.webSocket=o,s=!0,n()},o.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),i(t)},o.onmessage=function(e){r.logger.log($a.a.Trace,"(WebSockets transport) data received. "+Object(es.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},o.onclose=function(e){if(s)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),i(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log($a.a.Trace,"(WebSockets transport) sending data. "+Object(es.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log($a.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),bs=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))},_s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Cs=null,Ts=null;if(es.c.isNode){var Ss=require;Cs=Ss("ws"),Ts=Ss("eventsource")}var ws=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,es.a.isRequired(e,"url"),this.logger=Object(es.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,es.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?es.c.isNode&&!t.WebSocket&&Cs&&(t.WebSocket=Cs):t.WebSocket=WebSocket,es.c.isNode||"undefined"==typeof EventSource||t.EventSource?es.c.isNode&&!t.EventSource&&void 0!==Ts&&(t.EventSource=Ts):t.EventSource=EventSource,this.httpClient=t.httpClient||new Xa(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return bs(this,void 0,void 0,(function(){var t;return _s(this,(function(n){switch(n.label){case 0:return e=e||os.Binary,es.a.isIn(e,os,"transferFormat"),this.logger.log($a.a.Debug,"Starting connection with transfer format '"+os[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log($a.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log($a.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Es(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return bs(this,void 0,void 0,(function(){var t=this;return _s(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log($a.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return bs(this,void 0,void 0,(function(){var t;return _s(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log($a.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log($a.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,i,o,a;return _s(this,(function(s){switch(s.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,s.label=1;case 1:return s.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==is.WebSockets?[3,3]:(this.transport=this.constructTransport(is.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return s.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,i=function(){var e;return _s(this,(function(i){switch(i.label){case 0:return[4,o.getNegotiationResponse(t)];case 1:if(n=i.sent(),"Disconnecting"===o.connectionState||"Disconnected"===o.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,o.accessTokenFactory=function(){return e}),r++,[2]}}))},o=this,s.label=6;case 6:return[5,i()];case 7:s.sent(),s.label=8;case 8:if(n.url&&r<100)return[3,6];s.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:s.sent(),s.label=11;case 11:return this.transport instanceof hs&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log($a.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=s.sent(),this.logger.log($a.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return _s(this,(function(c){switch(c.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=c.sent())&&((t={}).Authorization="Bearer "+r,n=t),c.label=2;case 2:i=this.resolveNegotiateUrl(e),this.logger.log($a.a.Debug,"Sending negotiation request: "+i+"."),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.httpClient.post(i,{content:"",headers:n})];case 4:return 200!==(o=c.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+o.statusCode))]:((!(a=JSON.parse(o.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return s=c.sent(),this.logger.log($a.a.Error,"Failed to complete negotiation with the server: "+s),[2,Promise.reject(s)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return bs(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,p,h,d,f;return _s(this,(function(g){switch(g.label){case 0:return i=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log($a.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(i,r)]):[3,2];case 1:return g.sent(),this.connectionId=n.connectionId,[2];case 2:o=[],a=n.availableTransports||[],s=n,c=0,l=a,g.label=3;case 3:return c<l.length?(u=l[c],(p=this.resolveTransportOrError(u,t,r))instanceof Error?(o.push(u.transport+" failed: "+p),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(p))return[3,12];if(this.transport=p,s)return[3,9];g.label=5;case 5:return g.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return s=g.sent(),[3,8];case 7:return h=g.sent(),[2,Promise.reject(h)];case 8:i=this.createConnectUrl(e,s.connectionToken),g.label=9;case 9:return g.trys.push([9,11,,12]),[4,this.startTransport(i,r)];case 10:return g.sent(),this.connectionId=s.connectionId,[2];case 11:return d=g.sent(),this.logger.log($a.a.Error,"Failed to start the transport '"+u.transport+"': "+d),s=void 0,o.push(u.transport+" failed: "+d),"Connecting "!==this.connectionState?(f="Failed to select transport before stop() was called.",this.logger.log($a.a.Debug,f),[2,Promise.reject(new Error(f))]):[3,12];case 12:return c++,[3,3];case 13:return o.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+o.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case is.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new vs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case is.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new gs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case is.LongPolling:return new hs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=is[e.transport];if(null==r)return this.logger.log($a.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it was disabled by the client."),new Error("'"+is[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return os[e]})).indexOf(n)>=0))return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it does not support the requested transfer format '"+os[n]+"'."),new Error("'"+is[r]+"' does not support "+os[n]+".");if(r===is.WebSockets&&!this.options.WebSocket||r===is.ServerSentEvents&&!this.options.EventSource)return this.logger.log($a.a.Debug,"Skipping transport '"+is[r]+"' because it is not supported in your environment.'"),new Error("'"+is[r]+"' is not supported in your environment.");this.logger.log($a.a.Debug,"Selecting transport '"+is[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log($a.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log($a.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log($a.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log($a.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log($a.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log($a.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log($a.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!es.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log($a.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var Es=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new ks,this.transportResult=new ks,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new ks),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return bs(this,void 0,void 0,(function(){var t,n,r;return _s(this,(function(i){switch(i.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(i.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new ks,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return i.sent(),t.resolve(),[3,5];case 4:return r=i.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,i=0,o=e;i<o.length;i++){var a=o[i];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),ks=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),As=n(136),xs=n(142),Is=function(){function e(){this.name="json",this.version=1,this.transferFormat=os.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=As.a.instance);for(var n=[],r=0,i=xs.a.parse(e);r<i.length;r++){var o=i[r],a=JSON.parse(o);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case za.Invocation:this.isInvocationMessage(a);break;case za.StreamItem:this.isStreamItemMessage(a);break;case za.Completion:this.isCompletionMessage(a);break;case za.Ping:case za.Close:break;default:t.log($a.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return xs.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),Os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ls={trace:$a.a.Trace,debug:$a.a.Debug,info:$a.a.Information,information:$a.a.Information,warn:$a.a.Warning,warning:$a.a.Warning,error:$a.a.Error,critical:$a.a.Critical,none:$a.a.None};var Ps=function(){function e(){}return e.prototype.configureLogging=function(e){if(es.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=Ls[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new es.b(t)}else this.logger=new es.b(e);return this},e.prototype.withUrl=function(e,t){return es.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=Os({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return es.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new cs(e):this.reconnectPolicy=e:this.reconnectPolicy=new cs,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new ws(this.url,e);return as.create(t,this.logger||As.a.instance,this.protocol||new Is,this.reconnectPolicy)},e}();class Ns extends $n.Object{constructor(e){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=this.createConnection(e),this.authEndpoint=e.authEndpoint,this.setProviderOptions(e),this.attachSocketEvents(),!1===e.lazy&&this.openConnection()}setProviderOptions(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Za.Connecting),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(e=>this.start.apply(this,e),e=>this.onConnectionError.apply(this,e))}start(e){return this.connection.invoke(this.subscribeEvent,e.token).then(()=>this.setConnectionState(Za.Connected)).catch(e=>this.onConnectionError(e))}stop(){if(this.isConnectedOrConnecting())return this.connection.stop()}attachSocketEvents(){this.connection.onclose(()=>this.onConnectionError),this.connection.onreconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(e){e?console.log("Connection Error. Reason: "+e):console.log("Connection Error."),this.setConnectionState(Za.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout(()=>(this.reconnectTries++,this.openConnection()),this.reconnectTimeout||5e3)}createConnection(e){const t=new Ps,n=`${hr.a.removeTrailingSlash(e.endpoint)}/hubs/${e.hubName}`,r={logger:$a.a.Error};return e.logging&&(r.logger=$a.a.Debug),t.withUrl(n,r).build()}getConnectionToken(){const e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}setConnectionState(e){e===Za.Connected&&console.log("Connected!"),e===Za.Disconnected&&console.log("Disconnected!"),this.connectionState=e}isConnectedOrConnecting(){return this.connectionState===Za.Connecting||this.connectionState===Za.Connected||this.connectionState===Za.Reconnecting}create(e,t,n){this.openConnection(),this.rpc(e,t,n)}read(e,t){this.openConnection(),this.subscribe(e,t)}update(e,t,n){this.openConnection(),this.rpc(e,t,n)}delete(e,t){this.openConnection(),this.rpc(e,null,t)}parseError(){return Kn.a}rpc(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.connection.invoke(e,t).then(e=>r.trigger(i,...e)).catch(e=>r.trigger(o,...e))}subscribe(e,t){const{channel:n,successEvent:r}=t;this.connection.on(e,(...e)=>{n.trigger(r,...e)})}}class Rs extends Ns{get name(){return Gn.Notifications}}class Ds extends r.a.Service{initialize(){this.listenTo(c.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(or.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(or.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return nr.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(e,t){t.isAppRoute&&this.setSearchContext(e)}onTypeaheadToggle(e){if(e.open||this.searchContext.get("filterValue"))return;const t=hi.a.getCurrentContext().appLink;this.setSearchContext(t)}setSearchContext(e){const t=this.isValidSearchContext(e);if(t)this.updateSearchContext(t,e.args);else if(!this.inSearchView(e)){a.Radio.channel(or.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}setFilterValue(e){const t={filterValue:e,title:e};this.searchContext.set(t)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(e){return this.appVariables||(this.appVariables=_t.a.getInstance(Ct.a.SEARCH,this)),Hn.find(((e,t)=>{const n=[];return t.folder&&n.push({appLink:t.folder,searchTag:pr.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:(e,t)=>{_t.a.getInstance(nr.a.Library,t).getFolder(Hn.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.get("name")),_t.a.releaseInstance(nr.a.Library)})}}),t.series&&n.push({appLink:t.series,searchTag:pr.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:(e,t)=>{_t.a.getInstance(nr.a.Series,t).getSeries(Hn.first(e.appLink.args).toString(),e=>{const n=e instanceof r.a.Model?e.get("name"):e.name;t.setFilterValue(n),_t.a.releaseInstance(nr.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),t=>e.application===t.appLink.application&&e.action===t.appLink.action)}inSearchView(e){const t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}var Us=n(322);function Bs(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 Vs=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:y.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){go.a.isFunction(t)&&t(new r.a.Collection(e))},i=Us.a.videos(e,n),o=y.a.getResponse(this.store.getState(),i.key);return o.shouldFetch?y.a.fetch(this.store.dispatch,i):n(o.data),new r.a.Collection(o.data)}},{key:"name",get:function(){return In.a.Video}}])&&Bs(t.prototype,n),i&&Bs(t,i),e}();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)}}var js,Fs,Hs=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.DELETE}},zs=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.DELETE}},Ws=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Yn.a.POST}},qs=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Gs=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},$s=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Yn.a.POST,success:t,data:e}},Ks=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,i;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,Hs(e,t))}},{key:"cancelPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,zs(e,t))}},{key:"retryPendingItems",value:function(e,t){y.a.fetch(this.store.dispatch,Ws(e,t))}},{key:"getPendingItem",value:function(e,t){y.a.fetch(this.store.dispatch,qs(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){y.a.fetch(this.store.dispatch,Gs(e))}},{key:"completeVideoUpload",value:function(e,t){y.a.fetch(this.store.dispatch,$s(e,t))}},{key:"name",get:function(){return In.a.VideoUpload}}])&&Ms(t.prototype,n),i&&Ms(t,i),e}(),Ys=n(332);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(js||(js={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Fs||(Fs={}));const Js=["pdf"],Xs=["doc","docx","dotx","dot","rtf","docm","odt"],Qs=["csv","txt"],Zs=["xls","xlt","xlsx"],ec=["jpg","tif","png","bmp","gif","jpeg"],tc=["zip","rar"],nc=["ppt","pot","pps","pptx"],rc=["srt"],ic={IMAGES:"."+ec.join(",."),RESOURCES:"."+[...Xs,...Zs,...nc,...Js,...Qs,...ec,...tc].join(",."),SUBTITLES:"."+rc.join(",.")};class oc extends Jr.a{constructor(e){super(e)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:pr.a.getPhrase(this.lang,"heading"),text:pr.a.getPhrase(this.lang,"body"),buttons:[{text:pr.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:pr.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}var ac=n(313);class sc extends Jr.a{constructor(){super(pr.a.getPhrase("upload.internetConnectivityError","title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:pr.a.getPhrase("upload.internetConnectivityError","heading"),text:pr.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:pr.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}const cc=[];class lc extends r.a.Service{constructor(e){super(e)}get name(){return"DropzoneWrapper"}initialize(e){const{loggingEnabled:t}=this.options,n=a.Radio.channel(e.channelName),i=this;this.dropzone=new ac(document.createElement("div"),{url:e=>{const t=e[0],{ingestUrl:n}=t.cvUpload;return n},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){t&&(Hn.each(cc,e=>{this.on(e,(...t)=>{const n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on("uploadprogress",(e,t,r)=>{const o=r/e.size*100;n.trigger("progress",i.getId(e),o,r)}),this.on("success",e=>{const t=e.upload.chunks,r=Hn.last(t);let i=r.xhr;i||(i=r.file.xhr);const o=JSON.parse(i.response);e.cvUpload.fileUrl=o.url,n.trigger("upload:success",e,o)}),this.on("error",(e,t,n)=>{n&&0===n.status?r.a.ErrorHelper.throw(new sc):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Kr(pr.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))}))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return ac.isValidFile(e,t)}}class uc extends tr.a{constructor(){super({dataProvider:_t.a.getInstance(Gn.Ajax),cache:_t.a.getInstance(Fn.Fifo),alertService:_t.a.getInstance(er.a.ALERT)})}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(e,t,n,r){const i=this.chain();Hn.each(e,e=>{i.create({resource:"/api/upload",eventPrefix:"request:upload",data:this.getFileUploadRequest(e,t),callback:t=>{n(e,t)}})}),i.func(()=>{r()}).run()}cancelUpload(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){const n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}onDestroy(){_t.a.releaseInstance(Gn.Ajax).releaseInstance(Fn.Fifo)}}var pc;!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(pc||(pc={}));const hc={[pc.Video]:"video/*",[pc.LearningResource]:ic.RESOURCES,[pc.Subtitle]:ic.SUBTITLES},dc={[pc.Video]:or.c.VIDEO_UPLOAD,[pc.LearningResource]:or.c.RESOURCE_UPLOAD,[pc.Subtitle]:or.c.SUBTITLE_UPLOAD};class fc extends r.a.Service{initialize(){this.uploadDataService=new uc,this.progressViewModel=Ci.a.get("upload:progress:"+this.uploadType),this.bindListeners()}get channelName(){return dc[this.uploadType]}get lang(){return"upload.services"}initUploader(e,t){if(this.uploader)return;let n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new lc({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}onProgress(e,t,n){const r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||(this.collection=new r.a.Collection),this.collection}setOverallProgress(){let e=0,t=0;const n=this.getCollection();if(!n.length)return void this.progressViewModel.set({progress:0});n.each(n=>{e+=n.get("totalUploaded")||0,t+=n.get("file").size||0});const r=e/t*100,i=r>100;this.progressViewModel.set({progress:i?100:r,done:i})}isValidFile(e){return lc.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){Hn.any(e,e=>!this.isValidFile(e))?r.a.ErrorHelper.throw(new oc(pr.a.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}requestUploads(e,t){const n=this.isUploading(),r=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(e,t)=>{this.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},this.uploader.addFile(e);let n=e.name;this.uploadType===pc.Video&&(n=n.replace(/\.[^/.]+$/,"")),r.add({id:this.uploader.getId(e),file:e,name:n},{at:r.length-1})},()=>{t&&yi.a.logUserAction({uploadCount:e.length},t);a.Radio.channel(this.channelName).trigger(Va.a.FILES_ADDED,e,n)})}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){const t=this.getCollection(),n=t.get(e);if(!n)return;const r=n.get("file");this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{yi.a.logUserAction({id:r.cvUpload.uploadId},{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Discard,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.MyUploads}),a.Radio.channel(this.channelName).trigger(Va.a.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){const n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),yi.a.logUserAction({id:e.cvUpload.uploadId},{entity:d.EntityType.Video,actionType:d.UserAction.Upload,workflowPhase:d.WorkflowPhase.Complete,descriptor:d.OperationDescriptor.Single,location:d.LocationContext.VideoUpload});a.Radio.channel(this.channelName).trigger(Va.a.UPLOAD_COMPLETE,r)}cancelAllUploads(){const e=this.getCollection().map(e=>e.get("id"));Hn.each(e,e=>this.cancelUpload(e))}getAcceptedFiles(){return hc[this.uploadType]}}class gc extends fc{get uploadType(){return pc.Video}get name(){return nr.b.VideoUpload}get fileLifestyle(){return Fs.Temporary}}var mc,yc;function vc(e){return(vc="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 bc(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 Cc(e,t,n){return(Cc="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=Ec(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 Tc(e,t){return(Tc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sc(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=Ec(e);if(t){var i=Ec(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wc(this,n)}}function wc(e,t){return!t||"object"!==vc(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 Ec(e){return(Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(mc||(mc={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(yc||(yc={}));var kc=pr.a.encloseNamespace("upload.services"),Ac=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&&Tc(e,t)}(o,e);var t,n,r,i=Sc(o);function o(){return bc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){Cc(Ec(o.prototype),"initialize",this).call(this),this.videoUploadDataService=_t.a.getInstance(In.a.VideoUpload,this),this.pendingItemsService=_t.a.getInstance(In.b.PendingItems,this),this.userDataService=_t.a.getInstance(In.a.FlightUser,this),this.alertService=_t.a.getInstance(er.a.ALERT,this),this.listenTo(this.channelName,Va.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,Va.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,Va.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:Zn.a.Success,heading:kc("startUploadAlertHeading"),message:1===e.length?kc("startUploadSingleAlertBody",{videoName:e[0].name}):kc("startUploadMultipleAlertBody",{uploadCount:e.length})},n=hi.a.getCurrentContext().appLink;!!Do.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=kc("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:m.a.DEFAULT,action:v.a.Default.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(Va.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(i){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:i.id,categoryId:null,pendingProcessOrigin:js.Upload,origin:mc.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:yc.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Cc(Ec(o.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&_c(t.prototype,n),r&&_c(t,r),o}(gc);class xc extends r.a.Service{constructor(e){super(e),this.imageUrls=e.imageUrls}get name(){return nr.b.ImageUrl}getImageUrls(){return this.imageUrls}}var Ic=n(216);var Oc=n(268),Lc=n(72),Pc=n(245);const Nc={version:null};function Rc(e=Nc,t){switch(t.type){case Pc.a.API_REPONSE:return function(e,t){return Lc.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}(e,t)}return e}var Dc=n(255);function Uc(e={},t){switch(t.type){case Dc.a.UPDATE: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}var Bc=n(244),Vc=n(168);var Mc={"{gateway}":"gatewayApiUrl"};function jc(e,t){var n=Object(Oc.combineReducers)({flightData:y.a.FlightReducer,applicationData:Rc,viewModelData:Uc}),r=y.a.createMiddleware({fetchData:function(e){var t=Object.keys(Mc).find((function(t){return e.resource.startsWith(t)}));if(!t)return y.a.ajaxRequest(e);_t.a.getInstance(In.a.FlightConfig).getConfig((function(n){var r=_t.a.getInstance(In.a.FlightUser);_t.a.releaseInstance(In.a.FlightConfig),r.getToken((function(r){if(_t.a.releaseInstance(In.a.FlightUser),null==r?void 0:r.value){var i=n[Mc[t]];e.resource="".concat(i).concat(e.resource.split("".concat(t,"/"))[1]),e.headers={authorization:"Bearer ".concat(r.value)},y.a.ajaxRequest(e)}else y.a.ajaxRequest(e)}),(function(){y.a.ajaxRequest(e),_t.a.releaseInstance(In.a.FlightUser)}))}),(function(){y.a.ajaxRequest(e),_t.a.releaseInstance(In.a.FlightConfig)}))},bootstrappedData:window.bootstrapData||{},defaultExpiryTime:rr.a.STANDARD}),i=function(e){const{oldVersionError:t,authenticationError:n}=e;return function(e){return r=>i=>{var o,a;if(i.type!==Bc.Actions.API_REPONSE)return void r(i);const s=i,c=e.getState().applicationData.version,l=null===(o=null==s?void 0:s.xhr)||void 0===o?void 0:o.getResponseHeader("X-App-Version");t&&c&&l&&l!==c&&Wn.c.throw(t),n&&(null===(a=null==s?void 0:s.xhr)||void 0===a?void 0:a.status)===Vc.a.Unauthorized&&Wn.c.throw(n),r(i)}}}({oldVersionError:new An.a("A new version is available"),authenticationError:new An.a("Authentication Error")});var o,a=Object(Oc.createStore)(n,Object(Oc.applyMiddleware)(r,i));o=a,e.registerStore(o),t(),delete window.bootstrapData}var Fc=n(215);function Hc(e){return(Hc="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 zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(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 qc(e,t){return(qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gc(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=Kc(e);if(t){var i=Kc(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"!==Hc(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 Kc(e){return(Kc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yc=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&&qc(e,t)}(o,e);var t,n,r,i=Gc(o);function o(){return zc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{searchResults:{application:m.a.SEARCH,action:v.a.Search.HOME},series:{application:m.a.DEFAULT,action:v.a.Default.SERIES},videoDetails:{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO},tagSearch:{application:m.a.SEARCH,action:v.a.Search.HOME},classification:{application:m.a.SUBJECT,action:v.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return pr.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}},{key:"showSearchTips",get:function(){return!1}}])&&Wc(t.prototype,n),r&&Wc(t,r),o}(Fc.BaseSearchAppVariables),Jc=n(69);function Xc(e){return(Xc="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 Qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(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 el(e,t){return(el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tl(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=rl(e);if(t){var i=rl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nl(this,n)}}function nl(e,t){return!t||"object"!==Xc(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 rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var il=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&&el(e,t)}(o,e);var t,n,r,i=tl(o);function o(){return Qc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:m.a.DEFAULT,action:v.a.Default.PLAY_VIDEO},notifications:{application:m.a.NOTIFICATIONS,action:v.a.Notifications.HOME},pastReleases:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME},awaitingReview:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME},editStaffRequest:{application:m.a.DASHBOARD,action:v.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Jc.a.VideoReviewReminder,Jc.a.VideoReviewAddedToLibrary,Jc.a.CustomLibraryVideoAvailable,Jc.a.WorkspaceVideoAvailable,Jc.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return Ic.a.EmptyStates.NOTIFICATIONS}},{key:"bellIconColor",get:function(){return"dark"}}])&&Zc(t.prototype,n),r&&Zc(t,r),o}(Fc.BaseNotificationsAppVariables);function ol(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 al=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasCompletedOnboarding=t.hasCompletedOnboarding}var t,n,r;return t=e,(n=[{key:"name",get:function(){return Ct.a.SUBJECTS}}])&&ol(t.prototype,n),r&&ol(t,r),e}();var sl=n(34);const cl={register(){sl.registerHelper("lang",(e,t)=>{if(!this.isValid(e,t))return;const n=t.data.root.languageNamespace;return pr.a.getPhrase(n,e,t.hash)})},isValid:(e,t)=>"string"!=typeof e?(r.a.ErrorHelper.throw(new An.a("No language key provided.")),!1):"object"!=typeof t?(r.a.ErrorHelper.throw(new An.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!Hn.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new An.a("No `lang` property provided.")),!1)};var ll,ul=n(217);!function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(ll||(ll={}));const pl={curriculum:!1};class hl{constructor(e){this.options=Object.assign({onlineModules:pl},e)}get name(){return nr.b.AppOptions}get hasCurriculum(){return this.options.onlineModules.curriculum}get isTeacher(){return this.options.onlineRole===ul.a.Staff}get onlineRole(){return this.options.onlineRole}get onlineCustomerType(){return this.options.customerType}}n(138),n(253),n(252);r.a.Service;$n.Object;class dl extends r.a.Service{enrich(e,t){}isType(e){return e===dl.type}}dl.type="BaseAnalyticsEnricher";n(289);n(259);class fl extends r.a.Service{constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(e){return e===fl.type}}fl.type="BaseAnalyticsClient";var gl;n(185),n(260);!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(gl||(gl={}));var ml=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});ml.addInitializationStep(jc).addInitializationStep((function(e,t){e.registerLayout(f,va).registerLayout(g,La),t(e)})).addInitializationStep((function(e,t){_t.a.registerInstance(qn,{size:100}),t(e)})).addInitializationStep((function(e,t){_t.a.registerInstance(Qn,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep(jc).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:Pr.a.Success,type:Zn.a.Success},defaultErrorAlert:{heading:Pr.a.Fail,type:Zn.a.Fail},alertViewCtor:Or};_t.a.registerSingleton(new Zn.b(n));var r=_t.a.getInstance(er.a.ALERT),i={cache:Fn.Fifo,dataProvider:Gn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};_t.a.registerDataService(Lr.a,i).registerDataService(sr,i).registerDataService(br,i);var o={store:e.store};_t.a.registerInstance(Dr,o).registerInstance(Mr,o).registerInstance(Fr,o).registerInstance(Wr,o).registerInstance($r,o);var a={cache:Fn.Fifo,dataProvider:Gn.Notifications,alertService:r};_t.a.registerDataService(lr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Ds;_t.a.registerInstance(xc,{imageUrls:Ic.a}).registerInstance(Ac).registerInstance(Vs,{store:e.store}).registerInstance(Ks,{store:e.store}).registerInstance(Ma).registerInstance(Ys.a).registerInstance(Fa).registerSingleton(n);var r=new Na(2),i=function(){r.decrement(),r.getValue()>0||(_t.a.releaseInstance(nr.a.Language),_t.a.releaseInstance(In.a.FlightConfig),t(e))};_t.a.getInstance(nr.a.Language).getLanguageConfig((function(e){pr.a.setConfig(e),i()})),_t.a.getInstance(In.a.FlightConfig).getConfig((function(e){_t.a.registerInstance(Rs,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),i()}))})).addInitializationStep((function(e,t){_t.a.registerInstance(Yc).registerInstance(il),O({shell:e,appLink:null},(function(n){_t.a.registerInstance(al,{hasCompletedOnboarding:!n}),t(e)}))})).addInitializationStep((function(e,t){e.registerApplication(Ee).registerApplication(jn).registerApplication(ct).registerApplication(fe).registerApplication(Pt).registerApplication(Ue).registerApplication(Ke).registerApplication(bt).registerApplication(re).registerApplication(rn).registerApplication(zt).registerApplication(F).registerApplication(gn).registerApplication(kn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:Hn.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){cl.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Yr,ai).registerErrorHandler(Jr.a,si).registerErrorHandler(Kr,ii).registerErrorHandler(b.a,oi).registerErrorHandler(Xr.a,ai).registerErrorHandler(Qr.a,ai).registerErrorHandler(Zr.a,ai).registerErrorHandler(ei.a,oi).registerErrorHandler(ti.a,ai).registerErrorHandler(ni.a,oi).registerErrorHandler(ri.a,ai),t()})).addInitializationStep((function(e,t){_t.a.registerSingleton(new hl({onlineRole:ul.a.Staff,customerType:ll.Primary})),t(e)})),ml.addStartUpStep((function(e,t,n){_t.a.getInstance(In.a.FlightConfig).getConfig((function(){Pa.a.setUpVariables({isDevelopment:!1}),n(e,t),_t.a.releaseInstance(In.a.FlightConfig)}))})),ml.start()},function(e,t){e.exports=y},function(e,t){e.exports=v},function(e,t){e.exports=b},function(e,t){e.exports=_},function(e,t){e.exports=C}])}));