@clickview/lite 0.1.0-rc.0 → 0.1.2
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.
|
@@ -43,6 +43,6 @@ var r=n(837),i=n(838),o=n(839);function a(){return c.TYPED_ARRAY_SUPPORT?2147483
|
|
|
43
43
|
*
|
|
44
44
|
* Date: 2019-10-04T04:33:48.372Z
|
|
45
45
|
*/
|
|
46
|
-
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},u=!!s&&"ontouchstart"in c.document.documentElement,l=!!s&&"PointerEvent"in c,f="".concat("cropper","-crop"),p="".concat("cropper","-disabled"),d="".concat("cropper","-hidden"),h="".concat("cropper","-hide"),y="".concat("cropper","-invisible"),m="".concat("cropper","-modal"),v="".concat("cropper","-move"),g="".concat("cropper","Action"),b="".concat("cropper","Preview"),w=u?"touchstart":"mousedown",_=u?"touchmove":"mousemove",S=u?"touchend touchcancel":"mouseup",C=l?"pointerdown":w,T=l?"pointermove":_,E=l?"pointerup pointercancel":S,O=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,k=/^data:/,P=/^data:image\/jpeg;base64,/,A=/^img|canvas$/i,I={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},x=Number.isNaN||c.isNaN;function R(e){return"number"==typeof e&&!x(e)}var L=function(e){return e>0&&e<1/0};function j(e){return void 0===e}function N(t){return"object"===e(t)&&null!==t}var D=Object.prototype.hasOwnProperty;function B(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&D.call(n,"isPrototypeOf")}catch(e){return!1}}function U(e){return"function"==typeof e}var M=Array.prototype.slice;function V(e){return Array.from?Array.from(e):M.call(e)}function F(e,t){return e&&U(t)&&(Array.isArray(e)||R(e.length)?V(e).forEach((function(n,r){t.call(e,n,r,e)})):N(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var H=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N(e)&&n.length>0&&n.forEach((function(t){N(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},z=/\.\d*(?:0|9){12}\d*$/;function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return z.test(e)?Math.round(e*t)/t:e}var G=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;F(t,(function(e,t){G.test(t)&&R(e)&&(e="".concat(e,"px")),n[t]=e}))}function Y(e,t){if(t)if(R(e.length))F(e,(function(e){Y(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function K(e,t){t&&(R(e.length)?F(e,(function(e){K(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function X(e,t,n){t&&(R(e.length)?F(e,(function(e){X(e,t,n)})):n?Y(e,t):K(e,t))}var Q=/([a-z\d])([A-Z])/g;function $(e){return e.replace(Q,"$1-$2").toLowerCase()}function Z(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat($(t)))}function J(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat($(t)),n)}var ee=/\s\s*/,te=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(!te){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(r.once&&!te){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function ie(e,t,n){var r;return U(Event)&&U(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function oe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,se=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ce(e){var t=e.match(se);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function ue(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];R(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),R(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),R(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),R(n)&&1!==n&&a.push("scaleX(".concat(n,")")),R(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function fe(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({startX:n,startY:r},i)}function pe(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=L(r),a=L(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,c=t.rotate,u=void 0===c?0:c,l=t.scaleX,f=void 0===l?1:l,p=t.scaleY,d=void 0===p?1:p,h=n.aspectRatio,y=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,S=void 0===_?"low":_,C=r.maxWidth,T=void 0===C?1/0:C,E=r.maxHeight,O=void 0===E?1/0:E,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,x=document.createElement("canvas"),R=x.getContext("2d"),L=pe({aspectRatio:h,width:T,height:O}),j=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(L.width,Math.max(j.width,y)),D=Math.min(L.height,Math.max(j.height,m)),B=pe({aspectRatio:i,width:T,height:O}),U=pe({aspectRatio:i,width:P,height:I},"cover"),M=Math.min(B.width,Math.max(U.width,o)),V=Math.min(B.height,Math.max(U.height,s)),F=[-M/2,-V/2,M,V];return x.width=W(N),x.height=W(D),R.fillStyle=g,R.fillRect(0,0,N,D),R.save(),R.translate(N/2,D/2),R.rotate(u*Math.PI/180),R.scale(f,d),R.imageSmoothingEnabled=w,R.imageSmoothingQuality=S,R.drawImage.apply(R,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),R.restore(),x}var he=String.fromCharCode,ye=/^data:.*,/;function me(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var c=i+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(n,i+4,4)){var u=n.getUint16(c);if(((r=18761===u)||19789===u)&&42===n.getUint16(c+2,r)){var l=n.getUint32(c+4,r);l>=8&&(o=c+l)}}}if(o){var f,p,d=n.getUint16(o,r);for(p=0;p<d;p+=1)if(f=o+12*p+2,274===n.getUint16(f,r)){f+=8,t=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(e){t=1}return t}var ve={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;Y(r,d),K(e,d);var i={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=i,q(r,{width:i.width,height:i.height}),Y(e,d),K(r,d)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,c=e.height;e.height*a>e.width?3===n?s=e.height*a:c=e.width/a:3===n?c=e.width/a:s=e.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(e.width-s)/2,u.top=(e.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=H({},t),this.initialCanvasData=H({},u)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(e){var u=Number(n.minCanvasWidth)||0,l=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),l=Math.max(l,r.height),3===a&&(l*s>u?u=l*s:l=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):l?l=Math.max(l,c?o.height:0):c&&(u=o.width,(l=o.height)*s>u?u=l*s:l=u/s));var f=pe({aspectRatio:s,width:u,height:l});u=f.width,l=f.height,i.minWidth=u,i.minHeight=l,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(c?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,c=t*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,q(this.canvas,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);H(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),q(this.image,H({width:n.width,height:n.height},le(H({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=H({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,l=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,f=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),f*s>l?f=l/s:l=f*s),o.minWidth=Math.min(c,l),o.minHeight=Math.min(u,f),o.maxWidth=l,o.maxHeight=f}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&J(this.face,g,n.width>=t.width&&n.height>=t.height?"move":"all"),q(this.cropBox,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ie(this.element,"crop",this.getData())}},ge={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,F(a,(function(e){var n=document.createElement("img");J(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){F(this.previews,(function(e){var t=Z(e,b);q(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(N(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat($(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,c=n.top-t.top-e.top;this.cropped&&!this.disabled&&(q(this.viewBoxImage,H({width:o,height:a},le(H({translateX:-s,translateY:-c},e)))),F(this.previews,(function(t){var n=Z(t,b),u=n.width,l=n.height,f=u,p=l,d=1;r&&(p=i*(d=u/r)),i&&p>l&&(f=r*(d=l/i),p=l),q(t,{width:f,height:p}),q(t.getElementsByTagName("img")[0],H({width:o*d,height:a*d},le(H({translateX:-s*d,translateY:-c*d},e))))})))}},be={bind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&re(e,"cropstart",t.cropstart),U(t.cropmove)&&re(e,"cropmove",t.cropmove),U(t.cropend)&&re(e,"cropend",t.cropend),U(t.crop)&&re(e,"crop",t.crop),U(t.zoom)&&re(e,"zoom",t.zoom),re(n,C,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&re(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&re(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),re(e.ownerDocument,T,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,E,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&re(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&ne(e,"cropstart",t.cropstart),U(t.cropmove)&&ne(e,"cropmove",t.cropmove),U(t.cropend)&&ne(e,"cropend",t.cropend),U(t.crop)&&ne(e,"crop",t.crop),U(t.zoom)&&ne(e,"zoom",t.zoom),ne(n,C,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ne(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ne(n,"dblclick",this.onDblclick),ne(e.ownerDocument,T,this.onCropMove),ne(e.ownerDocument,E,this.onCropEnd),t.responsive&&ne(window,"resize",this.onResize)}},we={resize:function(){var e=this.options,t=this.container,n=this.containerData,r=Number(e.minContainerWidth)||200,i=Number(e.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=t.offsetWidth/n.width;1===s&&t.offsetHeight===n.height||(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(F(o,(function(e,t){o[t]=e*s}))),this.setCropBoxData(F(a,(function(e,t){a[t]=e*s})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=f,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(R(t)&&1!==t||R(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){o[e.identifier]=fe(e)})):o[e.pointerId||0]=fe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(e.target,g),O.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,Y(this.dragBox,m)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ie(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?F(e.changedTouches,(function(e){H(n[e.identifier]||{},fe(e,!0))})):H(n[e.pointerId||0]||{},fe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,X(this.dragBox,m,this.cropped&&this.options.modal)),ie(this.element,"cropend",{originalEvent:e,action:t}))}}},_e={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,l=a.left,f=a.top,p=a.width,h=a.height,y=l+p,m=f+h,v=0,g=0,b=i.width,w=i.height,_=!0;!u&&e.shiftKey&&(u=p&&h?p/h:1),this.limited&&(v=a.minLeft,g=a.minTop,b=v+Math.min(i.width,r.width,r.left+r.width),w=g+Math.min(i.height,r.height,r.top+r.height));var S=s[Object.keys(s)[0]],C={x:S.endX-S.startX,y:S.endY-S.startY},T=function(e){switch(e){case"e":y+C.x>b&&(C.x=b-y);break;case"w":l+C.x<v&&(C.x=v-l);break;case"n":f+C.y<g&&(C.y=g-f);break;case"s":m+C.y>w&&(C.y=w-m)}};switch(c){case"all":l+=C.x,f+=C.y;break;case"e":if(C.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}T("e"),(p+=C.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(C.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}T("n"),h-=C.y,f+=C.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(C.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}T("w"),p-=C.x,l+=C.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(C.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}T("s"),(h+=C.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(C.y<=0&&(f<=g||y>=b)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u}else T("n"),T("e"),C.x>=0?y<b?p+=C.x:C.y<=0&&f<=g&&(_=!1):p+=C.x,C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="sw",f-=h=-h,l-=p=-p):p<0?(c="nw",l-=p=-p):h<0&&(c="se",f-=h=-h);break;case"nw":if(u){if(C.y<=0&&(f<=g||l<=v)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u,l+=a.width-p}else T("n"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y<=0&&f<=g&&(_=!1):(p-=C.x,l+=C.x),C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="se",f-=h=-h,l-=p=-p):p<0?(c="ne",l-=p=-p):h<0&&(c="sw",f-=h=-h);break;case"sw":if(u){if(C.x<=0&&(l<=v||m>=w)){_=!1;break}T("w"),p-=C.x,l+=C.x,h=p/u}else T("s"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y>=0&&m>=w&&(_=!1):(p-=C.x,l+=C.x),C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="ne",f-=h=-h,l-=p=-p):p<0?(c="se",l-=p=-p):h<0&&(c="nw",f-=h=-h);break;case"se":if(u){if(C.x>=0&&(y>=b||m>=w)){_=!1;break}T("e"),h=(p+=C.x)/u}else T("s"),T("e"),C.x>=0?y<b?p+=C.x:C.y>=0&&m>=w&&(_=!1):p+=C.x,C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="nw",f-=h=-h,l-=p=-p):p<0?(c="sw",l-=p=-p):h<0&&(c="ne",f-=h=-h);break;case"move":this.move(C.x,C.y),_=!1;break;case"zoom":this.zoom(function(e){var t=o({},e),n=[];return F(e,(function(e,r){delete t[r],F(t,(function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),c=(Math.sqrt(o*o+a*a)-s)/s;n.push(c)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),_=!1;break;case"crop":if(!C.x||!C.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(l-=p,c=C.y>0?"sw":"nw"),C.y<0&&(f-=h),this.cropped||(K(this.cropBox,d),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(a.width=p,a.height=h,a.left=l,a.top=f,this.action=c,this.renderCropBox()),F(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},Se={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Y(this.dragBox,m),K(this.cropBox,d),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=H({},this.initialImageData),this.canvasData=H({},this.initialCanvasData),this.cropBoxData=H({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(H(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),K(this.dragBox,m),Y(this.cropBox,d)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,F(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,K(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Y(this.cropper,p)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(j(e)?e:r+Number(e),j(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(R(e)&&(n.left=e,r=!0),R(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*e,l=c*e;if(!1===ie(this.element,"zoom",{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var f=this.pointers,p=oe(this.cropper),d=f&&Object.keys(f).length?function(e){var t=0,n=0,r=0;return F(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),{pageX:t/=r,pageY:n/=r}}(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((d.pageX-p.left-i.left)/o),i.top-=(l-a)*((d.pageY-p.top-i.top)/a)}else B(t)&&R(t.x)&&R(t.y)?(i.left-=(u-o)*((t.x-i.left)/o),i.top-=(l-a)*((t.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(l-a)/2);i.width=u,i.height=l,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return R(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,R(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(R(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(R(e)&&(n.scaleX=e,r=!0),R(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(F(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),c=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=c-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&B(e)){var o=!1;t.rotatable&&R(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(R(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),R(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;R(e.x)&&(i.left=e.x*a+r.left),R(e.y)&&(i.top=e.y*a+r.top),R(e.width)&&(i.width=e.width*a),R(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?H({},this.containerData):{}},getImageData:function(){return this.sized?H({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&F(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&B(e)&&(R(e.left)&&(t.left=e.left),R(e.top)&&(t.top=e.top),R(e.width)?(t.width=e.width,t.height=e.width/n):R(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&B(e)&&(R(e.left)&&(r.left=e.left),R(e.top)&&(r.top=e.top),R(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),R(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,s=r.width,c=r.height,u=n.width/Math.floor(t.naturalWidth);1!==u&&(i*=u,o*=u,s*=u,c*=u);var l=s/c,f=pe({aspectRatio:l,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=pe({aspectRatio:l,width:e.minWidth||0,height:e.minHeight||0},"cover"),d=pe({aspectRatio:l,width:e.width||(1!==u?n.width:s),height:e.height||(1!==u?n.height:c)}),h=d.width,y=d.height;h=Math.min(f.width,Math.max(p.width,h)),y=Math.min(f.height,Math.max(p.height,y));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=W(h),m.height=W(y),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,h,y);var g=e.imageSmoothingEnabled,b=void 0===g||g,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,w&&(v.imageSmoothingQuality=w);var _,S,C,T,E,O,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,C=0,E=0):A<=0?(C=-A,A=0,E=_=Math.min(k,s+A)):A<=k&&(C=0,E=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,T=0,O=0):I<=0?(T=-I,I=0,O=S=Math.min(P,c+I)):I<=P&&(T=0,O=S=Math.min(c,P-I));var x=[A,I,_,S];if(E>0&&O>0){var R=h/s;x.push(C*R,T*R,E*R,O*R)}return v.drawImage.apply(v,[n].concat(a(x.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||j(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===e,o=t.movable&&"move"===e;e=i||o?e:"none",t.dragMode=e,J(n,g,e),X(n,f,i),X(n,v,o),t.cropBoxMovable||(J(r,g,e),X(r,f,i),X(r,v,o))}return this}},Ce=c.Cropper,Te=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!A.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=H({},I,B(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,i,o;return r=e,o=[{key:"noConflict",value:function(){return window.Cropper=Ce,e}},{key:"setDefaults",value:function(e){H(I,B(e)&&e)}}],(i=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(e))P.test(e)?this.read((i=e.replace(ye,""),o=atob(i),a=new ArrayBuffer(o.length),F(s=new Uint8Array(a),(function(e,t){s[t]=o.charCodeAt(t)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){t.read(c.response)},c.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&ce(e)&&n.crossOrigin&&(e=ue(e)),c.open("GET",e),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=me(e),i=0,o=1,a=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(he.apply(null,V(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ce(t)&&(n||(n="anonymous"),r=ue(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Y(i,h),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){H(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),Y(e,d),r.insertBefore(o,e.nextSibling),this.isImg||K(n,h),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Y(c,d),t.guides||Y(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||Y(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&Y(o,"".concat("cropper","-bg")),t.highlight||Y(u,y),t.cropBoxMovable&&(Y(u,v),J(u,g,"all")),t.cropBoxResizable||(Y(c.getElementsByClassName("".concat("cropper","-line")),d),Y(c.getElementsByClassName("".concat("cropper","-point")),d)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),U(t.ready)&&re(e,"ready",t.ready,{once:!0}),ie(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),K(this.element,d))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,i),o&&n(r,o),e}();return H(Te.prototype,ve,ge,be,we,_e,Se),Te}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(18),i=n(28);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,i=e.cursor;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},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(130);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";n.d(t,"a",(function(){return a}));var r=n(38),i=n(359),o=function(e){return"recently:shared:to:".concat(e)},a={getRecentlySharedTo:function(e){return i.a.getRecentItem(o(e),r.a)},addRecentlySharedTo:function(e,t){return i.a.addRecentItem(o(e),r.a,t)}}},function(e,t,n){"use strict";var r=n(587);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(35),i=n(69);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={reorder:function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var i=r.a.moveItem(e,t,n),o=n<e.length-1?i[n+1].id:null;return{reorderedItems:i,reorderRequest:{sourceMemberId:i[n].id,destinationMemberId:o}}},updateState:function(e,t,n){for(var a=[],s=i.a.deepClone(n),c=[e],u=n[e],l=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){a.push.apply(a,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,p=!!f&&"".concat(e,":").concat(f);(u=f&&n[p])&&c.push(p)}if(!a.length)return n;var d=r.a.findIndex(a,(function(e){return e.id===t.sourceMemberId})),h=[].concat(a),y=h.splice(d,1),m=t.destinationMemberId?r.a.findIndex(h,(function(e){return e.id===t.destinationMemberId})):h.length;return h.splice(m,0,y[0]),c.forEach((function(e){var t=h.splice(0,l);s[e].data=t})),s}}},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Online="Online",e.Primary="Primary"}(r||(r={}))},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n(33),o=n(1),a=n(29),s=n(21),c=n(48),u=n(165),l=n(427),f=n(284),p=n(46),d=n(233),h=n(380),y=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(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 v(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=r.memo((function(e){var t,n=e.hideButtonText,h=void 0!==n&&n,v=m(Object(f.a)(),2),g=v[0],b=v[1],w=Object(u.a)(p.b.VideoUpload),_=Object(d.a)(),S=!!_&&!b;return r.createElement(l.a,{svgName:S?null:s.b.Upload,className:(t="btn btn-outline-dark",h&&!S&&(t+=" pl-3"),S&&(t+=" pr-2"),t),mimeType:"video/*",onFileSelect:function(e){return w.addFiles(e,{entity:o.EntityType.Video,actionType:o.UserAction.Upload,workflowPhase:o.WorkflowPhase.Start,descriptor:a.a.mapInteractionType(o.InteractionType.FileSelect),location:o.LocationContext.TopNav})}},r.createElement("div",{className:"d-flex align-items-center w-100",ref:g},S&&r.createElement("span",{className:"position-relative"},r.createElement(i.Spinner,{animation:"border",size:"sm",className:"mr-2 ".concat(y.a.spinner)}),r.createElement("span",{className:"badge badge-danger badge-pill ".concat(y.a.totalUploading)},_)),h?r.createElement("span",{className:"invisible"}," "):r.createElement(c.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n.n(r),o=n(33),a=n(116),s=n(284),c=n(129);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(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 l(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 f(e){var t=u(Object(s.a)(),2),n=t[0],r=t[1];if(i.a.useEffect((function(){e.onHover(r?e.rating:null)}),[r]),!e.rating.code)return i.a.createElement(i.a.Fragment,null);var o=i.a.createElement(c.a,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?o:i.a.createElement(a.a,{title:e.rating.name,spanHack:!0},o)}function p(e){var t=u(i.a.useState([]),2),n=t[0],r=t[1],a=function(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))};function s(e){r(e?a(e):[])}var c=function(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))};return i.a.createElement("div",null,i.a.createElement(o.ButtonGroup,null,e.ratings.map((function(t){var n;return i.a.createElement(f,{key:t.id,rating:t,onClick:function(){return function(t){var n=a(t);e.onSelectRange(n)}(t)},onHover:s,isActive:c(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}p.defaultProps={selections:[]}},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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(598);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(599);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(600);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(601);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(602);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(298);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(603);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(604);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(605);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),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 d=n(606);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),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 h=n(607);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),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 y=n(608);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return y.ClassroomStatus})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType})),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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 m=n(609);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return m.ClassroomStatus})),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 v=n(610);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return v.ClassroomStatus})),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 g=n(611);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return g.ClassroomStatus})),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 b=n(612);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return b.ClassroomStatus})),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 w=n(613);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return w.ClassroomStatus})),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 _=n(614);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(_,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return _.ClassroomStatus})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(615);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return S.ClassroomStatus})),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(616);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return C.ClassroomStatus})),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(617);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return T.ClassroomStatus})),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 E=n(618);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return E.ClassroomStatus})),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 O=n(619);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return O.ClassroomStatus})),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 k=n(620);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return k.ClassroomStatus})),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 P=n(621);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return P.ClassroomStatus})),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 A=n(622);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return A.ClassroomStatus})),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 I=n(623);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return I.ClassroomStatus})),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,n){"use strict";var r=n(597);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(625);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(628);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(634);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(640);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(641);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(642);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(643);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(644);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(645);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(646);n.d(t,"ClassroomStatus",(function(){return p.a}));var d=n(647);n.d(t,"ClassroomGroupColour",(function(){return d.a}));var h=n(648);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 y=n(649);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 m=n(650);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 v=n(651);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 g=n(299);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 b=n(652);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 w=n(653);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 _=n(654);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 S=n(655);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}));var C=n(656);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(657);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 E=n(300);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 O=n(658);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType})),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(659);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 P=n(660);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})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(661);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 I=n(662);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 x=n(663);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 R=n(301);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})),n.o(R,"WidgetType")&&n.d(t,"WidgetType",(function(){return R.WidgetType}));var L=n(664);n.d(t,"WidgetType",(function(){return L.a}));var j=n(665);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 N=n(666);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 D=n(667);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 B=n(668);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 U=n(669);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 M=n(670);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 V=n(671);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 F=n(672);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(673);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(674);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(675);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 G=n(676);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(677);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 Y=n(678);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 K=n(679);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 X=n(680);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}));var Q=n(681);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 $=n(682);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(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 Z=n(683);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 J=n(684);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 ee=n(685);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(686);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})),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 ne=n(687);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}));var re=n(688);n.o(re,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return re.BaseNotificationsAppVariables})),n.o(re,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return re.BaseSearchAppVariables})),n.o(re,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return re.InteractionTypeId}));var ie=n(689);n.o(ie,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ie.BaseNotificationsAppVariables})),n.o(ie,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ie.BaseSearchAppVariables})),n.o(ie,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ie.InteractionTypeId}));var oe=n(690);n.o(oe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return oe.BaseNotificationsAppVariables})),n.o(oe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return oe.BaseSearchAppVariables})),n.o(oe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return oe.InteractionTypeId}));var ae=n(691);n.o(ae,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ae.BaseNotificationsAppVariables})),n.o(ae,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ae.BaseSearchAppVariables})),n.o(ae,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ae.InteractionTypeId}));var se=n(692);n.o(se,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return se.BaseNotificationsAppVariables})),n.o(se,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return se.BaseSearchAppVariables})),n.o(se,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return se.InteractionTypeId}));var ce=n(693);n.o(ce,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ce.BaseNotificationsAppVariables})),n.o(ce,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ce.BaseSearchAppVariables})),n.o(ce,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ce.InteractionTypeId}));var ue=n(694);n.o(ue,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ue.BaseNotificationsAppVariables})),n.o(ue,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ue.BaseSearchAppVariables})),n.o(ue,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ue.InteractionTypeId}));var le=n(695);n.o(le,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return le.BaseNotificationsAppVariables})),n.o(le,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return le.BaseSearchAppVariables})),n.o(le,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return le.InteractionTypeId}));var fe=n(696);n.o(fe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return fe.BaseNotificationsAppVariables})),n.o(fe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return fe.BaseSearchAppVariables})),n.o(fe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return fe.InteractionTypeId}));var pe=n(697);n.o(pe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return pe.BaseNotificationsAppVariables})),n.o(pe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return pe.BaseSearchAppVariables})),n.o(pe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return pe.InteractionTypeId}));var de=n(698);n.o(de,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return de.BaseNotificationsAppVariables})),n.o(de,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return de.BaseSearchAppVariables})),n.o(de,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return de.InteractionTypeId}));var he=n(699);n.o(he,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return he.BaseNotificationsAppVariables})),n.o(he,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return he.BaseSearchAppVariables})),n.o(he,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return he.InteractionTypeId}));var ye=n(700);n.o(ye,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ye.BaseNotificationsAppVariables})),n.o(ye,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ye.BaseSearchAppVariables})),n.o(ye,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ye.InteractionTypeId}));var me=n(701);n.o(me,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return me.BaseNotificationsAppVariables})),n.o(me,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return me.BaseSearchAppVariables})),n.o(me,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return me.InteractionTypeId}));var ve=n(702);n.o(ve,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ve.BaseNotificationsAppVariables})),n.o(ve,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ve.BaseSearchAppVariables})),n.o(ve,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ve.InteractionTypeId}));var ge=n(703);n.o(ge,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ge.BaseNotificationsAppVariables})),n.o(ge,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ge.BaseSearchAppVariables})),n.o(ge,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ge.InteractionTypeId}));var be=n(704);n.o(be,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return be.BaseNotificationsAppVariables})),n.o(be,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return be.BaseSearchAppVariables})),n.o(be,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return be.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(626);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(627);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(629);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(630);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(631);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(632);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(633);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},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,n){"use strict";var r=n(635);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(636);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(637);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(638);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(639);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.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,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Archived=0]="Archived",e[e.Published=1]="Published"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="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){},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){},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(706);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(708);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(709);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(710);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(711);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(712);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(713);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(714);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(715);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(716);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(717);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),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 d=n(718);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(719);var h=n(720);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.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,n){"use strict"},function(e,t){},function(e,t,n){"use strict";var r=n(722);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(723);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(724);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(726);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(727);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(728);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(729);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(730);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(731);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(732);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.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 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,u=i.ENTITY_REFERENCE_NODE=5,l=i.ENTITY_NODE=6,f=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,h=i.DOCUMENT_TYPE_NODE=10,y=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,v={},g={},b=(v.INDEX_SIZE_ERR=(g[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(g[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(g[3]="Hierarchy request error",3)),w=(v.WRONG_DOCUMENT_ERR=(g[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(g[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(g[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(g[7]="No modification allowed",7),v.NOT_FOUND_ERR=(g[8]="Not found",8)),_=(v.NOT_SUPPORTED_ERR=(g[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(g[10]="Attribute in use",10));v.INVALID_STATE_ERR=(g[11]="Invalid state",11),v.SYNTAX_ERR=(g[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(g[13]="Invalid modification",13),v.NAMESPACE_ERR=(g[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(g[15]="Invalid access",15);function S(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,g[e]),this.message=g[e],Error.captureStackTrace&&Error.captureStackTrace(this,S);return n.code=e,t&&(this.message=this.message+": "+t),n}function C(){}function T(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 O(){}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[k(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&N(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 A(e,t,n){var r=k(t,n);if(!(r>=0))throw S(w,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&&(N(o,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function x(){}function R(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function L(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(L(e,t))return!0}while(e=e.nextSibling)}function j(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function D(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,D(e.ownerDocument,e),t}function U(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===y){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 D(e.ownerDocument||e,e),t.nodeType==y&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function V(){}function F(){}function H(){}function z(){}function W(){}function G(){}function q(){}function Y(){}function K(){}function X(){}function Q(){}function $(){}function Z(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 J(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 l=e.attributes,m=l.length,v=e.firstChild,g=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",g);for(var b=0;b<m;b++){"xmlns"==(w=l.item(b)).prefix?i.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&i.push({prefix:"",namespace:w.value})}for(b=0;b<m;b++){var w;if(J(w=l.item(b),0,i)){var _=w.prefix||"",S=w.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(g)){if(t.push(">"),n&&/^script$/i.test(g))for(;v;)v.data?t.push(v.data):ee(v,t,n,r,i),v=v.nextSibling;else for(;v;)ee(v,t,n,r,i),v=v.nextSibling;t.push("</",g,">")}else t.push("/>");return;case d:case y:for(v=e.firstChild;v;)ee(v,t,n,r,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,R),'"');case s:return t.push(e.data.replace(/[<&]/g,R));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var T=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(' PUBLIC "',T),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case f:return t.push("<?",e.target," ",e.data,"?>");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}S.prototype=Error.prototype,n(v,S),C.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("")}},T.prototype.item=function(e){return E(this),this[e]},r(T,C),O.prototype={length:0,item:C.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 S(_);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new S(_);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(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}},I.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 j;if(r.implementation=this,r.childNodes=new C,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 G;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},x.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 U(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 C);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new O,f=u.length;l._ownerElement=i;for(var p=0;p<f;p++)i.setAttributeNode(e(t,u.item(p),!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,x),n(i,x.prototype),j.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==y){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),U(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 y: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 L(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 C,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new C,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 Q;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new V;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 O;return n.childNodes=new C,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 V,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(j,x),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===y?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,D(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 T(this,(function(t){var n=[];return L(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return L(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},j.prototype.getElementsByTagName=M.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,x),V.prototype.nodeType=a,r(V,x),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(g[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,x),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:p},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),G.prototype.nodeType=h,r(G,x),q.prototype.nodeType=m,r(q,x),Y.prototype.nodeType=l,r(Y,x),K.prototype.nodeType=u,r(K,x),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,x),Q.prototype.nodeType=f,r(Q,x),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},x.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case y: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 y: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=I,t.XMLSerializer=$},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t){e.exports=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])}},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,u=Object.prototype,l=o["__core-js_shared__"],f=(a=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",p=c.toString,d=u.hasOwnProperty,h=u.toString,y=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(o,"Map"),g=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 w(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 S(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 C(e){return!(!k(e)||(t=e,f&&f in t))&&(function(e){var t=k(e)?h.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)?y:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(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 C(n)?n:void 0}function O(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(O.Cache||_),n}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=g?g(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(g){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 g?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=g&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(v||w),string:new b}},_.prototype.delete=function(e){return T(this,e).delete(e)},_.prototype.get=function(e){return T(this,e).get(e)},_.prototype.has=function(e){return T(this,e).has(e)},_.prototype.set=function(e,t){return T(this,e).set(e,t),this},O.Cache=_,e.exports=O}).call(this,n(119))},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}(),u=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},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=v(0,0,0,0);function p(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+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(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]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),c=p(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===l(e).document.documentElement}(e)){var u=Math.round(s+o)-t,h=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(h)&&(c-=h)}return v(i.left,i.top,s,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):h(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(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,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);u(this,{target:e,contentRect:l})},w=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 l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(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 l(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}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,S=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 w(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=C}).call(this,n(119))},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorView",(function(){return d}));var r=n(0),i=n(8),o=n(241),a=n(275),s=n(3),c=n(6),u=n(64),l=n(213);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,p,d,h=e.error;Object(a.a)((null==h?void 0:h.heading)||i.a.getPhrase("default.error","defaultPageTitle"));var y=f(r.useState(o.a.getRandomInt(21)+1),1)[0],m=u.a.ErrorViews.SMALL.replace("{number}",y.toString());return h?r.createElement(l.a,null,r.createElement(l.a.Image,{src:m}),r.createElement(l.a.Heading,null,h.heading),!!h.description&&r.createElement(l.a.Info,{injectHtml:h.injectDescriptionHtml},h.description),!1!==h.cta&&r.createElement(l.a.Cta,{text:null!==(n=null===(t=h.cta)||void 0===t?void 0:t.text)&&void 0!==n?n:i.a.getPhrase("default.error","discoverVideos"),className:"info-link ".concat(h.description?"mt-n2":""),appLink:null!==(d=null===(p=h.cta)||void 0===p?void 0:p.appLink)&&void 0!==d?d:{application:s.a.DASHBOARD,action:c.a.Dashboard.HOME}})):r.createElement(r.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(118),i=n(8);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(this.lang,"heading"),text:i.a.getPhrase(this.lang,"body"),buttons:[{text:i.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:i.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,i=n(232);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!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={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,o=u(l);function l(){return a(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.BaseCollectionIdentifier);n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";var r=n(113);function i(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 o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),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)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(15);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var o=[r.a.POST,r.a.PUT];function a(e){var t=e.resource,n=e.type,r=e.headers,a=e.success,s=e.error,c=e.always,u={url:t,method:n};o.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){a&&a(e,i(n))})).fail((function(e){s&&s(i(e))})).always((function(){c&&c()}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(77);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),u=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=a,l.dependencies=c,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var u=c(a);var l=n(261),f=n(69),p=n(89),d=n(161),h=n(106),y=n(0);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return k})),n.d(t,"c",(function(){return P}));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())}))},g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode,this.hasCompleted=t.hasCompleted}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===h.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===h.a.Fetching}},{key:"hasError",get:function(){return this.status===h.a.Error}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e,t,n){if(!e||!t)return w();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new g({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function w(){return new g({status:h.a.None})}function _(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function S(e,t){return function(){C(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function T(e,t){var n,r,i,o,a=_(e.getState(),null==t?void 0:t.key);if(t&&a.shouldFetch)C(e.dispatch,t);else if(a.isFetching)var s=!1,c=e.subscribe((function(){c(),s||(s=!0,T(e,t))}));else a.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:a.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(i=t.success)||void 0===i||i.call(t,a.data),null===(o=t.always)||void 0===o||o.call(t))}function E(e){var t=Object(r.useDispatch)();if(e)return S(t,e)}function O(e,t){var n=Object(y.useMemo)((function(){return e&&(null==t?void 0:t.optimize)?function(e){return c(a,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function k(e,t){var n=Object(r.useDispatch)(),i=O(e&&e.key,t),o=S(n,e);return e&&i.shouldFetch&&o(),i}function P(e,t){return v(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){var i=t.success,o=t.error;t.success=function(e){null==i||i(e),n(e)},t.error=function(e){null==o||o(e),r(e)},T(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(422);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 c(this,n)}}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,n,r,c=s(u);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,u),c.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:t})}return t=u,n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(232).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(820).default},function(e,t){e.exports=m},function(e,t,n){var r=n(130);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(130);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(130);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="clamp-2 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(130);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(130);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(130);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={avatar:"_1XSQR"}},function(e,t,n){"use strict";var r=n(586);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(781);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(590);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(591);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(592)},function(e,t,n){e.exports={radioFilter:"vo-iA"}},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(360),i=n(835);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(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},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(360);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},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 u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},f={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)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).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 u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},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 u=n(840).XMLReader,l=t.DOMImplementation=n(745).DOMImplementation;t.XMLSerializer=n(745).XMLSerializer,t.DOMParser=r},function(e,t){var n=Math.pow(2,32);e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=t.getUint32(i)*n+t.getUint32(i+4),r.firstOffset=t.getUint32(i+8)*n+t.getUint32(i+12),i+=16),i+=2;var o=t.getUint16(i);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r}},function(e,t,n){"use strict";var r=n(746),i=n(841).handleRollover,o={};o.ts=n(843),o.aac=n(844);var a=n(208).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c++,u++;else{switch(r=e.subarray(c,u),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),l=!0)}if(l)break;c+=188,u+=188}for(c=(u=e.byteLength)-188,l=!1;c>=0;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c--,u--;else{switch(r=e.subarray(c,u),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),l=!0)}if(l)break;c-=188,u-=188}},c=function(e,t,n){for(var r,i,a,s,c,u,l,f=0,p=188,d=!1,h={data:[],size:0};p<e.byteLength;)if(71!==e[f]||71!==e[p])f++,p++;else{switch(r=e.subarray(f,p),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!==h.size){for(c=new Uint8Array(h.size),u=0;h.data.length;)l=h.data.shift(),c.set(l,u),u+=l.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var y=o.ts.parsePesTime(c);y?(n.firstKeyFrame=y,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.")}h.size=0}h.data.push(r),h.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;f+=188,p+=188}for(f=(p=e.byteLength)-188,d=!1;f>=0;)if(71!==e[f]||71!==e[p])f--,p--;else{switch(r=e.subarray(f,p),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;f-=188,p-=188}},u=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,u=0;e.length-u>=3;){switch(o.aac.parseType(e,u)){case"timed-metadata":if(e.length-u<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,u))>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+c),s=o.aac.parseAacTimestamp(t)),u+=c;break;case"audio":if(e.length-u<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,u))>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+c),i=o.aac.parseSampleRate(t)),r++,u+=c;break;default:u++}if(n)return null}if(null===i||null===s)return null;var l=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):u(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){e.exports=JSON.parse('{"a":"1.1.0-rc.0"}')},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,u=-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*(u+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],u=(n=n||0)>>>3,l=-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)+u)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(l+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,u,l,f,p,d=0,h=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-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(u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=a[c]<<8*(f+i*(l%4)),d+=1}else for(f=-1===i?2:0,p="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===p&&(o=(c=255&o)<<8|o>>>8),u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=o<<8*(f+i*(l%4)),d+=2}return{value:h,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,u,l,f=0,p=n||[0],d=(r=r||0)>>>3,h=-1===i?3:0,y=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!==y&&y<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(u=(l=f+d)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(h+i*(l%4)),f+=1}}return{value:p,binLen:8*f+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],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+u)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(l+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,u,l="",f=n/8,p=-1===r?3:0;for(o=0;o<f;o+=3)for(c=o+1<f?e[o+1>>>2]:0,u=o+2<f?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(p+r*(o%4))&255)<<16|(c>>>8*(p+r*((o+1)%4))&255)<<8|u>>>8*(p+r*((o+2)%4))&255,a=0;a<4;a+=1)l+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return l}(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 u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(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 f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,i,o,f,p,d,h,y=[];for(n=t[0],r=t[1],i=t[2],o=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&i^~h&o,f,1518500249,y[d]):d<40?l(a(n,5),s(r,i,o),f,1859775393,y[d]):d<60?l(a(n,5),c(r,i,o),f,2400959708,y[d]):l(a(n,5),s(r,i,o),f,3395469782,y[d]),f=o,o=i,i=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(i,t[2]),t[3]=u(o,t[3]),t[4]=u(f,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=p(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=p,o.p=function(e){return e.slice()},o.l=f,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.1.0-rc.0"}')},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(130);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>\r\n<div id="print-region"></div>'},useData:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"EmbedErrorView",(function(){return c}));var r=n(0),i=n.n(r),o=n(242),a=n(210),s=n.n(a);function c(e){var t=e.error;return i.a.createElement("div",{className:"text-white ".concat(s.a.embedError)},i.a.createElement("div",{className:s.a.logo},i.a.createElement(o.b,null)),i.a.createElement("div",{className:"".concat(s.a.content," d-flex flex-column align-items-center")},i.a.createElement("div",{className:"".concat(s.a.imgContainer," mb-3")},i.a.createElement("img",{src:t.imageUrl,className:s.a.img,role:"presentation",alt:""})),i.a.createElement("h1",{className:"".concat(s.a.heading," font-weight-500 mb-0")},t.heading),!!t.description&&i.a.createElement("p",{className:"mb-0"},t.description)))}},function(e,t,n){var r=n(130);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 o}));var r=n(180),i=n(25),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.h)(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,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),o=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[o,f]},t}()}).call(this,n(429).Buffer)},function(e,t,n){e.exports={notificationsView:"_3UtcL"}},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,n){"use strict";var r=n(2);n(886);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,r,i=s(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=i.call(this,e,t)).update(),n}return t=c,(n=[{key:"update",value:function(){this.options_.isFavourited?this.addClass("cv-favourited"):this.removeClass("cv-favourited")}},{key:"handleClick",value:function(){if(this.options_.isFavourited=!this.options_.isFavourited,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-favourite-button"}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.a.getComponent("Button"));function f(e){return(f="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}l.prototype.controlText_="Favourite";var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(o,e);var t,n,r,i=y(o);function o(){return p(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setFavourite",value:function(e,t){var n=this;e!==this.isFavourite&&(this.isFavourite=e,this.onClickFavourite=t,this.player.ready((function(){n.renderFavouriteButton()})))}},{key:"renderFavouriteButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{isFavourited:this.isFavourite,clickHandler:this.onClickFavourite}),this.player.addChild(this.button))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("favouritePlugin",g)},function(e,t,n){"use strict";var r=n(2),i=n(136);n(888);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this,e,t)).update(),n}return t=u,(n=[{key:"update",value:function(){this.options_.activityStatus===i.a.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.options_.activityStatus===i.a.Complete?i.a.Incomplete:i.a.Complete,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.getComponent("Button"));function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}f.prototype.controlText_="ActivityStatus";var b=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,n,r,i=m(o);function o(){return d(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setActivityStatus",value:function(e,t){var n=this;e!==this.activityStatus&&(this.activityStatus=e,this.onToggleStatus=t,this.player.ready((function(){n.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new f(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("activityStatusPlugin",b)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},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(821));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}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 u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,g="<"+h+' href="'+s(d)+'"';y&&(g+=' class="'+s(y)+'"'),m&&(g+=' target="'+s(m)+'"'),v&&(g+=" "+c(v)),g+=">"+a(p)+"</"+h+">",r.push(g)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(295),i=s(n(822)),o=s(n(823)),a=s(n(824));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(466),i=n(357),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(""),u=[" ","\f","\r","\t","\v"," "," ",""],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),h=f(i.DOMAIN),y=f(),m=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,m),m.on(u,m);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,_),l.push.apply(l,S);var C=b.pop(),T=w.pop(),E=_.pop(),O=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);T.on("s",k).on(":",P),E.on("s",k).on(":",P),l.push(k),C.on(":",P),k.on(":",P),O.on(":",A);var I=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,I),p.on(s,d),d.on("-",y).on(s,d).on(c,h),h.on("-",y).on(c,h);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var R=p;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=p,a=null,s=0,c=null,u=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,i++;if(!(u<0)){i-=u,s-=u;var l=c.emit();r.push(new l(e.substr(i-s,s)))}}return r},t.start=R},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(466),i=n(825),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(357);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),d=s(),h=s(),y=s(i.URL),m=s(),v=s(i.URL),g=s(i.URL),b=s(),w=s(),_=s(),S=s(),C=s(),T=s(i.URL),E=s(i.URL),O=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),x=s(),R=s(),L=s(),j=s(i.EMAIL),N=s(),D=s(i.EMAIL),B=s(i.MAILTOEMAIL),U=s(),M=s(),V=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),d.on(a.DOT,h),R.on(a.DOT,L),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),L.on(a.TLD,j).on(a.DOMAIN,R).on(a.NUM,R).on(a.LOCALHOST,R),y.on(a.DOT,h),j.on(a.DOT,L),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,D);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];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),T.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),w.on(z,T),_.on(z,E),S.on(z,O),C.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),C.on(W,x),T.on(z,T),E.on(z,E),O.on(z,O),k.on(z,k),T.on(W,T),E.on(W,E),O.on(W,O),k.on(W,k),P.on(z,T),A.on(z,E),I.on(z,O),x.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),x.on(W,x),g.on(z,g),b.on(z,g),g.on(W,b),b.on(W,b),l.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,U),U.on(z,B).on(W,U);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(G,M).on(a.AT,V),y.on(G,M).on(a.AT,V),h.on(G,M),M.on(G,M).on(a.AT,V).on(a.DOT,F),F.on(G,M),V.on(a.TLD,R).on(a.DOMAIN,R).on(a.LOCALHOST,j);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,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var h=f.emit();r.push(new h(e.slice(n-l,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(467),i=n(295),o=n(357);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}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(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=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){},function(e,t){},function(e,t,n){var r=n(816).default,i=n(26);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},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(326),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 u(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 u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"--\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),u(),t.endTime=i(),u(),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 l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={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"},h={rt:"ruby"};function y(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!h[t.localName]||h[t.localName]===e.localName}function i(t,n){var r=f[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"),u=c,y=[];null!==(o=n());)if("<"!==o[0])u.appendChild(e.document.createTextNode((s=o,l.innerHTML=s,s=l.textContent,l.textContent="",s)));else{if("/"===o[1]){y.length&&y[y.length-1]===o.substr(2).replace(">","")&&(y.pop(),u=u.parentNode);continue}var m,v=a(o.substr(1,o.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),u.appendChild(m);continue}var g=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g)continue;if(!(m=i(g[1],g[3])))continue;if(!r(u,m))continue;if(g[2]){var b=g[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(p.hasOwnProperty(n)){var r=t?"background-color":"color",i=p[n];m.style[r]=i}})),m.className=b.join(" ")}y.push(g[1]),u.appendChild(m),u=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 v(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 g(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(v(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function w(e,t,n){b.call(this),this.cue=t,this.cueDiv=y(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:g(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 _(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 S(e,t,n,r){var i=new _(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 u=i.lineHeight,l=u*Math.round(a),f=n[c]+u,p=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/u)*u),a<0&&(l+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(p,l)}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 _(t)}var h=function(e,t){for(var i,o=new _(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 _(e),a=c),e=new _(o)}return i||o}(i,s);t.move(h.toCSSCompatValues(n))}function C(){}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},w.prototype=i(b.prototype),w.prototype.constructor=w,_.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}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.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}},_.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)},_.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}},_.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}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};C.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=_.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 w(e,s,a),r.appendChild(n.div),S(0,n,o,i),s.displayState=n.div,i.push(_.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},C.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=[]},C.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 l=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!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{u(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==i.indexOf("--\x3e");if(!i||p&&(f=!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=C},function(e,t){},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,u=r,l=null,f="",p=!0,d="auto",h="start",y="auto",m="auto",v=100,g="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 u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},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.");f=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!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 h},set:function(e){var t=i(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=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 v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;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[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=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(l(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 u(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 l(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){
|
|
46
|
+
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(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 in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},u=!!s&&"ontouchstart"in c.document.documentElement,l=!!s&&"PointerEvent"in c,f="".concat("cropper","-crop"),p="".concat("cropper","-disabled"),d="".concat("cropper","-hidden"),h="".concat("cropper","-hide"),y="".concat("cropper","-invisible"),m="".concat("cropper","-modal"),v="".concat("cropper","-move"),g="".concat("cropper","Action"),b="".concat("cropper","Preview"),w=u?"touchstart":"mousedown",_=u?"touchmove":"mousemove",S=u?"touchend touchcancel":"mouseup",C=l?"pointerdown":w,T=l?"pointermove":_,E=l?"pointerup pointercancel":S,O=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,k=/^data:/,P=/^data:image\/jpeg;base64,/,A=/^img|canvas$/i,I={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},x=Number.isNaN||c.isNaN;function R(e){return"number"==typeof e&&!x(e)}var L=function(e){return e>0&&e<1/0};function j(e){return void 0===e}function N(t){return"object"===e(t)&&null!==t}var D=Object.prototype.hasOwnProperty;function B(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&D.call(n,"isPrototypeOf")}catch(e){return!1}}function U(e){return"function"==typeof e}var M=Array.prototype.slice;function V(e){return Array.from?Array.from(e):M.call(e)}function F(e,t){return e&&U(t)&&(Array.isArray(e)||R(e.length)?V(e).forEach((function(n,r){t.call(e,n,r,e)})):N(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var H=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N(e)&&n.length>0&&n.forEach((function(t){N(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},z=/\.\d*(?:0|9){12}\d*$/;function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return z.test(e)?Math.round(e*t)/t:e}var G=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;F(t,(function(e,t){G.test(t)&&R(e)&&(e="".concat(e,"px")),n[t]=e}))}function Y(e,t){if(t)if(R(e.length))F(e,(function(e){Y(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function K(e,t){t&&(R(e.length)?F(e,(function(e){K(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function X(e,t,n){t&&(R(e.length)?F(e,(function(e){X(e,t,n)})):n?Y(e,t):K(e,t))}var Q=/([a-z\d])([A-Z])/g;function $(e){return e.replace(Q,"$1-$2").toLowerCase()}function Z(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat($(t)))}function J(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat($(t)),n)}var ee=/\s\s*/,te=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(!te){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(r.once&&!te){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function ie(e,t,n){var r;return U(Event)&&U(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function oe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,se=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ce(e){var t=e.match(se);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function ue(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];R(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),R(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),R(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),R(n)&&1!==n&&a.push("scaleX(".concat(n,")")),R(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function fe(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({startX:n,startY:r},i)}function pe(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=L(r),a=L(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,c=t.rotate,u=void 0===c?0:c,l=t.scaleX,f=void 0===l?1:l,p=t.scaleY,d=void 0===p?1:p,h=n.aspectRatio,y=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,S=void 0===_?"low":_,C=r.maxWidth,T=void 0===C?1/0:C,E=r.maxHeight,O=void 0===E?1/0:E,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,x=document.createElement("canvas"),R=x.getContext("2d"),L=pe({aspectRatio:h,width:T,height:O}),j=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(L.width,Math.max(j.width,y)),D=Math.min(L.height,Math.max(j.height,m)),B=pe({aspectRatio:i,width:T,height:O}),U=pe({aspectRatio:i,width:P,height:I},"cover"),M=Math.min(B.width,Math.max(U.width,o)),V=Math.min(B.height,Math.max(U.height,s)),F=[-M/2,-V/2,M,V];return x.width=W(N),x.height=W(D),R.fillStyle=g,R.fillRect(0,0,N,D),R.save(),R.translate(N/2,D/2),R.rotate(u*Math.PI/180),R.scale(f,d),R.imageSmoothingEnabled=w,R.imageSmoothingQuality=S,R.drawImage.apply(R,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),R.restore(),x}var he=String.fromCharCode,ye=/^data:.*,/;function me(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var c=i+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(n,i+4,4)){var u=n.getUint16(c);if(((r=18761===u)||19789===u)&&42===n.getUint16(c+2,r)){var l=n.getUint32(c+4,r);l>=8&&(o=c+l)}}}if(o){var f,p,d=n.getUint16(o,r);for(p=0;p<d;p+=1)if(f=o+12*p+2,274===n.getUint16(f,r)){f+=8,t=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(e){t=1}return t}var ve={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;Y(r,d),K(e,d);var i={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=i,q(r,{width:i.width,height:i.height}),Y(e,d),K(r,d)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,c=e.height;e.height*a>e.width?3===n?s=e.height*a:c=e.width/a:3===n?c=e.width/a:s=e.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(e.width-s)/2,u.top=(e.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=H({},t),this.initialCanvasData=H({},u)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(e){var u=Number(n.minCanvasWidth)||0,l=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),l=Math.max(l,r.height),3===a&&(l*s>u?u=l*s:l=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):l?l=Math.max(l,c?o.height:0):c&&(u=o.width,(l=o.height)*s>u?u=l*s:l=u/s));var f=pe({aspectRatio:s,width:u,height:l});u=f.width,l=f.height,i.minWidth=u,i.minHeight=l,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(c?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,c=t*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,q(this.canvas,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);H(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),q(this.image,H({width:n.width,height:n.height},le(H({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=H({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,l=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,f=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),f*s>l?f=l/s:l=f*s),o.minWidth=Math.min(c,l),o.minHeight=Math.min(u,f),o.maxWidth=l,o.maxHeight=f}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&J(this.face,g,n.width>=t.width&&n.height>=t.height?"move":"all"),q(this.cropBox,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ie(this.element,"crop",this.getData())}},ge={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,F(a,(function(e){var n=document.createElement("img");J(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){F(this.previews,(function(e){var t=Z(e,b);q(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(N(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat($(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,c=n.top-t.top-e.top;this.cropped&&!this.disabled&&(q(this.viewBoxImage,H({width:o,height:a},le(H({translateX:-s,translateY:-c},e)))),F(this.previews,(function(t){var n=Z(t,b),u=n.width,l=n.height,f=u,p=l,d=1;r&&(p=i*(d=u/r)),i&&p>l&&(f=r*(d=l/i),p=l),q(t,{width:f,height:p}),q(t.getElementsByTagName("img")[0],H({width:o*d,height:a*d},le(H({translateX:-s*d,translateY:-c*d},e))))})))}},be={bind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&re(e,"cropstart",t.cropstart),U(t.cropmove)&&re(e,"cropmove",t.cropmove),U(t.cropend)&&re(e,"cropend",t.cropend),U(t.crop)&&re(e,"crop",t.crop),U(t.zoom)&&re(e,"zoom",t.zoom),re(n,C,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&re(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&re(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),re(e.ownerDocument,T,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,E,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&re(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&ne(e,"cropstart",t.cropstart),U(t.cropmove)&&ne(e,"cropmove",t.cropmove),U(t.cropend)&&ne(e,"cropend",t.cropend),U(t.crop)&&ne(e,"crop",t.crop),U(t.zoom)&&ne(e,"zoom",t.zoom),ne(n,C,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ne(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ne(n,"dblclick",this.onDblclick),ne(e.ownerDocument,T,this.onCropMove),ne(e.ownerDocument,E,this.onCropEnd),t.responsive&&ne(window,"resize",this.onResize)}},we={resize:function(){var e=this.options,t=this.container,n=this.containerData,r=Number(e.minContainerWidth)||200,i=Number(e.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=t.offsetWidth/n.width;1===s&&t.offsetHeight===n.height||(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(F(o,(function(e,t){o[t]=e*s}))),this.setCropBoxData(F(a,(function(e,t){a[t]=e*s})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=f,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(R(t)&&1!==t||R(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){o[e.identifier]=fe(e)})):o[e.pointerId||0]=fe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(e.target,g),O.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,Y(this.dragBox,m)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ie(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?F(e.changedTouches,(function(e){H(n[e.identifier]||{},fe(e,!0))})):H(n[e.pointerId||0]||{},fe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,X(this.dragBox,m,this.cropped&&this.options.modal)),ie(this.element,"cropend",{originalEvent:e,action:t}))}}},_e={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,l=a.left,f=a.top,p=a.width,h=a.height,y=l+p,m=f+h,v=0,g=0,b=i.width,w=i.height,_=!0;!u&&e.shiftKey&&(u=p&&h?p/h:1),this.limited&&(v=a.minLeft,g=a.minTop,b=v+Math.min(i.width,r.width,r.left+r.width),w=g+Math.min(i.height,r.height,r.top+r.height));var S=s[Object.keys(s)[0]],C={x:S.endX-S.startX,y:S.endY-S.startY},T=function(e){switch(e){case"e":y+C.x>b&&(C.x=b-y);break;case"w":l+C.x<v&&(C.x=v-l);break;case"n":f+C.y<g&&(C.y=g-f);break;case"s":m+C.y>w&&(C.y=w-m)}};switch(c){case"all":l+=C.x,f+=C.y;break;case"e":if(C.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}T("e"),(p+=C.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(C.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}T("n"),h-=C.y,f+=C.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(C.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}T("w"),p-=C.x,l+=C.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(C.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}T("s"),(h+=C.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(C.y<=0&&(f<=g||y>=b)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u}else T("n"),T("e"),C.x>=0?y<b?p+=C.x:C.y<=0&&f<=g&&(_=!1):p+=C.x,C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="sw",f-=h=-h,l-=p=-p):p<0?(c="nw",l-=p=-p):h<0&&(c="se",f-=h=-h);break;case"nw":if(u){if(C.y<=0&&(f<=g||l<=v)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u,l+=a.width-p}else T("n"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y<=0&&f<=g&&(_=!1):(p-=C.x,l+=C.x),C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="se",f-=h=-h,l-=p=-p):p<0?(c="ne",l-=p=-p):h<0&&(c="sw",f-=h=-h);break;case"sw":if(u){if(C.x<=0&&(l<=v||m>=w)){_=!1;break}T("w"),p-=C.x,l+=C.x,h=p/u}else T("s"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y>=0&&m>=w&&(_=!1):(p-=C.x,l+=C.x),C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="ne",f-=h=-h,l-=p=-p):p<0?(c="se",l-=p=-p):h<0&&(c="nw",f-=h=-h);break;case"se":if(u){if(C.x>=0&&(y>=b||m>=w)){_=!1;break}T("e"),h=(p+=C.x)/u}else T("s"),T("e"),C.x>=0?y<b?p+=C.x:C.y>=0&&m>=w&&(_=!1):p+=C.x,C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="nw",f-=h=-h,l-=p=-p):p<0?(c="sw",l-=p=-p):h<0&&(c="ne",f-=h=-h);break;case"move":this.move(C.x,C.y),_=!1;break;case"zoom":this.zoom(function(e){var t=o({},e),n=[];return F(e,(function(e,r){delete t[r],F(t,(function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),c=(Math.sqrt(o*o+a*a)-s)/s;n.push(c)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),_=!1;break;case"crop":if(!C.x||!C.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(l-=p,c=C.y>0?"sw":"nw"),C.y<0&&(f-=h),this.cropped||(K(this.cropBox,d),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(a.width=p,a.height=h,a.left=l,a.top=f,this.action=c,this.renderCropBox()),F(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},Se={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Y(this.dragBox,m),K(this.cropBox,d),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=H({},this.initialImageData),this.canvasData=H({},this.initialCanvasData),this.cropBoxData=H({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(H(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),K(this.dragBox,m),Y(this.cropBox,d)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,F(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,K(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Y(this.cropper,p)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(j(e)?e:r+Number(e),j(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(R(e)&&(n.left=e,r=!0),R(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*e,l=c*e;if(!1===ie(this.element,"zoom",{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var f=this.pointers,p=oe(this.cropper),d=f&&Object.keys(f).length?function(e){var t=0,n=0,r=0;return F(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),{pageX:t/=r,pageY:n/=r}}(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((d.pageX-p.left-i.left)/o),i.top-=(l-a)*((d.pageY-p.top-i.top)/a)}else B(t)&&R(t.x)&&R(t.y)?(i.left-=(u-o)*((t.x-i.left)/o),i.top-=(l-a)*((t.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(l-a)/2);i.width=u,i.height=l,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return R(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,R(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(R(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(R(e)&&(n.scaleX=e,r=!0),R(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(F(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),c=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=c-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&B(e)){var o=!1;t.rotatable&&R(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(R(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),R(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;R(e.x)&&(i.left=e.x*a+r.left),R(e.y)&&(i.top=e.y*a+r.top),R(e.width)&&(i.width=e.width*a),R(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?H({},this.containerData):{}},getImageData:function(){return this.sized?H({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&F(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&B(e)&&(R(e.left)&&(t.left=e.left),R(e.top)&&(t.top=e.top),R(e.width)?(t.width=e.width,t.height=e.width/n):R(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&B(e)&&(R(e.left)&&(r.left=e.left),R(e.top)&&(r.top=e.top),R(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),R(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,s=r.width,c=r.height,u=n.width/Math.floor(t.naturalWidth);1!==u&&(i*=u,o*=u,s*=u,c*=u);var l=s/c,f=pe({aspectRatio:l,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=pe({aspectRatio:l,width:e.minWidth||0,height:e.minHeight||0},"cover"),d=pe({aspectRatio:l,width:e.width||(1!==u?n.width:s),height:e.height||(1!==u?n.height:c)}),h=d.width,y=d.height;h=Math.min(f.width,Math.max(p.width,h)),y=Math.min(f.height,Math.max(p.height,y));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=W(h),m.height=W(y),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,h,y);var g=e.imageSmoothingEnabled,b=void 0===g||g,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,w&&(v.imageSmoothingQuality=w);var _,S,C,T,E,O,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,C=0,E=0):A<=0?(C=-A,A=0,E=_=Math.min(k,s+A)):A<=k&&(C=0,E=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,T=0,O=0):I<=0?(T=-I,I=0,O=S=Math.min(P,c+I)):I<=P&&(T=0,O=S=Math.min(c,P-I));var x=[A,I,_,S];if(E>0&&O>0){var R=h/s;x.push(C*R,T*R,E*R,O*R)}return v.drawImage.apply(v,[n].concat(a(x.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||j(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===e,o=t.movable&&"move"===e;e=i||o?e:"none",t.dragMode=e,J(n,g,e),X(n,f,i),X(n,v,o),t.cropBoxMovable||(J(r,g,e),X(r,f,i),X(r,v,o))}return this}},Ce=c.Cropper,Te=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!A.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=H({},I,B(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,i,o;return r=e,o=[{key:"noConflict",value:function(){return window.Cropper=Ce,e}},{key:"setDefaults",value:function(e){H(I,B(e)&&e)}}],(i=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(e))P.test(e)?this.read((i=e.replace(ye,""),o=atob(i),a=new ArrayBuffer(o.length),F(s=new Uint8Array(a),(function(e,t){s[t]=o.charCodeAt(t)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){t.read(c.response)},c.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&ce(e)&&n.crossOrigin&&(e=ue(e)),c.open("GET",e),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=me(e),i=0,o=1,a=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(he.apply(null,V(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ce(t)&&(n||(n="anonymous"),r=ue(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Y(i,h),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){H(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),Y(e,d),r.insertBefore(o,e.nextSibling),this.isImg||K(n,h),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Y(c,d),t.guides||Y(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||Y(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&Y(o,"".concat("cropper","-bg")),t.highlight||Y(u,y),t.cropBoxMovable&&(Y(u,v),J(u,g,"all")),t.cropBoxResizable||(Y(c.getElementsByClassName("".concat("cropper","-line")),d),Y(c.getElementsByClassName("".concat("cropper","-point")),d)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),U(t.ready)&&re(e,"ready",t.ready,{once:!0}),ie(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),K(this.element,d))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,i),o&&n(r,o),e}();return H(Te.prototype,ve,ge,be,we,_e,Se),Te}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(18),i=n(28);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,i=e.cursor;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},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(130);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";n.d(t,"a",(function(){return a}));var r=n(38),i=n(359),o=function(e){return"recently:shared:to:".concat(e)},a={getRecentlySharedTo:function(e){return i.a.getRecentItem(o(e),r.a)},addRecentlySharedTo:function(e,t){return i.a.addRecentItem(o(e),r.a,t)}}},function(e,t,n){"use strict";var r=n(587);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(35),i=n(69);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={reorder:function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var i=r.a.moveItem(e,t,n),o=n<e.length-1?i[n+1].id:null;return{reorderedItems:i,reorderRequest:{sourceMemberId:i[n].id,destinationMemberId:o}}},updateState:function(e,t,n){for(var a=[],s=i.a.deepClone(n),c=[e],u=n[e],l=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){a.push.apply(a,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,p=!!f&&"".concat(e,":").concat(f);(u=f&&n[p])&&c.push(p)}if(!a.length)return n;var d=r.a.findIndex(a,(function(e){return e.id===t.sourceMemberId})),h=[].concat(a),y=h.splice(d,1),m=t.destinationMemberId?r.a.findIndex(h,(function(e){return e.id===t.destinationMemberId})):h.length;return h.splice(m,0,y[0]),c.forEach((function(e){var t=h.splice(0,l);s[e].data=t})),s}}},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Online="Online",e.Primary="Primary"}(r||(r={}))},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n(33),o=n(1),a=n(29),s=n(21),c=n(48),u=n(165),l=n(427),f=n(284),p=n(46),d=n(233),h=n(380),y=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(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 v(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=r.memo((function(e){var t,n=e.hideButtonText,h=void 0!==n&&n,v=m(Object(f.a)(),2),g=v[0],b=v[1],w=Object(u.a)(p.b.VideoUpload),_=Object(d.a)(),S=!!_&&!b;return r.createElement(l.a,{svgName:S?null:s.b.Upload,className:(t="btn btn-outline-dark",h&&!S&&(t+=" pl-3"),S&&(t+=" pr-2"),t),mimeType:"video/*",onFileSelect:function(e){return w.addFiles(e,{entity:o.EntityType.Video,actionType:o.UserAction.Upload,workflowPhase:o.WorkflowPhase.Start,descriptor:a.a.mapInteractionType(o.InteractionType.FileSelect),location:o.LocationContext.TopNav})}},r.createElement("div",{className:"d-flex align-items-center w-100",ref:g},S&&r.createElement("span",{className:"position-relative"},r.createElement(i.Spinner,{animation:"border",size:"sm",className:"mr-2 ".concat(y.a.spinner)}),r.createElement("span",{className:"badge badge-danger badge-pill ".concat(y.a.totalUploading)},_)),h?r.createElement("span",{className:"invisible"}," "):r.createElement(c.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n.n(r),o=n(33),a=n(116),s=n(284),c=n(129);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(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 l(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 f(e){var t=u(Object(s.a)(),2),n=t[0],r=t[1];if(i.a.useEffect((function(){e.onHover(r?e.rating:null)}),[r]),!e.rating.code)return i.a.createElement(i.a.Fragment,null);var o=i.a.createElement(c.a,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?o:i.a.createElement(a.a,{title:e.rating.name,spanHack:!0},o)}function p(e){var t=u(i.a.useState([]),2),n=t[0],r=t[1],a=function(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))};function s(e){r(e?a(e):[])}var c=function(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))};return i.a.createElement("div",null,i.a.createElement(o.ButtonGroup,null,e.ratings.map((function(t){var n;return i.a.createElement(f,{key:t.id,rating:t,onClick:function(){return function(t){var n=a(t);e.onSelectRange(n)}(t)},onHover:s,isActive:c(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}p.defaultProps={selections:[]}},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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(598);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(599);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(600);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(601);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(602);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(298);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(603);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(604);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(605);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),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 d=n(606);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),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 h=n(607);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),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 y=n(608);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return y.ClassroomStatus})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType})),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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 m=n(609);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return m.ClassroomStatus})),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 v=n(610);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return v.ClassroomStatus})),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 g=n(611);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return g.ClassroomStatus})),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 b=n(612);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return b.ClassroomStatus})),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 w=n(613);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return w.ClassroomStatus})),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 _=n(614);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(_,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return _.ClassroomStatus})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(615);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return S.ClassroomStatus})),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(616);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return C.ClassroomStatus})),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(617);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return T.ClassroomStatus})),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 E=n(618);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return E.ClassroomStatus})),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 O=n(619);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return O.ClassroomStatus})),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 k=n(620);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return k.ClassroomStatus})),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 P=n(621);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return P.ClassroomStatus})),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 A=n(622);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return A.ClassroomStatus})),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 I=n(623);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return I.ClassroomStatus})),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,n){"use strict";var r=n(597);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(625);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(628);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(634);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(640);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(641);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(642);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(643);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(644);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(645);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(646);n.d(t,"ClassroomStatus",(function(){return p.a}));var d=n(647);n.d(t,"ClassroomGroupColour",(function(){return d.a}));var h=n(648);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 y=n(649);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 m=n(650);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 v=n(651);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 g=n(299);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 b=n(652);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 w=n(653);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 _=n(654);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 S=n(655);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}));var C=n(656);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(657);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 E=n(300);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 O=n(658);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType})),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(659);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 P=n(660);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})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(661);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 I=n(662);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 x=n(663);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 R=n(301);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})),n.o(R,"WidgetType")&&n.d(t,"WidgetType",(function(){return R.WidgetType}));var L=n(664);n.d(t,"WidgetType",(function(){return L.a}));var j=n(665);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 N=n(666);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 D=n(667);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 B=n(668);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 U=n(669);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 M=n(670);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 V=n(671);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 F=n(672);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(673);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(674);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(675);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 G=n(676);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(677);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 Y=n(678);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 K=n(679);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 X=n(680);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}));var Q=n(681);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 $=n(682);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(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 Z=n(683);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 J=n(684);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 ee=n(685);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(686);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})),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 ne=n(687);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}));var re=n(688);n.o(re,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return re.BaseNotificationsAppVariables})),n.o(re,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return re.BaseSearchAppVariables})),n.o(re,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return re.InteractionTypeId}));var ie=n(689);n.o(ie,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ie.BaseNotificationsAppVariables})),n.o(ie,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ie.BaseSearchAppVariables})),n.o(ie,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ie.InteractionTypeId}));var oe=n(690);n.o(oe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return oe.BaseNotificationsAppVariables})),n.o(oe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return oe.BaseSearchAppVariables})),n.o(oe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return oe.InteractionTypeId}));var ae=n(691);n.o(ae,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ae.BaseNotificationsAppVariables})),n.o(ae,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ae.BaseSearchAppVariables})),n.o(ae,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ae.InteractionTypeId}));var se=n(692);n.o(se,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return se.BaseNotificationsAppVariables})),n.o(se,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return se.BaseSearchAppVariables})),n.o(se,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return se.InteractionTypeId}));var ce=n(693);n.o(ce,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ce.BaseNotificationsAppVariables})),n.o(ce,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ce.BaseSearchAppVariables})),n.o(ce,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ce.InteractionTypeId}));var ue=n(694);n.o(ue,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ue.BaseNotificationsAppVariables})),n.o(ue,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ue.BaseSearchAppVariables})),n.o(ue,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ue.InteractionTypeId}));var le=n(695);n.o(le,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return le.BaseNotificationsAppVariables})),n.o(le,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return le.BaseSearchAppVariables})),n.o(le,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return le.InteractionTypeId}));var fe=n(696);n.o(fe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return fe.BaseNotificationsAppVariables})),n.o(fe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return fe.BaseSearchAppVariables})),n.o(fe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return fe.InteractionTypeId}));var pe=n(697);n.o(pe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return pe.BaseNotificationsAppVariables})),n.o(pe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return pe.BaseSearchAppVariables})),n.o(pe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return pe.InteractionTypeId}));var de=n(698);n.o(de,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return de.BaseNotificationsAppVariables})),n.o(de,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return de.BaseSearchAppVariables})),n.o(de,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return de.InteractionTypeId}));var he=n(699);n.o(he,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return he.BaseNotificationsAppVariables})),n.o(he,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return he.BaseSearchAppVariables})),n.o(he,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return he.InteractionTypeId}));var ye=n(700);n.o(ye,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ye.BaseNotificationsAppVariables})),n.o(ye,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ye.BaseSearchAppVariables})),n.o(ye,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ye.InteractionTypeId}));var me=n(701);n.o(me,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return me.BaseNotificationsAppVariables})),n.o(me,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return me.BaseSearchAppVariables})),n.o(me,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return me.InteractionTypeId}));var ve=n(702);n.o(ve,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ve.BaseNotificationsAppVariables})),n.o(ve,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ve.BaseSearchAppVariables})),n.o(ve,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ve.InteractionTypeId}));var ge=n(703);n.o(ge,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ge.BaseNotificationsAppVariables})),n.o(ge,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ge.BaseSearchAppVariables})),n.o(ge,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ge.InteractionTypeId}));var be=n(704);n.o(be,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return be.BaseNotificationsAppVariables})),n.o(be,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return be.BaseSearchAppVariables})),n.o(be,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return be.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(626);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(627);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(629);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(630);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(631);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(632);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(633);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},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,n){"use strict";var r=n(635);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(636);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(637);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(638);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(639);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.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,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Archived=0]="Archived",e[e.Published=1]="Published"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="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){},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){},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(706);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(708);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(709);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(710);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(711);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(712);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(713);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(714);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),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 l=n(715);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),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 f=n(716);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),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 p=n(717);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),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 d=n(718);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(719);var h=n(720);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.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,n){"use strict"},function(e,t){},function(e,t,n){"use strict";var r=n(722);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(723);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(724);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(726);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),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(727);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),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(728);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),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(729);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),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(730);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),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(731);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),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 u=n(732);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,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.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 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,u=i.ENTITY_REFERENCE_NODE=5,l=i.ENTITY_NODE=6,f=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,h=i.DOCUMENT_TYPE_NODE=10,y=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,v={},g={},b=(v.INDEX_SIZE_ERR=(g[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(g[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(g[3]="Hierarchy request error",3)),w=(v.WRONG_DOCUMENT_ERR=(g[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(g[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(g[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(g[7]="No modification allowed",7),v.NOT_FOUND_ERR=(g[8]="Not found",8)),_=(v.NOT_SUPPORTED_ERR=(g[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(g[10]="Attribute in use",10));v.INVALID_STATE_ERR=(g[11]="Invalid state",11),v.SYNTAX_ERR=(g[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(g[13]="Invalid modification",13),v.NAMESPACE_ERR=(g[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(g[15]="Invalid access",15);function S(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,g[e]),this.message=g[e],Error.captureStackTrace&&Error.captureStackTrace(this,S);return n.code=e,t&&(this.message=this.message+": "+t),n}function C(){}function T(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 O(){}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[k(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&N(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 A(e,t,n){var r=k(t,n);if(!(r>=0))throw S(w,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&&(N(o,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function x(){}function R(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function L(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(L(e,t))return!0}while(e=e.nextSibling)}function j(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function D(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,D(e.ownerDocument,e),t}function U(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===y){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 D(e.ownerDocument||e,e),t.nodeType==y&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function V(){}function F(){}function H(){}function z(){}function W(){}function G(){}function q(){}function Y(){}function K(){}function X(){}function Q(){}function $(){}function Z(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 J(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 l=e.attributes,m=l.length,v=e.firstChild,g=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",g);for(var b=0;b<m;b++){"xmlns"==(w=l.item(b)).prefix?i.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&i.push({prefix:"",namespace:w.value})}for(b=0;b<m;b++){var w;if(J(w=l.item(b),0,i)){var _=w.prefix||"",S=w.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(g)){if(t.push(">"),n&&/^script$/i.test(g))for(;v;)v.data?t.push(v.data):ee(v,t,n,r,i),v=v.nextSibling;else for(;v;)ee(v,t,n,r,i),v=v.nextSibling;t.push("</",g,">")}else t.push("/>");return;case d:case y:for(v=e.firstChild;v;)ee(v,t,n,r,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,R),'"');case s:return t.push(e.data.replace(/[<&]/g,R));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var T=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(' PUBLIC "',T),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case f:return t.push("<?",e.target," ",e.data,"?>");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}S.prototype=Error.prototype,n(v,S),C.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("")}},T.prototype.item=function(e){return E(this),this[e]},r(T,C),O.prototype={length:0,item:C.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 S(_);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new S(_);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(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}},I.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 j;if(r.implementation=this,r.childNodes=new C,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 G;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},x.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 U(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 C);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new O,f=u.length;l._ownerElement=i;for(var p=0;p<f;p++)i.setAttributeNode(e(t,u.item(p),!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,x),n(i,x.prototype),j.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==y){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),U(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 y: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 L(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 C,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new C,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 Q;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new V;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 O;return n.childNodes=new C,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 V,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(j,x),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===y?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,D(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 T(this,(function(t){var n=[];return L(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return L(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},j.prototype.getElementsByTagName=M.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,x),V.prototype.nodeType=a,r(V,x),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(g[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,x),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:p},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),G.prototype.nodeType=h,r(G,x),q.prototype.nodeType=m,r(q,x),Y.prototype.nodeType=l,r(Y,x),K.prototype.nodeType=u,r(K,x),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,x),Q.prototype.nodeType=f,r(Q,x),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},x.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case y: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 y: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=I,t.XMLSerializer=$},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t){e.exports=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])}},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,u=Object.prototype,l=o["__core-js_shared__"],f=(a=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",p=c.toString,d=u.hasOwnProperty,h=u.toString,y=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(o,"Map"),g=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 w(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 S(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 C(e){return!(!k(e)||(t=e,f&&f in t))&&(function(e){var t=k(e)?h.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)?y:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(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 C(n)?n:void 0}function O(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(O.Cache||_),n}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=g?g(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(g){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 g?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=g&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(v||w),string:new b}},_.prototype.delete=function(e){return T(this,e).delete(e)},_.prototype.get=function(e){return T(this,e).get(e)},_.prototype.has=function(e){return T(this,e).has(e)},_.prototype.set=function(e,t){return T(this,e).set(e,t),this},O.Cache=_,e.exports=O}).call(this,n(119))},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}(),u=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},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=v(0,0,0,0);function p(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+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(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]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),c=p(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===l(e).document.documentElement}(e)){var u=Math.round(s+o)-t,h=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(h)&&(c-=h)}return v(i.left,i.top,s,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):h(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(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,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);u(this,{target:e,contentRect:l})},w=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 l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(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 l(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}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,S=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 w(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=C}).call(this,n(119))},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorView",(function(){return d}));var r=n(0),i=n(8),o=n(241),a=n(275),s=n(3),c=n(6),u=n(64),l=n(213);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,p,d,h=e.error;Object(a.a)((null==h?void 0:h.heading)||i.a.getPhrase("default.error","defaultPageTitle"));var y=f(r.useState(o.a.getRandomInt(21)+1),1)[0],m=u.a.ErrorViews.SMALL.replace("{number}",y.toString());return h?r.createElement(l.a,null,r.createElement(l.a.Image,{src:m}),r.createElement(l.a.Heading,null,h.heading),!!h.description&&r.createElement(l.a.Info,{injectHtml:h.injectDescriptionHtml},h.description),!1!==h.cta&&r.createElement(l.a.Cta,{text:null!==(n=null===(t=h.cta)||void 0===t?void 0:t.text)&&void 0!==n?n:i.a.getPhrase("default.error","discoverVideos"),className:"info-link ".concat(h.description?"mt-n2":""),appLink:null!==(d=null===(p=h.cta)||void 0===p?void 0:p.appLink)&&void 0!==d?d:{application:s.a.DASHBOARD,action:c.a.Dashboard.HOME}})):r.createElement(r.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(118),i=n(8);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(this.lang,"heading"),text:i.a.getPhrase(this.lang,"body"),buttons:[{text:i.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:i.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,i=n(232);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!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={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,o=u(l);function l(){return a(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.BaseCollectionIdentifier);n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";var r=n(113);function i(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 o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),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)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(15);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var o=[r.a.POST,r.a.PUT];function a(e){var t=e.resource,n=e.type,r=e.headers,a=e.success,s=e.error,c=e.always,u={url:t,method:n};o.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){a&&a(e,i(n))})).fail((function(e){s&&s(i(e))})).always((function(){c&&c()}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(77);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),u=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=a,l.dependencies=c,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var u=c(a);var l=n(261),f=n(69),p=n(89),d=n(161),h=n(106),y=n(0);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return k})),n.d(t,"c",(function(){return P}));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())}))},g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode,this.hasCompleted=t.hasCompleted}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===h.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===h.a.Fetching}},{key:"hasError",get:function(){return this.status===h.a.Error}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e,t,n){if(!e||!t)return w();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new g({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function w(){return new g({status:h.a.None})}function _(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function S(e,t){return function(){C(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function T(e,t){var n,r,i,o,a=_(e.getState(),null==t?void 0:t.key);if(t&&a.shouldFetch)C(e.dispatch,t);else if(a.isFetching)var s=!1,c=e.subscribe((function(){c(),s||(s=!0,T(e,t))}));else a.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:a.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(i=t.success)||void 0===i||i.call(t,a.data),null===(o=t.always)||void 0===o||o.call(t))}function E(e){var t=Object(r.useDispatch)();if(e)return S(t,e)}function O(e,t){var n=Object(y.useMemo)((function(){return e&&(null==t?void 0:t.optimize)?function(e){return c(a,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function k(e,t){var n=Object(r.useDispatch)(),i=O(e&&e.key,t),o=S(n,e);return e&&i.shouldFetch&&o(),i}function P(e,t){return v(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){var i=t.success,o=t.error;t.success=function(e){null==i||i(e),n(e)},t.error=function(e){null==o||o(e),r(e)},T(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(422);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 c(this,n)}}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,n,r,c=s(u);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,u),c.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:t})}return t=u,n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(232).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(820).default},function(e,t){e.exports=m},function(e,t,n){var r=n(130);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(130);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(130);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="clamp-2 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(130);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(130);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(130);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={avatar:"_1XSQR"}},function(e,t,n){"use strict";var r=n(586);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(781);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(590);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(591);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(592)},function(e,t,n){e.exports={radioFilter:"vo-iA"}},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(360),i=n(835);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(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},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(360);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},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 u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},f={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)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).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 u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},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 u=n(840).XMLReader,l=t.DOMImplementation=n(745).DOMImplementation;t.XMLSerializer=n(745).XMLSerializer,t.DOMParser=r},function(e,t){var n=Math.pow(2,32);e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=t.getUint32(i)*n+t.getUint32(i+4),r.firstOffset=t.getUint32(i+8)*n+t.getUint32(i+12),i+=16),i+=2;var o=t.getUint16(i);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r}},function(e,t,n){"use strict";var r=n(746),i=n(841).handleRollover,o={};o.ts=n(843),o.aac=n(844);var a=n(208).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c++,u++;else{switch(r=e.subarray(c,u),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),l=!0)}if(l)break;c+=188,u+=188}for(c=(u=e.byteLength)-188,l=!1;c>=0;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c--,u--;else{switch(r=e.subarray(c,u),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),l=!0)}if(l)break;c-=188,u-=188}},c=function(e,t,n){for(var r,i,a,s,c,u,l,f=0,p=188,d=!1,h={data:[],size:0};p<e.byteLength;)if(71!==e[f]||71!==e[p])f++,p++;else{switch(r=e.subarray(f,p),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!==h.size){for(c=new Uint8Array(h.size),u=0;h.data.length;)l=h.data.shift(),c.set(l,u),u+=l.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var y=o.ts.parsePesTime(c);y?(n.firstKeyFrame=y,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.")}h.size=0}h.data.push(r),h.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;f+=188,p+=188}for(f=(p=e.byteLength)-188,d=!1;f>=0;)if(71!==e[f]||71!==e[p])f--,p--;else{switch(r=e.subarray(f,p),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;f-=188,p-=188}},u=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,u=0;e.length-u>=3;){switch(o.aac.parseType(e,u)){case"timed-metadata":if(e.length-u<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,u))>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+c),s=o.aac.parseAacTimestamp(t)),u+=c;break;case"audio":if(e.length-u<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,u))>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+c),i=o.aac.parseSampleRate(t)),r++,u+=c;break;default:u++}if(n)return null}if(null===i||null===s)return null;var l=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):u(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){e.exports=JSON.parse('{"a":"1.1.2"}')},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,u=-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*(u+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],u=(n=n||0)>>>3,l=-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)+u)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(l+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,u,l,f,p,d=0,h=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-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(u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=a[c]<<8*(f+i*(l%4)),d+=1}else for(f=-1===i?2:0,p="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===p&&(o=(c=255&o)<<8|o>>>8),u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=o<<8*(f+i*(l%4)),d+=2}return{value:h,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,u,l,f=0,p=n||[0],d=(r=r||0)>>>3,h=-1===i?3:0,y=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!==y&&y<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(u=(l=f+d)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(h+i*(l%4)),f+=1}}return{value:p,binLen:8*f+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],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+u)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(l+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,u,l="",f=n/8,p=-1===r?3:0;for(o=0;o<f;o+=3)for(c=o+1<f?e[o+1>>>2]:0,u=o+2<f?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(p+r*(o%4))&255)<<16|(c>>>8*(p+r*((o+1)%4))&255)<<8|u>>>8*(p+r*((o+2)%4))&255,a=0;a<4;a+=1)l+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return l}(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 u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(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 f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,i,o,f,p,d,h,y=[];for(n=t[0],r=t[1],i=t[2],o=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&i^~h&o,f,1518500249,y[d]):d<40?l(a(n,5),s(r,i,o),f,1859775393,y[d]):d<60?l(a(n,5),c(r,i,o),f,2400959708,y[d]):l(a(n,5),s(r,i,o),f,3395469782,y[d]),f=o,o=i,i=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(i,t[2]),t[3]=u(o,t[3]),t[4]=u(f,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=p(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=p,o.p=function(e){return e.slice()},o.l=f,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.1.2"}')},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(130);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>\r\n<div id="print-region"></div>'},useData:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"EmbedErrorView",(function(){return c}));var r=n(0),i=n.n(r),o=n(242),a=n(210),s=n.n(a);function c(e){var t=e.error;return i.a.createElement("div",{className:"text-white ".concat(s.a.embedError)},i.a.createElement("div",{className:s.a.logo},i.a.createElement(o.b,null)),i.a.createElement("div",{className:"".concat(s.a.content," d-flex flex-column align-items-center")},i.a.createElement("div",{className:"".concat(s.a.imgContainer," mb-3")},i.a.createElement("img",{src:t.imageUrl,className:s.a.img,role:"presentation",alt:""})),i.a.createElement("h1",{className:"".concat(s.a.heading," font-weight-500 mb-0")},t.heading),!!t.description&&i.a.createElement("p",{className:"mb-0"},t.description)))}},function(e,t,n){var r=n(130);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 o}));var r=n(180),i=n(25),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.h)(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,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),o=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[o,f]},t}()}).call(this,n(429).Buffer)},function(e,t,n){e.exports={notificationsView:"_3UtcL"}},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,n){"use strict";var r=n(2);n(886);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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 c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,r,i=s(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=i.call(this,e,t)).update(),n}return t=c,(n=[{key:"update",value:function(){this.options_.isFavourited?this.addClass("cv-favourited"):this.removeClass("cv-favourited")}},{key:"handleClick",value:function(){if(this.options_.isFavourited=!this.options_.isFavourited,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-favourite-button"}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.a.getComponent("Button"));function f(e){return(f="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}l.prototype.controlText_="Favourite";var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(o,e);var t,n,r,i=y(o);function o(){return p(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setFavourite",value:function(e,t){var n=this;e!==this.isFavourite&&(this.isFavourite=e,this.onClickFavourite=t,this.player.ready((function(){n.renderFavouriteButton()})))}},{key:"renderFavouriteButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{isFavourited:this.isFavourite,clickHandler:this.onClickFavourite}),this.player.addChild(this.button))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("favouritePlugin",g)},function(e,t,n){"use strict";var r=n(2),i=n(136);n(888);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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this,e,t)).update(),n}return t=u,(n=[{key:"update",value:function(){this.options_.activityStatus===i.a.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.options_.activityStatus===i.a.Complete?i.a.Incomplete:i.a.Complete,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.getComponent("Button"));function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}f.prototype.controlText_="ActivityStatus";var b=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,n,r,i=m(o);function o(){return d(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setActivityStatus",value:function(e,t){var n=this;e!==this.activityStatus&&(this.activityStatus=e,this.onToggleStatus=t,this.player.ready((function(){n.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new f(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("activityStatusPlugin",b)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,function(e,t){function n(t){return e.exports=n="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.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},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(821));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}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 u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,g="<"+h+' href="'+s(d)+'"';y&&(g+=' class="'+s(y)+'"'),m&&(g+=' target="'+s(m)+'"'),v&&(g+=" "+c(v)),g+=">"+a(p)+"</"+h+">",r.push(g)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(295),i=s(n(822)),o=s(n(823)),a=s(n(824));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(466),i=n(357),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(""),u=[" ","\f","\r","\t","\v"," "," ",""],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),h=f(i.DOMAIN),y=f(),m=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,m),m.on(u,m);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,_),l.push.apply(l,S);var C=b.pop(),T=w.pop(),E=_.pop(),O=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);T.on("s",k).on(":",P),E.on("s",k).on(":",P),l.push(k),C.on(":",P),k.on(":",P),O.on(":",A);var I=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,I),p.on(s,d),d.on("-",y).on(s,d).on(c,h),h.on("-",y).on(c,h);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var R=p;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=p,a=null,s=0,c=null,u=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,i++;if(!(u<0)){i-=u,s-=u;var l=c.emit();r.push(new l(e.substr(i-s,s)))}}return r},t.start=R},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(466),i=n(825),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(357);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),d=s(),h=s(),y=s(i.URL),m=s(),v=s(i.URL),g=s(i.URL),b=s(),w=s(),_=s(),S=s(),C=s(),T=s(i.URL),E=s(i.URL),O=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),x=s(),R=s(),L=s(),j=s(i.EMAIL),N=s(),D=s(i.EMAIL),B=s(i.MAILTOEMAIL),U=s(),M=s(),V=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),d.on(a.DOT,h),R.on(a.DOT,L),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),L.on(a.TLD,j).on(a.DOMAIN,R).on(a.NUM,R).on(a.LOCALHOST,R),y.on(a.DOT,h),j.on(a.DOT,L),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,D);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];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),T.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),w.on(z,T),_.on(z,E),S.on(z,O),C.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),C.on(W,x),T.on(z,T),E.on(z,E),O.on(z,O),k.on(z,k),T.on(W,T),E.on(W,E),O.on(W,O),k.on(W,k),P.on(z,T),A.on(z,E),I.on(z,O),x.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),x.on(W,x),g.on(z,g),b.on(z,g),g.on(W,b),b.on(W,b),l.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,U),U.on(z,B).on(W,U);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(G,M).on(a.AT,V),y.on(G,M).on(a.AT,V),h.on(G,M),M.on(G,M).on(a.AT,V).on(a.DOT,F),F.on(G,M),V.on(a.TLD,R).on(a.DOMAIN,R).on(a.LOCALHOST,j);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,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var h=f.emit();r.push(new h(e.slice(n-l,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(467),i=n(295),o=n(357);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}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(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=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){},function(e,t){},function(e,t,n){var r=n(816).default,i=n(26);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},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(326),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 u(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 u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"--\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),u(),t.endTime=i(),u(),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 l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={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"},h={rt:"ruby"};function y(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!h[t.localName]||h[t.localName]===e.localName}function i(t,n){var r=f[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"),u=c,y=[];null!==(o=n());)if("<"!==o[0])u.appendChild(e.document.createTextNode((s=o,l.innerHTML=s,s=l.textContent,l.textContent="",s)));else{if("/"===o[1]){y.length&&y[y.length-1]===o.substr(2).replace(">","")&&(y.pop(),u=u.parentNode);continue}var m,v=a(o.substr(1,o.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),u.appendChild(m);continue}var g=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g)continue;if(!(m=i(g[1],g[3])))continue;if(!r(u,m))continue;if(g[2]){var b=g[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(p.hasOwnProperty(n)){var r=t?"background-color":"color",i=p[n];m.style[r]=i}})),m.className=b.join(" ")}y.push(g[1]),u.appendChild(m),u=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 v(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 g(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(v(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function w(e,t,n){b.call(this),this.cue=t,this.cueDiv=y(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:g(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 _(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 S(e,t,n,r){var i=new _(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 u=i.lineHeight,l=u*Math.round(a),f=n[c]+u,p=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/u)*u),a<0&&(l+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(p,l)}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 _(t)}var h=function(e,t){for(var i,o=new _(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 _(e),a=c),e=new _(o)}return i||o}(i,s);t.move(h.toCSSCompatValues(n))}function C(){}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},w.prototype=i(b.prototype),w.prototype.constructor=w,_.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}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.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}},_.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)},_.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}},_.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}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};C.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=_.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 w(e,s,a),r.appendChild(n.div),S(0,n,o,i),s.displayState=n.div,i.push(_.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},C.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=[]},C.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 l=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!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{u(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==i.indexOf("--\x3e");if(!i||p&&(f=!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=C},function(e,t){},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,u=r,l=null,f="",p=!0,d="auto",h="start",y="auto",m="auto",v=100,g="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 u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},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.");f=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!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 h},set:function(e){var t=i(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=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 v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;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[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=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(l(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 u(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 l(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){
|
|
47
47
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
48
48
|
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,y=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*y}},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 u=e.charAt(s);switch(u){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(u,t))>0))throw new Error("attribute value no end '"+u+"' match");l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),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:"/"===(l=e.slice(t,s)).slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case 2:2===c&&(l=a),4==c?(o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),n.add(l,l,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")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 l=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l,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 u=a.prefix=s.slice(0,d),l=s.slice(d+1),p="xmlns"===u&&l;else l=s,u=null,p="xmlns"===s&&"";a.localName=l,!1!==p&&(null==i&&(i={},f(n,n={})),n[p]=i[p]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,c))}for(o=e.length;o--;){(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var d;(d=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,d),l=e.localName=r.slice(d+1)):(u=null,l=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(h,l,r),i)for(u in i)t.endPrefixMapping(u)}function u(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 l(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 f(e,t){for(var n in e)t[n]=e[n]}function p(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],u=a>4&&o[4][0],l=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[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 h(e){}function y(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(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 f(t){if(t>S){var n=e.substring(S,t).replace(/&#?\w+;/g,o);b&&y(S),r.characters(n,0,t-S),S=t}}function y(t,n){for(;t>=v&&(n=g.exec(e));)m=n.index,v=m+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}var m=0,v=0,g=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,w=[{currentNSMap:t}],_={},S=0;for(;;){try{var C=e.indexOf("<",S);if(C<0){if(!e.substr(S).match(/^\s*$/)){var T=r.doc,E=T.createTextNode(e.substr(S));T.appendChild(E),r.currentElement=E}return}switch(C>S&&f(C),e.charAt(C+1)){case"/":var O=e.indexOf(">",C+3),k=e.substring(C+2,O),P=w.pop();O<0?(k=e.substring(C+2).replace(/[\s<].*/,""),i.error("end tag name: "+k+" is not complete:"+P.tagName),O=C+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),i.error("end tag name: "+k+" maybe not complete"),O=C+1+k.length);var A=P.localNSMap,I=P.tagName==k;if(I||P.tagName&&P.tagName.toLowerCase()==k.toLowerCase()){if(r.endElement(P.uri,P.localName,k),A)for(var x in A)r.endPrefixMapping(x);I||i.fatalError("end tag name: "+k+" is not match the current start tagName:"+P.tagName)}else w.push(P);O++;break;case"?":b&&y(C),O=d(e,C,r);break;case"!":b&&y(C),O=p(e,C,r,i);break;default:b&&y(C);var R=new h,L=w[w.length-1].currentNSMap,j=(O=s(e,C,R,L,o,i),R.length);if(!R.closed&&l(e,O,R.tagName,_)&&(R.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&j){for(var N=a(b,{}),D=0;D<j;D++){var B=R[D];y(B.offset),B.locator=a(b,{})}r.locator=N,c(R,r,L)&&w.push(R),r.locator=b}else c(R,r,L)&&w.push(R);"http://www.w3.org/1999/xhtml"!==R.uri||R.closed?O++:O=u(e,O,R.tagName,o,r)}}catch(e){i.error("element parse error: "+e),O=-1}O>S?S=O:f(Math.max(C,S)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},h.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}},y({},y.prototype)instanceof y||(y=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(842),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=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";var r=n(746),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,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},o=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=i(e,t),o(e,t))},a=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){var t=o(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:i,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+=a(e.subarray(10,14)));do{if((n=a(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 i=0;i<r.byteLength;i++)if(0===r[i]){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,i))){var o=r.subarray(i+1),s=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return s*=4,s+=3&o[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t,n){var r=n(303).toUnsigned,i=n(747),o=function(e,t){var n,a,s,c,u,l=[];if(!t.length)return null;for(n=0;n<e.byteLength;)a=r(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),s=i(e.subarray(n+4,n+8)),c=a>1?n+a:e.byteLength,s===t[0]&&(1===t.length?l.push(e.subarray(n+8,c)):(u=o(e.subarray(n+8,c),t.slice(1))).length&&(l=l.concat(u))),n=c;return l};e.exports=o},function(e,t){e.exports=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],a=8&r.flags[2],s=16&r.flags[2],c=32&r.flags[2],u=65536&r.flags[0],l=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),c&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&l&&(r.baseDataOffsetIsMoof=!0),r}},function(e,t,n){var r=n(848);e.exports=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),o=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],c=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],f=i.getUint32(4),p=8;for(o&&(n.dataOffset=i.getInt32(p),p+=4),a&&f&&(t={flags:r(e.subarray(p,p+4))},p+=4,s&&(t.duration=i.getUint32(p),p+=4),c&&(t.size=i.getUint32(p),p+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(p):t.compositionTimeOffset=i.getUint32(p),p+=4),n.samples.push(t),f--);f--;)t={},s&&(t.duration=i.getUint32(p),p+=4),c&&(t.size=i.getUint32(p),p+=4),u&&(t.flags=r(e.subarray(p,p+4)),p+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(p):t.compositionTimeOffset=i.getUint32(p),p+=4),n.samples.push(t);return n}},function(e,t){e.exports=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}},function(e,t,n){var r=n(303).toUnsigned;e.exports=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:r(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=r(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t}},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){},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(817),n(818),n(819);var r=n(4),i=n(10),o=n(20),a=n(51),s=n(0),c=n.n(s),u=n(13),l=n.n(u),f=n(317),p=n(31);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(o,e);var t,n,r,i=v(o);function o(){return h(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,s.createElement(t,{alerts:r,removeAlert:function(e){return u.Radio.channel(p.a.ALERT).trigger("remove:alert",e)}}))}}}])&&y(t.prototype,n),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(f.a),_="content",S="popup",C="alert",T="hidden",E=n(1),O="TeacherLayout",k="SimpleLayout",P=n(3),A=n(6),I=n(112),x=n(39),R=function(e,t){var n;return null===(n=null==e?void 0:e[t])||void 0===n?void 0:n.value},L=n(135),j=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())}))},N={application:P.a.DEFAULT,action:A.a.Default.UPGRADE_ONBOARDING},D={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME};function B(e,t){var n,o;return j(this,void 0,void 0,regeneratorRuntime.mark((function a(){var s,c,u,l,f,p,d,h;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e.shell.store,c=N.application===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&N.action===(null===(o=e.appLink)||void 0===o?void 0:o.action),a.next=4,i.a.fetchAsync(s,I.a.customerSettings(t.customerId));case 4:return u=a.sent,a.next=7,i.a.fetchAsync(s,I.a.userSettings(t.id));case 7:if(l=a.sent,f=R(u,x.a.LiteUpgradeComplete),p=R(l,x.a.HasCompletedUpgradeOnboarding),!f&&!p){a.next=16;break}if(!c){a.next=15;break}return r.a.AppLinkHelper.trigger(D,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!0,redirected:!0});case 15:return a.abrupt("return",{isUpgradeCustomer:!0});case 16:if(d=R(u,x.a.LiteUpgradeTypeCustomer),h=R(l,x.a.LiteUpgradeTypeUser),!!h||!!d){a.next=25;break}if(!c){a.next=24;break}return r.a.AppLinkHelper.trigger(D,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!1,redirected:!0});case 24:return a.abrupt("return",{isUpgradeCustomer:!1});case 25:if(L.a.disableNav(),c){a.next=30;break}return r.a.AppLinkHelper.trigger(N,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!0,redirected:!0});case 30:return a.abrupt("return",{isUpgradeCustomer:!0});case 31:case"end":return a.stop()}}),a)})))}var U=n(374),M=n.n(U),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())}))},F=[{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_WELCOME},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_TOPIC_PRESENTATION},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_CURRICULUM_PRESENTATION},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_LEVELS},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_TOPICS},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_SUMMARY}],H=[{application:P.a.DEFAULT,action:A.a.Default.NOT_FOUND},{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.DEFAULT,action:A.a.Default.PREVIEW_PDF}];function z(e,t){return V(this,void 0,void 0,regeneratorRuntime.mark((function n(){var s,c,u,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=e.shell.store,c=e.appLink,!H.find((function(e){return e.application===(null==c?void 0:c.application)&&e.action===(null==c?void 0:c.action)}))){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,i.a.fetchAsync(s,o.a.permissions());case 6:if(n.sent[a.a.ManageSubjectPreferences]){n.next=9;break}return n.abrupt("return");case 9:if(M.a.get("_onboardingComplete")!==t.id.toString()){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,i.a.fetchAsync(s,I.a.userSettings(t.customerId));case 13:if(u=n.sent,!R(u,x.a.HasCompletedOnboarding)){n.next=18;break}return M.a.set("_onboardingComplete",t.id,{expires:30}),n.abrupt("return");case 18:if(l=!!F.find((function(t){var n,r;return t.application,null===(n=e.appLink)||void 0===n||n.application,t.action===(null===(r=e.appLink)||void 0===r?void 0:r.action)})),L.a.disableNav(),l){n.next=24;break}return r.a.AppLinkHelper.trigger({application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_WELCOME},{replace:!0}),r.a.AppLinkUtility.routingEnded(),n.abrupt("return");case 24:case"end":return n.stop()}}),n)})))}var W=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())}))},G={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME},q=P.a.DEFAULT,Y=A.a.Default.UPGRADE_ONBOARDING;function K(e,t){var n,s;return W(this,void 0,void 0,regeneratorRuntime.mark((function c(){var u,l,f,p,d,h;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return u=e.shell.store,l=!!F.find((function(t){var n,r;return t.application,null===(n=e.appLink)||void 0===n||n.application,t.action===(null===(r=e.appLink)||void 0===r?void 0:r.action)})),f=q===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&Y===(null===(s=e.appLink)||void 0===s?void 0:s.action),c.prev=3,c.next=6,i.a.fetchAsync(u,o.a.currentUser());case 6:if((p=c.sent).isAuthenticated){c.next=13;break}if(!l&&!f){c.next=12;break}return r.a.AppLinkHelper.trigger(G,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 12:return c.abrupt("return",t(e));case 13:return c.next=15,i.a.fetchAsync(u,o.a.permissions());case 15:if(!c.sent[a.a.StudentExperience]){c.next=22;break}if(!l&&!f){c.next=21;break}return r.a.AppLinkHelper.trigger(G,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 21:return c.abrupt("return",t(e));case 22:return c.next=24,B(e,p);case 24:if(d=c.sent,h=d.isUpgradeCustomer,!d.redirected){c.next=29;break}return c.abrupt("return");case 29:if(!h){c.next=35;break}if(!l){c.next=34;break}return r.a.AppLinkHelper.trigger(G,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 34:return c.abrupt("return",t(e));case 35:return c.next=37,z(e,p);case 37:t(e),c.next=43;break;case 40:c.prev=40,c.t0=c.catch(3),t(e);case 43:case"end":return c.stop()}}),c,null,[[3,40]])})))}var X=n(95),Q=n(102),Z=n(72),J=n(229),ee=n(98),te=n(78),ne=n(8);function re(e){return(re="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 ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ce(e);if(t){var i=ce(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue="liteShared.noAccess",le=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(o,e);var t,n,r,i=ae(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,"Current user's school does not have access to the primary product")).config=e,t}return t=o,(n=[{key:"name",get:function(){return"NoAccessError"}},{key:"heading",get:function(){return ne.a.getPhrase(ue,"heading")}},{key:"description",get:function(){return ne.a.getPhrase(ue,"body",{learnMoreUrl:"https://www.clickview.com.au/upgrade?utm_source=ClickView+Online&utm_medium=website&utm_campaign=New+Product",onlineUrl:this.config.onlineUrl,escapeText:!0})}},{key:"cta",get:function(){return!1}},{key:"injectDescriptionHtml",get:function(){return!0}}])&&ie(t.prototype,n),r&&ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(te.a),fe=n(107),pe=n(97),de=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())}))},he=[{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.DEFAULT,action:A.a.Default.DEV_ERROR},{application:P.a.DEFAULT,action:A.a.Default.PREVIEW_PDF},{application:P.a.DEFAULT,action:A.a.Default.LOG_IN},{application:P.a.DEFAULT,action:A.a.Default.LOG_OUT},{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK},{application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR},{application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN},{application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR},{application:P.a.EMBED,action:A.a.Embed.PLUGIN_LOGIN},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_RESOURCE},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_LCS_VIDEO},{application:P.a.EMBED,action:A.a.Embed.LCS_LOGIN}].reduce((function(e,t){return e[ye(t)]=!0,e}),{});function ye(e){return e.application+e.action}function me(e,t){Z.a._forcePushContext(e),pe.a.disableNav(),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(null!=t?t:new ee.a)}function ve(e,t){var n=this,r=e.appLink,a=e.shell;X.a.isDevelopment?t(e):i.a.hooklessFetch(a.store,o.a.currentUser((function(o){if(!o.isAuthenticated)return t(e);i.a.hooklessFetch(a.store,J.a.userProducts((function(o){return de(n,void 0,void 0,regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o.find((function(e){return e.id===Q.a.Primary}))){n.next=3;break}return t(e),n.abrupt("return");case 3:if(!he[ye(e.appLink)]){n.next=7;break}return pe.a.disableNav(),t(e),n.abrupt("return");case 7:return n.next=9,i.a.fetchAsync(a.store,fe.a.config());case 9:s=n.sent,me(r,new le(s));case 11:case"end":return n.stop()}}),n)})))}),(function(){return me(r)})))}),(function(){return me(r)})))}var ge=n(28),be=n(230),we=n(38),_e=n(59),Se=n(49),Ce=n(17),Te=n(231);function Ee(e){return(Ee="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 ke(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 Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xe(e);if(t){var i=xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(o,e);var t,n,r,i=Ae(o);function o(){return Oe(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===o.type}}])&&ke(t.prototype,n),r&&ke(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function Le(e){return(Le="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 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 Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ue(e);if(t){var i=Ue(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(e,t){if(t&&("object"===Le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Re.type="BaseAnalyticsEnricher";var Me=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(o,e);var t,n,r,i=De(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).consumerKey=e.consumerKey,t}return t=o,(n=[{key:"name",get:function(){return"PluginEnricher"}},{key:"enrich",value:function(e,t){e.enrich("plugin",this.getPluginData()),t(e)}},{key:"getPluginData",value:function(){return{isPlugin:!0,consumerKey:this.consumerKey}}}])&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Re);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)}var Fe={application:P.a.DEFAULT,action:A.a.Default.PLUGIN},He={application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},ze={application:P.a.DEFAULT,action:A.a.Default.PLAY_CLIP},We={application:P.a.INTERACTIVES,action:A.a.Interactives.VIEW_INTERACTIVE},Ge={application:P.a.DEFAULT,action:A.a.Default.SHARE},qe=[He,ze,We,Ge],Ye=[P.a.CLASSROOMS,P.a.USER_MANAGER,P.a.SETTINGS];function Ke(e,t){return e.application===(null==t?void 0:t.application)&&e.action===(null==t?void 0:t.action)}function Xe(e){if(Ke(e,He))return E.EntityType.Video;if(Ke(e,ze))return E.EntityType.Clip;if(Ke(e,We))return E.EntityType.Interactive;if(Ke(e,Ge)){var t=Qe(e.params);return null==t?void 0:t.entityType}r.a.ErrorHelper.throw(new ge.a("No derived share entity type found"))}function Qe(e){return"object"===Ve(e)?e:_e.LocationUtils.DeserializeQueryParams(e)}function $e(e){Z.a._forcePushContext(e),r.a.AppLinkUtility.routingEnded(),r.a.AppLinkHelper.trigger(e,{replace:!0})}function Ze(e,t){var n,r,i=e.appLink,o=e.shell,a=we.b.get(Se.a.PLUGIN);if(a&&qe.find((function(e){return Ke(e,i)})))$e({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_SHARE,args:[i.args[0]],params:{entityType:Xe(i)}});else if(a&&Ye.find((function(e){return e===i.application})))$e({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_NEW_WINDOW,params:{url:_e.AppLinkHelper.getHref(i)}});else{if(Ke(i,Fe)){var s=Qe(i.params),c={isPlugin:!0,consumerKey:s.consumerKey,ltiReturnUrl:s.ltiReturnUrl,submitUrl:s.submitUrl,lmsType:s.lmsType,sizeSelector:!("false"==(null===(n=s.sizeSelector)||void 0===n?void 0:n.toLowerCase())),singleSelectMode:"true"==(null===(r=s.singleSelectMode)||void 0===r?void 0:r.toLowerCase())};return o.store.dispatch({type:be.a.UPDATE,payload:{viewModelKey:Se.a.PLUGIN,dataOrKey:c}}),we.b.set(Se.a.PLUGIN,c),function(e){if(e){var t=Ce.a.getInstance(Te.a.Analytics);t.hasEnricher(Me)||t.registerEnricher(Me,{consumerKey:e})}}(s.consumerKey),$e({application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),void window.Intercom("update",{hide_default_launcher:!0})}t(e)}}var Je=[{application:P.a.LAUNCHPAD,action:A.a.Launchpad.LOGIN_LANDING},{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR},{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK},{application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_RESOURCE},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.PASSWORD_PROTECTED_SHARE_LINK},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.SHARE_LINK_SIGN_IN},{application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN},{application:P.a.EMBED,action:A.a.Embed.PLUGIN_LOGIN},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM_PROMPT},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_LCS_VIDEO},{application:P.a.EMBED,action:A.a.Embed.LCS_LOGIN}].reduce((function(e,t){return e[et(t)]=!0,e}),{});function et(e){return e.application+e.action}function tt(e,t){Je[et(e.appLink)]?t(e):i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(n){if(n.isAuthenticated)t(e);else{var i=e.appLink.params,o={};(null==i?void 0:i.customerId)&&(o.customerId=i.customerId),(null==i?void 0:i.skipPrompt)&&(o.skipPrompt=i.skipPrompt),"/"===_e.LocationUtils.GetCurrentPath()&&(o.showJoinCode=!0),r.a.AppLinkUtility.routingEnded(),r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.LOGIN_LANDING,params:o},{replace:!0})}}),(function(){return t=e.appLink,Z.a._forcePushContext(t),pe.a.disableNav(),r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ee.a);var t})))}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 it(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 ot(e,t,n){return t&&it(e.prototype,t),n&&it(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function at(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ct(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lt(e);if(t){var i=lt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ut(this,n)}}function ut(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ft=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())}))},pt=function(e){at(n,e);var t=ct(n);function n(){return rt(this,n),t.apply(this,arguments)}return ot(n,[{key:"channelName",get:function(){return P.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/students":"classroomStudents","classrooms/:id/groups":"classroomGroups","classrooms/:id/teachers":"classroomTeachers","classrooms/:id/manage":"manageClassroom","classrooms/:id/classroom-link":"generateJoinLink"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup","addStudentsChoices","addStudentsChoicesMethod","contactSchoolAdmin","archiveClassroom","retrieveClassroom","addTeachers","assignAsOwner","revokeOwnership","removeTeachers"]}},{key:"filters",get:function(){return[tt,ve,K,Ze]}}]),n}(r.a.AppRouter),dt=function(e){at(i,e);var t=ct(i);function i(){return rt(this,i),t.apply(this,arguments)}return ot(i,[{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return P.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.query;Promise.all([n.e(23),n.e(77)]).then(n.bind(null,2196)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(_,c.a.createElement(n,{query:r}))}))}},{key:"classroom",value:function(e){r.a.AppLinkHelper.trigger({application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS,args:[e]})}},{key:"classroomStudents",value:function(e){var t=this;Promise.all([n.e(13),n.e(107)]).then(n.bind(null,2200)).then((function(n){var r=n.ClassroomStudentsView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"classroomGroups",value:function(e){var t=this;Promise.all([n.e(13),n.e(88)]).then(n.bind(null,2206)).then((function(n){var r=n.ClassroomGroupsView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"classroomTeachers",value:function(e){var t=this;Promise.all([n.e(13),n.e(117)]).then(n.bind(null,2207)).then((function(n){var r=n.ClassroomTeachersView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e){r.a.AppLinkHelper.trigger({application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS,args:[e]},{replace:!0})}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(98)]).then(n.bind(null,2111)).then((function(t){var n=t.CreateClassroomView,r={actionType:E.UserAction.Create,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};e.layout.showChildView(S,c.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(99)]).then(n.bind(null,2112)).then((function(n){var r=n.EditClassroomView,i={actionType:E.UserAction.Edit,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};t.layout.showChildView(S,c.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(169).then(n.bind(null,2113)).then((function(n){var r=n.DeleteClassroomView,i={actionType:E.UserAction.Delete,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};t.layout.showChildView(S,c.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(10),n.e(165)]).then(n.bind(null,2114)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:E.UserAction.Associate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};t.layout.showChildView(S,c.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(170).then(n.bind(null,2115)).then((function(t){var n=t.RemoveStudentsFromClassroomView,o={actionType:E.UserAction.Dissociate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,studentIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"newGroup",value:function(e,t){var r=this,i=t.addStudents,o=void 0===i?[]:i;Promise.all([n.e(1),n.e(2),n.e(73)]).then(n.bind(null,2116)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:E.EntityType.ClassroomGroup,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,studentIds:o,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(74)]).then(n.bind(null,2117)).then((function(n){var i=n.EditClassroomGroupView,o={entity:E.EntityType.ClassroomGroup,actionType:E.UserAction.Edit,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(168).then(n.bind(null,2118)).then((function(n){var i=n.DeleteClassroomGroupView,o={entity:E.EntityType.ClassroomGroup,actionType:E.UserAction.Delete,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"generateJoinLink",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(80).then(n.bind(null,2220));case 2:r=t.sent,i=r.GenerateJoinLinkView,this.layout.showChildView(_,c.a.createElement(i,{classroomId:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addStudentsChoices",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(140).then(n.bind(null,2119));case 2:r=t.sent,i=r.AddStudentsChoicesView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addStudentsChoicesMethod",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(139).then(n.bind(null,2120));case 2:r=t.sent,i=r.AddStudentsChoicesMethodView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"contactSchoolAdmin",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(155).then(n.bind(null,2121));case 2:r=t.sent,i=r.ContactSchoolAdminView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"archiveClassroom",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(167).then(n.bind(null,2122));case 2:r=t.sent,i=r.ArchiveClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"retrieveClassroom",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(172).then(n.bind(null,2123));case 2:r=t.sent,i=r.RetrieveClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addTeachers",value:function(e){return ft(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(10),n.e(166)]).then(n.bind(null,2124));case 2:r=t.sent,i=r.AddTeachersToClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"assignAsOwner",value:function(e,t){return ft(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(135).then(n.bind(null,2125));case 2:i=r.sent,o=i.AssignAsOwnerView,this.layout.showChildView(S,c.a.createElement(o,{classroomId:e,teacherId:t,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"revokeOwnership",value:function(e,t){return ft(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(136).then(n.bind(null,2126));case 2:i=r.sent,o=i.RevokeOwnershipView,this.layout.showChildView(S,c.a.createElement(o,{classroomId:e,teacherId:t,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"removeTeachers",value:function(e,t){var r=this,i=t.teacherIds;n.e(171).then(n.bind(null,2127)).then((function(t){var n=t.RemoveTeachersFromClassroomView,o={actionType:E.UserAction.Dissociate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,teacherIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}}],[{key:"router",get:function(){return pt}}]),i}(w),ht="content",yt="popup",mt="alert",vt="hidden",gt=n(50),bt={getVideoAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO,args:[e.id,gt.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[e.id,gt.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:P.a.CONTENT_UPDATES,action:A.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,gt.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:P.a.SUBJECT,action:A.a.Subjects.CLASSIFICATION,args:[e.id,gt.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:P.a.PLAYLISTS,action:A.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME},contentUpdatesAppLink:{application:P.a.CONTENT_UPDATES,action:A.a.ContentUpdates.CONTENT_UPDATES}};function wt(e){return(wt="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 _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(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 Ct(e,t,n){return t&&St(e.prototype,t),n&&St(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Et(e,t)}function Et(e,t){return(Et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ot(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var i=Pt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kt(this,n)}}function kt(e,t){if(t&&("object"===wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=function(e){Tt(n,e);var t=Ot(n);function n(){return _t(this,n),t.apply(this,arguments)}return Ct(n,[{key:"channelName",get:function(){return P.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"latest-releases":"contentUpdates","latest-releases/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),It=function(e){Tt(r,e);var t=Ot(r);function r(){return _t(this,r),t.apply(this,arguments)}return Ct(r,[{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.CONTENT_UPDATES}},{key:"contentUpdates",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(27),n.e(146)]).then(n.bind(null,2221)).then((function(t){var n=t.ContentUpdatesView;e.layout.showChildView(ht,s.createElement(n,{appLinks:bt}))}))}},{key:"classificationUpdate",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(27),n.e(152)]).then(n.bind(null,2222)).then((function(n){var r=n.ClassificationUpdateView;t.layout.showChildView(ht,s.createElement(r,{classificationId:e,appLinks:bt}))}))}}],[{key:"router",get:function(){return At}}]),r}(w);function xt(e){return(xt="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 Lt(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&&Lt(e.prototype,t),n&&Lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}function Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bt(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var i=Mt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ut(this,n)}}function Ut(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=function(e){Nt(n,e);var t=Bt(n);function n(){return Rt(this,n),t.apply(this,arguments)}return jt(n,[{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","discover(/)":"discover","discover/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),Ft=function(e){Nt(i,e);var t=Bt(i);function i(){return Rt(this,i),t.apply(this,arguments)}return jt(i,[{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"index",value:function(e){this.discover(e)}},{key:"discover",value:function(e){var t=this;Promise.all([n.e(0),n.e(7),n.e(24)]).then(n.bind(null,2194)).then((function(e){var n=e.DashboardView;t.layout.showChildView(ht,s.createElement(n,null))})),(null==e?void 0:e.upgradeFeedback)&&r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK})}},{key:"dashboard",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(25)]).then(n.bind(null,2235)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(ht,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return Vt}}]),i}(w),Ht=n(278),zt=n(283),Wt=n(64),Gt=n(30),qt=n(468);function Yt(e){return(Yt="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 Xt(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 Qt(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $t(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zt(e,t)}function Zt(e,t){return(Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jt(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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){if(t&&("object"===Yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nn=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())}))},rn=function(e){$t(n,e);var t=Jt(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Qt(n,[{key:"channelName",get:function(){return P.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id/edit(/)":"editVideo","videos/:id(/:slug)":"playVideo","videos/:id/clips/new(/)":"createClip","clips/:id/edit(/)":"editClip","clips/:id(/:slug)":"playClip","series/:id(/:slug)":"series","favourites(/)":"favourites","my-videos(/)":"myVideos","shared-by-me(/)":"sharedByMe","shared-with-me(/)":"sharedWithMe","welcome(/)":"upgradeOnboarding","plugin(/)":"plugin","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","previewPdf","previewQuestions","createClipDetails","editClipDetails","deleteClip","viewCurriculumLinks","downloadVideo","deleteVideo","share","pluginShare","pluginNewWindow","uploadImage","editLink","deleteLink","editResource","deleteResource","deleteSubtitle","liteUpgradeFeedback","liteUpgradeVideo","changePresentation"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[tt,ve,K,Ze]}}]),n}(r.a.AppRouter),on=function(e){$t(i,e);var t=Jt(i);function i(){return Kt(this,i),t.apply(this,arguments)}return Qt(i,[{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!pe.a.shouldHideNav(),alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.DEFAULT}},{key:"myVideos",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(65)]).then(n.bind(null,2208)).then((function(t){var n=t.MyVideosView;e.layout.showChildView(ht,s.createElement(n,null))}))}},{key:"playVideo",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return nn(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a=this;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=("string"==typeof t?r:t)||{},Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(38)]).then(n.bind(null,2236)).then((function(t){var n=t.PlayView;a.layout.showChildView(ht,s.createElement(n,{id:e,queryParams:o}))}));case 2:case"end":return i.stop()}}),i)})))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(36),n.e(40)]).then(n.bind(null,2190)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(ht,s.createElement(r,{id:e}))}))}},{key:"series",value:function(e,t,r){var i=this,o=function(t){return{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO,args:[t.id,gt.a.slugify(t.name)],params:{context:zt.a.Series,contextId:e}}};Promise.all([n.e(0),n.e(3),n.e(4),n.e(21)]).then(n.bind(null,2109)).then((function(t){var n=t.SeriesView;i.layout.showChildView(ht,s.createElement(n,{id:e,classificationId:r.classificationId,getVideoAppLink:o}))}))}},{key:"favourites",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(76)]).then(n.bind(null,2237)).then((function(t){var n=t.FavouritesView;e.layout.showChildView(ht,s.createElement(n,null))}))}},{key:"previewPdf",value:function(e){var t=this;Promise.all([n.e(15),n.e(66),n.e(89)]).then(n.bind(null,2238)).then((function(n){var r=n.PreviewPdfView;t.layout.showChildView(yt,s.createElement(r,{closePopup:function(){return t.layout.closePopup()},id:e}))}))}},{key:"createClip",value:function(e,t){var r=this;n.e(29).then(n.bind(null,2195)).then((function(n){var i=n.EditClipTimepointsView;r.layout.showChildView(ht,s.createElement(i,{videoId:e,startTime:t.startTime}))}))}},{key:"editClip",value:function(e){var t=this;n.e(29).then(n.bind(null,2195)).then((function(n){var r=n.EditClipTimepointsView;t.layout.showChildView(ht,s.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(30)]).then(n.bind(null,2239)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(yt,s.createElement(i,{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(30)]).then(n.bind(null,2239)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(yt,s.createElement(i,{id:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteClip",value:function(e){var t=this;n.e(187).then(n.bind(null,2128)).then((function(n){var r=n.DeleteClipView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"playClip",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(43)]).then(n.bind(null,2129)).then((function(n){var o=n.PlayClipView,a=("string"==typeof t?i:t)||{};r.layout.showChildView(ht,s.createElement(o,{id:e,queryParams:a}))}))}},{key:"viewCurriculumLinks",value:function(e){var t=this;n.e(114).then(n.bind(null,2130)).then((function(n){var r=n.ViewCurriculumLinksView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(189).then(n.bind(null,2223)).then((function(n){var r=n.DownloadVideoView;t.layout.showChildView(vt,s.createElement(r,{id:e}))}))}},{key:"deleteVideo",value:function(e){var t=this;n.e(188).then(n.bind(null,2131)).then((function(n){var r=n.DeleteVideoView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"share",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(10),n.e(45)]).then(n.bind(null,2197)).then((function(n){var i=n.ShareView;r.layout.showChildView(yt,s.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()},emptyStateImageUrl:Wt.a.EmptyStates.TYPEAHEAD_RESULTS,errorStateImageUrl:Wt.a.TYPEAHEAD_ERROR}))}))}},{key:"sharedByMe",value:function(){var e=this;Promise.all([n.e(14),n.e(0),n.e(19),n.e(59)]).then(n.bind(null,2198)).then((function(t){var n=t.SharedByMeView;e.layout.showChildView(ht,s.createElement(n,null))}))}},{key:"sharedWithMe",value:function(){var e=this;Promise.all([n.e(14),n.e(0),n.e(19),n.e(153)]).then(n.bind(null,2209)).then((function(t){var n=t.SharedWithMeView;e.layout.showChildView(ht,s.createElement(n,null))}))}},{key:"pluginShare",value:function(e,t){return nn(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(1),n.e(2),n.e(81)]).then(n.bind(null,2212));case 2:i=r.sent,o=i.PluginShareView,this.layout.showChildView(yt,s.createElement(o,{entityId:e,entityType:t.entityType,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"pluginNewWindow",value:function(e){return nn(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(190).then(n.bind(null,2132));case 2:r=t.sent,i=r.PluginNewWindowView,this.layout.showChildView(yt,s.createElement(i,{url:e.url,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"upgradeOnboarding",value:function(){return nn(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(115).then(n.bind(null,2133));case 2:t=e.sent,r=t.LiteUpgradeOnboardingView,this.layout.showChildView(ht,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Ht.a)}},{key:"notFound",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(173).then(n.bind(null,2134)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(ht,s.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");Promise.resolve().then(n.bind(null,751)).then((function(n){var r=n.ErrorView;e.layout.showChildView(ht,s.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(163).then(n.bind(null,2135)).then((function(n){var i=n.DialogView;e.layout.showChildView(yt,s.createElement(i,{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=u.Radio.channel("error:view").request("current:error");n.e(162).then(n.bind(null,2136)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(ht,s.createElement(r,{error:t}))}))}},{key:"uploadImage",value:function(e){var t=this,r=function(e,n,r){return qt.a.uploadBase64Image(e,n.split(",")[1],(function(e){r({url:e.location,fileId:e.id,fileIdType:Gt.a.ImageAPIv2})}),null,(function(){return t.layout.closePopup()}))};n.e(164).then(n.bind(null,2240)).then((function(n){var i=n.ImageUploadView;t.layout.showChildView(yt,s.createElement(i,{imageType:e,closePopup:function(){return t.layout.closePopup()},getRequest:r,submitVariant:"dark"}))}))}},{key:"editResource",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(101)]).then(n.bind(null,2241)).then((function(n){var i=n.EditResourceView;r.layout.showChildView(yt,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteResource",value:function(e,t){var r=this;n.e(151).then(n.bind(null,2137)).then((function(n){var i=n.DeleteResourceView;r.layout.showChildView(yt,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteSubtitle",value:function(e,t){var r=this;n.e(141).then(n.bind(null,2138)).then((function(n){var i=n.DeleteSubtitleView;r.layout.showChildView(yt,s.createElement(i,{subtitleId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"editLink",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(94)]).then(n.bind(null,2139)).then((function(n){var i=n.EditLinkView;r.layout.showChildView(yt,s.createElement(i,{linkId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteLink",value:function(e,t){var r=this;n.e(150).then(n.bind(null,2140)).then((function(n){var i=n.DeleteLinkView;r.layout.showChildView(yt,s.createElement(i,{linkId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"liteUpgradeFeedback",value:function(e){var t=this;Promise.all([n.e(161),n.e(145)]).then(n.bind(null,2201)).then((function(n){var r=n.LiteUpgradeFeedbackView;t.layout.showChildView(yt,s.createElement(r,{goToOnline:e.goToOnline,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"liteUpgradeVideo",value:function(){var e=this;n.e(144).then(n.bind(null,2141)).then((function(t){var n=t.LiteUpgradeVideoView;e.layout.showChildView(yt,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"changePresentation",value:function(){var e=this;n.e(53).then(n.bind(null,2242)).then((function(t){var n=t.SchoolLevelSelectorPopupView;e.layout.showChildView(yt,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return rn}}]),i}(w),an=n(35),sn=n(27),cn=n(291),un=n(84),ln=n(117),fn=n(418),pn=n(211),dn=n(285),hn=n(280),yn=n(147);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 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 gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_n(e);if(t){var i=_n(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wn(this,n)}}function wn(e,t){if(t&&("object"===mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _n(e){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sn=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}(o,e);var t,n,r,i=bn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Share link has been deleted")}return t=o,(n=[{key:"name",get:function(){return"ShareLinkDeletedError"}},{key:"heading",get:function(){return ne.a.getPhrase("share.shareLinkDeletedError","heading")}},{key:"description",get:function(){return ne.a.getPhrase("share.shareLinkDeletedError","description")}},{key:"imageUrl",get:function(){return Wt.a.EmptyStates.Share.DELETED}}])&&vn(t.prototype,n),r&&vn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(yn.a);function Cn(e){return(Cn="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 Tn(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 En(e,t){return(En=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function On(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pn(e);if(t){var i=Pn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kn(this,n)}}function kn(e,t){if(t&&("object"===Cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var An=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}(o,e);var t,n,r,i=On(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Share link has expired")}return t=o,(n=[{key:"name",get:function(){return"ShareLinkExpiredError"}},{key:"heading",get:function(){return ne.a.getPhrase("share.shareLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return Wt.a.EmptyStates.Share.EXPIRED}}])&&Tn(t.prototype,n),r&&Tn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(yn.a),In=n(469),xn=n(419),Rn=n(425),Ln=n(124);function jn(e){return(jn="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 Nn(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 Dn(e,t){return(Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bn(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mn(e);if(t){var i=Mn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Un(this,n)}}function Un(e,t){if(t&&("object"===jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mn(e){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vn=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dn(e,t)}(o,e);var t,n,r,i=Bn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Embed link deleted error")}return t=o,(n=[{key:"name",get:function(){return"EmbedLinkDeletedError"}},{key:"heading",get:function(){return ne.a.getPhrase("embed.embedLinkDeletedError","heading")}},{key:"description",get:function(){return ne.a.getPhrase("embed.embedLinkDeletedError","description")}},{key:"imageUrl",get:function(){return Wt.a.EmptyStates.Share.DELETED}}])&&Nn(t.prototype,n),r&&Nn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ln.a);function Fn(e){return(Fn="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 Hn(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 zn(e,t){return(zn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wn(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qn(e);if(t){var i=qn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(e,t){if(t&&("object"===Fn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yn,Kn=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zn(e,t)}(o,e);var t,n,r,i=Wn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Embed link expired error")}return t=o,(n=[{key:"name",get:function(){return"EmbedLinkExpiredError"}},{key:"heading",get:function(){return ne.a.getPhrase("embed.embedLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return Wt.a.EmptyStates.Share.EXPIRED}}])&&Hn(t.prototype,n),r&&Hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ln.a),Xn=n(296),Qn=n(411);function $n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zn,Jn=($n(Yn={},sn.a.Video,!0),$n(Yn,sn.a.Interactive,!0),$n(Yn,sn.a.Clip,!0),$n(Yn,sn.a.Playlist,!0),$n(Yn,sn.a.Series,!0),Yn),er={getErrors:function(e){return e===A.a.Share.VIEW_SHARE_LINK?{notFound:In.a,deleted:Sn,private:xn.a,unspecified:ee.a,expired:An}:{notFound:Rn.a,deleted:Vn,private:Qn.a,unspecified:Xn.a,expired:Kn}},throwError:function(e,t){Z.a._forcePushContext(t),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(e)},validateShareLink:function(e,t,n){return Jn[e.objectTypeId]?e.type!==cn.a.ShareLink||e.status!==fn.a.Expired||(er.throwError(new n.expired,t),!1):(er.throwError(new n.unspecified,t),!1)},onShareLinkError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===ln.a.Forbidden?"share-link-deleted"===e.responseJSON.type?er.throwError(new n.deleted,t):er.throwError(new n.private,t):e.status===ln.a.NotFound?er.throwError(new n.notFound,t):er.throwError(new n.unspecified,t)},onFetchVideoError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===ln.a.Forbidden?er.throwError(new n.private,t):e.status===ln.a.NotFound?er.throwError(new n.notFound,t):er.throwError(new n.unspecified,t)},goToPortal:function(e,t){r.a.AppLinkUtility.routingEnded(),t.action!==A.a.Share.VIEW_SHARE_LINK?r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN,args:[e]}):r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.PASSWORD_PROTECTED_SHARE_LINK,args:[e],params:{appLink:t}})},goToSignIn:function(e,t){r.a.AppLinkUtility.routingEnded();var n=e.ownerCustomerId;if(t.action!==A.a.Embed.VIEW_EMBEDDED_RESOURCE){var i=r.a.AppLinkHelper.getHref(t),o=t.params||{},a=o.videoId,s=o.clipId,c=o.interactiveId;e.objectTypeId===sn.a.Playlist&&(a||s||c)?r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.LOG_IN,params:{redirectUrl:i,customerId:n}}):r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.SHARE_LINK_SIGN_IN,args:[e.id],params:{redirectUrl:i,customerId:n}})}else r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN,args:[e.id],params:{customerId:n}})},getVideo:function(e,t,n,r,o,a){var s=r.objectId,c=r.objectTypeId,u=e.params;(null==u?void 0:u.videoId)?(s=u.videoId,c=sn.a.Video):(null==u?void 0:u.clipId)?(s=u.clipId,c=sn.a.Clip):(null==u?void 0:u.interactiveId)&&(s=u.interactiveId,c=sn.a.Interactive),c!==sn.a.Video?c!==sn.a.Clip?c!==sn.a.Interactive||i.a.hooklessFetch(t,hn.a.sharedInteractiveMetadata(s,n,o,a)):i.a.hooklessFetch(t,dn.a.sharedClip(s,n,o,a)):i.a.hooklessFetch(t,pn.a.sharedVideo(s,n,o,a))}};function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=(tr(Zn={},sn.a.Video,!0),tr(Zn,sn.a.Interactive,!0),tr(Zn,sn.a.Clip,!0),Zn);function rr(e,t){var n=e.appLink.action===A.a.Share.VIEW_SHARE_LINK,r=e.appLink.action===A.a.Embed.VIEW_EMBEDDED_RESOURCE;if(n||r){var a=er.getErrors(e.appLink.action),s=an.a.first(e.appLink.args);if(!s)return er.throwError(new a.notFound,e.appLink);i.a.hooklessFetch(e.shell.store,un.a.getShareObject(s,(function(n){if(er.validateShareLink(n,e.appLink,a))return n.type===cn.a.DirectShare?t(e):void function(t){if(!t.isPasswordProtected)return void c(t);var n=we.b.get(s);if(n)return void i.a.hooklessFetch(e.shell.store,un.a.checkPassword(s,n,(function(n){n.success?c(t):er.goToPortal(s,e.appLink)}),(function(){return er.goToPortal(s,e.appLink)})));er.goToPortal(s,e.appLink)}(n)}),(function(t){er.onShareLinkError(t,e.appLink,a)})))}else t(e);function c(n){var r,c,l=nr[n.objectTypeId],f=null!==(c=null===(r=e.appLink)||void 0===r?void 0:r.params)&&void 0!==c?c:{},p=f.videoId,d=f.clipId,h=f.interactiveId;if((p||d||h)&&(l=!0),!l)return n.objectTypeId===sn.a.Playlist?void t(e):void i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(e){return u(n,e,!1)}),(function(){return er.throwError(new a.unspecified,e.appLink)})));er.getVideo(e.appLink,e.shell.store,s,n,(function(r){return function(n,r){var s;if(null===(s=r._canBeConsumed)||void 0===s?void 0:s.value)return void t(e);i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(e){return u(n,e,!0)}),(function(){return er.throwError(new a.unspecified,e.appLink)})))}(n,r)}),(function(t){return er.onFetchVideoError(t,e.appLink,a)}))}function u(n,r,i){r.isAuthenticated?i?er.throwError(new a.private,e.appLink):t(e):er.goToSignIn(n,e.appLink)}}function ir(e){return(ir="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 or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(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 sr(e,t,n){return t&&ar(e.prototype,t),n&&ar(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ur(e,t)}function ur(e,t){return(ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lr(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pr(e);if(t){var i=pr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fr(this,n)}}function fr(e,t){if(t&&("object"===ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dr=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())}))},hr=function(e){cr(n,e);var t=lr(n);function n(){return or(this,n),t.apply(this,arguments)}return sr(n,[{key:"channelName",get:function(){return P.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shareId":"viewEmbeddedResource","embed-login-success":"embedLoginSuccess","plugin/login(/)":"pluginLogin","videos/embed/:videoId":"viewEmbeddedLcsVideo"}}},{key:"appLinks",get:function(){return["embedLogin","embedError","lcsLogin"]}},{key:"filters",get:function(){return[tt,ve,rr]}}]),n}(r.a.AppRouter),yr=function(e){cr(r,e);var t=lr(r);function r(){return or(this,r),t.apply(this,arguments)}return sr(r,[{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:k}}},{key:"channelName",get:function(){return P.a.EMBED}},{key:"viewEmbeddedResource",value:function(e,t){var r=this;n.e(174).then(n.bind(null,2243)).then((function(n){var i=n.BaseEmbedView;r.layout.showChildView(ht,c.a.createElement(i,{shareId:e,queryParams:t}))}))}},{key:"embedLogin",value:function(e,t){return dr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(127).then(n.bind(null,2142));case 2:i=r.sent,o=i.EmbedLoginView,this.layout.showChildView(ht,c.a.createElement(o,{shareId:e,consumerKey:t.consumerKey,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"embedLoginSuccess",value:function(){return dr(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(147).then(n.bind(null,2244));case 2:t=e.sent,r=t.EmbedLoginSuccessView,this.layout.showChildView(ht,c.a.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"embedError",value:function(){return dr(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.Radio.channel("error:view").request("current:error"),e.next=3,Promise.resolve().then(n.bind(null,807));case 3:r=e.sent,i=r.EmbedErrorView,this.layout.showChildView(ht,c.a.createElement(i,{error:t}));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"pluginLogin",value:function(e){return dr(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(148).then(n.bind(null,2143));case 2:r=t.sent,i=r.PluginLoginView,this.layout.showChildView(ht,c.a.createElement(i,{returnUrl:e.returnUrl}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"viewEmbeddedLcsVideo",value:function(e,t){return dr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(95).then(n.bind(null,2144));case 2:i=r.sent,o=i.EmbeddedLcsVideoView,this.layout.showChildView(ht,c.a.createElement(o,{id:e,queryParams:t}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"lcsLogin",value:function(e,t){return dr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(106).then(n.bind(null,2145));case 2:i=r.sent,o=i.EmbeddedLcsLoginView,this.layout.showChildView(ht,c.a.createElement(o,{videoId:e,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}}],[{key:"router",get:function(){return hr}}]),r}(w),mr=n(294);function vr(e){return(vr="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 gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function wr(e,t,n){return t&&br(e.prototype,t),n&&br(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _r(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sr(e,t)}function Sr(e,t){return(Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cr(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Er(e);if(t){var i=Er(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tr(this,n)}}function Tr(e,t){if(t&&("object"===vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Or=function(e){_r(n,e);var t=Cr(n);function n(){return gr(this,n),t.apply(this,arguments)}return wr(n,[{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),kr=function(e){_r(r,e);var t=Cr(r);function r(){return gr(this,r),t.apply(this,arguments)}return wr(r,[{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"index",value:function(e){var t=this;n.e(149).then(n.bind(null,2245)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(_,s.createElement(mr.a,{view:r,options:{params:e}}))}))}}],[{key:"router",get:function(){return Or}}]),r}(w),Pr=n(470);function Ar(e){return(Ar="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 Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 Rr(e,t,n){return t&&xr(e.prototype,t),n&&xr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jr(e,t)}function jr(e,t){return(jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nr(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Br(e);if(t){var i=Br(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Dr(this,n)}}function Dr(e,t){if(t&&("object"===Ar(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Br(e){return(Br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ur=function(e){Lr(n,e);var t=Nr(n);function n(){return Ir(this,n),t.apply(this,arguments)}return Rr(n,[{key:"channelName",get:function(){return P.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[tt,ve,K]}}]),n}(r.a.AppRouter),Mr=function(e){Lr(r,e);var t=Nr(r);function r(){return Ir(this,r),t.apply(this,arguments)}return Rr(r,[{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.PLAYLISTS}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:E.LocationContext.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:P.a.PLAYLISTS,action:A.a.Playlists.PLAYLIST,args:[e.id,gt.a.slugify(e.name)]}},i=e.sort&&Pr.a.getSortTypeFromName(e.sort);n.e(44).then(n.bind(null,2224)).then((function(e){var n=e.PlaylistsView;t.layout.showChildView(ht,s.createElement(n,{getPlaylistAppLink:r,sort:i}))}))}},{key:"playlist",value:function(e,t,r){var i=this,o="string"==typeof t?null==r?void 0:r.classificationId:null==t?void 0:t.classificationId,a=function(e){return{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[e.id,gt.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(3),n.e(4),n.e(18)]).then(n.bind(null,2104)).then((function(t){var n=t.PlaylistView;i.layout.showChildView(ht,s.createElement(n,{key:e,playlistId:e,getSeriesAppLink:a,classificationId:o}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(91)]).then(n.bind(null,2146)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(yt,s.createElement(n,Object.assign({application:P.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(90)]).then(n.bind(null,2147)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(yt,s.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(154).then(n.bind(null,2148)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(yt,s.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(47)]).then(n.bind(null,2225)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(yt,s.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(176).then(n.bind(null,2149)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(yt,s.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"copyPlaylist",value:function(e){var t=this;n.e(175).then(n.bind(null,2150)).then((function(n){var r=n.CopyPlaylistView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Ur}}]),r}(w);function Vr(e){return(Vr="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 Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(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 zr(e,t,n){return t&&Hr(e.prototype,t),n&&Hr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gr(e,t)}function Gr(e,t){return(Gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qr(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kr(e);if(t){var i=Kr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yr(this,n)}}function Yr(e,t){if(t&&("object"===Vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xr=function(e){Wr(n,e);var t=qr(n);function n(){return Fr(this,n),t.apply(this,arguments)}return zr(n,[{key:"channelName",get:function(){return P.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),Qr=function(e){Wr(r,e);var t=qr(r);function r(){return Fr(this,r),t.apply(this,arguments)}return zr(r,[{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.SEARCH}},{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(7),n.e(37)]).then(n.bind(null,2192)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(ht,s.createElement(r,{queryParams:e}),{preventScrollTop:!0})}))}}],[{key:"router",get:function(){return Xr}}]),r}(w);function $r(e){return($r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function ei(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ti(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ni(e,t)}function ni(e,t){return(ni=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ri(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oi(e);if(t){var i=oi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ii(this,n)}}function ii(e,t){if(t&&("object"===$r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oi(e){return(oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ai=function(e){ti(n,e);var t=ri(n);function n(){return Zr(this,n),t.apply(this,arguments)}return ei(n,[{key:"channelName",get:function(){return P.a.SUBJECT}},{key:"appRoutes",get:function(){return{"topics(/)":"classificationAll","topics/onboarding(/)":"onboarding","topics/onboarding/welcome(/)":"onboardingWelcome","topics/onboarding/school-level(/)":"onboardingTopicPresentation","topics/onboarding/curriculum(/)":"onboardingCurriculumPresentation","topics/onboarding/levels(/)":"onboardingLevels","topics/onboarding/topics(/)":"onboardingTopics","topics/onboarding/summary(/)":"onboardingSummary","topics/onboarding/*path":"onboardingCatchAll","topics/:id/topics":"classificationTopics","topics/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),si=function(e){ti(i,e);var t=ri(i);function i(){return Zr(this,i),t.apply(this,arguments)}return ei(i,[{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return P.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!pe.a.shouldHideNav(),alertRegion:C}}}},{key:"classificationAll",value:function(){var e=this;Promise.all([n.e(12),n.e(26)]).then(n.bind(null,2151)).then((function(t){var n=t.ClassificationsView;e.layout.showChildView(_,s.createElement(n,null))}))}},{key:"classificationTopics",value:function(e){var t=this;Promise.all([n.e(12),n.e(26)]).then(n.bind(null,2151)).then((function(n){var r=n.ClassificationsView;t.layout.showChildView(_,s.createElement(r,{id:e}))}))}},{key:"classification",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(7),n.e(12),n.e(41)]).then(n.bind(null,2202)).then((function(t){var n=t.ClassificationView;i.layout.showChildView(_,s.createElement(n,{key:e,id:e,queryParams:r}))}))}},{key:"onboarding",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(110).then(n.bind(null,2152)).then((function(n){var r=n.BaseOnboardingView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingWelcome",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(83).then(n.bind(null,2153)).then((function(n){var r=n.OnboardingWelcomeView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingTopicPresentation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(8),n.e(93)]).then(n.bind(null,2154)).then((function(n){var r=n.OnboardingTopicPresentationSelectorView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingCurriculumPresentation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(8),n.e(92)]).then(n.bind(null,2155)).then((function(n){var r=n.OnboardingCurriculumPresentationSelectorView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingLevels",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(22),n.e(109)]).then(n.bind(null,2156)).then((function(n){var r=n.OnboardingAudiencePreferencesView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingTopics",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(8),n.e(75)]).then(n.bind(null,2157)).then((function(n){var r=n.OnboardingTopicPreferencesView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingSummary",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(8),n.e(52)]).then(n.bind(null,2226)).then((function(n){var r=n.OnboardingSummaryView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingCatchAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a.AppLinkHelper.trigger({application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING,params:e},{replace:!0})}}],[{key:"router",get:function(){return ai}}]),i}(w);function ci(e){return(ci="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 ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(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 fi(e,t,n){return t&&li(e.prototype,t),n&&li(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pi(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&di(e,t)}function di(e,t){return(di=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hi(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mi(e);if(t){var i=mi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){if(t&&("object"===ci(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function mi(e){return(mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vi=function(e){pi(n,e);var t=hi(n);function n(){return ui(this,n),t.apply(this,arguments)}return fi(n,[{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload","uploadImage"]}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),gi=function(e){pi(r,e);var t=hi(r);function r(){return ui(this,r),t.apply(this,arguments)}return fi(r,[{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(105)]).then(n.bind(null,2246)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(S,s.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(181).then(n.bind(null,2158)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(S,s.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return vi}}]),r}(w),bi=n(402),wi=n(63),_i=n(338),Si=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())}))};function Ci(e){if(e.application!==P.a.USER_MANAGER)return!1;var t=Object(_i.a)(wi.a.Unknown);return!!bi.a.getWizardAppLinks(t).find((function(t){return t.action===e.action}))}function Ti(e,t){var n;return Si(this,void 0,void 0,regeneratorRuntime.mark((function a(){var s,c,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(Ci(s=e.appLink)){a.next=4;break}return pe.a.enableNav(),a.abrupt("return",t(e));case 4:return a.next=6,i.a.fetchAsync(e.shell.store,o.a.currentUser());case 6:return c=a.sent,a.next=9,i.a.fetchAsync(e.shell.store,I.a.customerSettings(c.customerId));case 9:if(a.sent.has_bulk_user_actions){a.next=15;break}return u=Object(_i.a)(null===(n=s.params)||void 0===n?void 0:n.userType),r.a.AppLinkHelper.trigger(u.userManager,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return");case 15:pe.a.disableNav(),t(e);case 17:case"end":return a.stop()}}),a)})))}function Ei(e){return(Ei="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 Oi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ki(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 Pi(e,t,n){return t&&ki(e.prototype,t),n&&ki(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ii(e,t)}function Ii(e,t){return(Ii=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xi(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Li(e);if(t){var i=Li(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ri(this,n)}}function Ri(e,t){if(t&&("object"===Ei(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Li(e){return(Li=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ji=function(e){Ai(n,e);var t=xi(n);function n(){return Oi(this,n),t.apply(this,arguments)}return Pi(n,[{key:"channelName",get:function(){return P.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","user-manager/wizard/review-accounts":"wizardReviewAccounts","user-manager/wizard/select-action":"wizardSelectAction","user-manager/wizard/action-details/delete":"wizardDeleteActionDetails","user-manager/wizard/action-details/activation":"wizardActivationActionDetails","user-manager/wizard/action-details/change-year-group":"wizardChangeYearGroupActionDetails","user-manager/wizard/action-details/year-group-rollover":"wizardYearGroupRolloverActionDetails","user-manager/wizard/action-details/add-to-classroom":"wizardAddToClassroomActionDetails","user-manager/wizard/confirmation/reactivation":"wizardReactivationConfirmation","user-manager/wizard/confirmation/deactivation":"wizardDeactivationConfirmation","user-manager/wizard/confirmation/delete":"wizardDeleteConfirmation","user-manager/wizard/confirmation/year-group-rollover":"wizardYearGroupRolloverConfirmation","user-manager/wizard/confirmation/change-year-group":"wizardChangeYearGroupConfirmation","user-manager/wizard/confirmation/add-to-classroom":"wizardAddToClassroomConfirmation","user-manager/wizard/status/polling":"wizardStatusPolling","user-manager/wizard/status/complete":"wizardStatusComplete"}}},{key:"appLinks",get:function(){return["createUser","editUser","bulkRemoveUsers","toggleUserStatus","bulkUserUploadPopup","bulkUserUploadSuccess","changeStudentPassword","exportUserList"]}},{key:"filters",get:function(){return[tt,ve,K,Ze,Ti]}}]),n}(r.a.AppRouter),Ni=function(e){Ai(r,e);var t=xi(r);function r(){return Oi(this,r),t.apply(this,arguments)}return Pi(r,[{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return P.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!pe.a.shouldHideNav(),alertRegion:C}}}},{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(5),n.e(17),n.e(160)]).then(n.bind(null,2247)).then((function(n){var r=n.StudentManagerView;t.layout.showChildView(_,s.createElement(r,{queryParams:e}))}))}},{key:"staffManager",value:function(e){var t=this;Promise.all([n.e(5),n.e(17),n.e(184)]).then(n.bind(null,2248)).then((function(n){var r=n.StaffManagerView;t.layout.showChildView(_,s.createElement(r,{queryParams:e}))}))}},{key:"createUser",value:function(e){var t=this;Promise.all([n.e(1),n.e(5),n.e(11),n.e(121)]).then(n.bind(null,2159)).then((function(n){var r=n.CreateUserView,i={actionType:E.UserAction.Create,entity:E.EntityType.User,workflowPhase:E.WorkflowPhase.Complete,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.Popup};t.layout.showChildView(S,s.createElement(r,{userType:e.userType,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUser",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(5),n.e(11),n.e(122)]).then(n.bind(null,2160)).then((function(n){var i=n.EditUserView,o={actionType:E.UserAction.Edit,entity:E.EntityType.User,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};r.layout.showChildView(S,s.createElement(i,{id:e,userType:t.userType,analyticsOptions:o,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"bulkRemoveUsers",value:function(e){var t=this,r=e.userType;Promise.all([n.e(5),n.e(182)]).then(n.bind(null,2249)).then((function(e){var n=e.BulkRemoveUsersView;t.layout.showChildView(S,s.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]:{};Promise.all([n.e(5),n.e(185)]).then(n.bind(null,2250)).then((function(n){var i=n.ToggleUserStatusView;t.layout.showChildView(S,s.createElement(i,{id:e,userType:r.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"changeStudentPassword",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(28),n.e(183)]).then(n.bind(null,2251)).then((function(n){var r=n.ChangeStudentPasswordView;t.layout.showChildView(S,s.createElement(r,{studentId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"exportUserList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.userType;n.e(137).then(n.bind(null,2252)).then((function(t){var n=t.ExportUserListView;e.layout.showChildView(T,s.createElement(n,{userType:r,onDone:function(){return e.layout.unsetRegion(T)}}))}))}},{key:"bulkUserUploadPopup",value:function(e){var t=this,r=e.userType;Promise.all([n.e(1),n.e(2),n.e(5),n.e(67)]).then(n.bind(null,2193)).then((function(e){var n=e.BulkUserUploadPopupView;t.layout.showChildView(S,s.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadEdit",value:function(){var e=this,t=we.a.get(Se.a.BULK_USER_UPLOAD);Promise.all([n.e(1),n.e(5),n.e(11),n.e(70)]).then(n.bind(null,2213)).then((function(n){var r=n.BulkUserUploadEditView;e.layout.showChildView(_,s.createElement(r,{key:"bulk-user-upload-edit-".concat((new Date).toString()),userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadDuplicates",value:function(){var e=this,t=we.a.get(Se.a.BULK_USER_UPLOAD);Promise.all([n.e(1),n.e(5),n.e(11),n.e(103)]).then(n.bind(null,2210)).then((function(n){var r=n.BulkUserUploadDuplicatesView;e.layout.showChildView(_,s.createElement(r,{userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadReview",value:function(){var e=this,t=we.a.get(Se.a.BULK_USER_UPLOAD);Promise.all([n.e(5),n.e(78)]).then(n.bind(null,2227)).then((function(n){var r=n.BulkUserUploadReviewView;e.layout.showChildView(_,s.createElement(r,{userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadSuccess",value:function(){var e=this,t=we.a.get(Se.a.BULK_USER_UPLOAD);Promise.all([n.e(5),n.e(120)]).then(n.bind(null,2161)).then((function(n){var r=n.BulkUserUploadSuccessView;e.layout.showChildView(_,s.createElement(r,{closePopup:function(){return e.layout.closePopup()},userType:t}))}))}},{key:"wizardReviewAccounts",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(61)]).then(n.bind(null,2228)).then((function(n){var r=n.BulkUserActionsReviewAccountsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardSelectAction",value:function(e){var t=this;Promise.all([n.e(6),n.e(113)]).then(n.bind(null,2214)).then((function(n){var r=n.BulkUserActionsSelectActionView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeleteActionDetails",value:function(e){var t=this;Promise.all([n.e(6),n.e(138)]).then(n.bind(null,2253)).then((function(n){var r=n.BulkUserActionsDeleteActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardActivationActionDetails",value:function(e){var t=this;Promise.all([n.e(6),n.e(111)]).then(n.bind(null,2254)).then((function(n){var r=n.BulkUserActionsActivationActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardChangeYearGroupActionDetails",value:function(e){var t=this;Promise.all([n.e(6),n.e(102)]).then(n.bind(null,2255)).then((function(n){var r=n.BulkUserActionsChangeYearGroupActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardYearGroupRolloverActionDetails",value:function(e){var t=this;Promise.all([n.e(6),n.e(96)]).then(n.bind(null,2256)).then((function(n){var r=n.BulkUserActionsYearGroupRolloverActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardAddToClassroomActionDetails",value:function(e){var t=this;Promise.all([n.e(6),n.e(10),n.e(123)]).then(n.bind(null,2257)).then((function(n){var r=n.BulkUserActionsAddToClassroomActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardReactivationConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(55)]).then(n.bind(null,2258)).then((function(n){var r=n.BulkUserActionsReactivationConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeactivationConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(54)]).then(n.bind(null,2259)).then((function(n){var r=n.BulkUserActionsDeactivationConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeleteConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(58)]).then(n.bind(null,2260)).then((function(n){var r=n.BulkUserActionsDeleteConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardYearGroupRolloverConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(50)]).then(n.bind(null,2261)).then((function(n){var r=n.BulkUserActionsYearGroupRolloverConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardChangeYearGroupConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(48)]).then(n.bind(null,2262)).then((function(n){var r=n.BulkUserActionsChangeYearGroupConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardAddToClassroomConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(46)]).then(n.bind(null,2263)).then((function(n){var r=n.BulkUserActionsAddToClassroomConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardStatusPolling",value:function(e){var t=this;Promise.all([n.e(6),n.e(112)]).then(n.bind(null,2229)).then((function(n){var r=n.BulkUserActionsStatusPollingView;t.layout.showChildView(_,s.createElement(r,Object.assign({},e)))}))}},{key:"wizardStatusComplete",value:function(e){var t=this;Promise.all([n.e(5),n.e(6),n.e(79)]).then(n.bind(null,2203)).then((function(n){var r=n.BulkUserActionsStatusCompleteView;t.layout.showChildView(_,s.createElement(r,Object.assign({},e)))}))}}],[{key:"router",get:function(){return ji}}]),r}(w);function Di(e){return(Di="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 Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(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 Mi(e,t,n){return t&&Ui(e.prototype,t),n&&Ui(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vi(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fi(e,t)}function Fi(e,t){return(Fi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hi(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wi(e);if(t){var i=Wi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(e,t){if(t&&("object"===Di(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gi=function(e){Vi(n,e);var t=Hi(n);function n(){return Bi(this,n),t.apply(this,arguments)}return Mi(n,[{key:"channelName",get:function(){return P.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index","settings/profile(/)":"profileDetails","settings/account(/)":"account","settings/integrations(/)":"integrations","settings/lti(/)":"ltiPlatforms","settings/lti/consumer/:key(/)":"editLtiConsumer","settings/lti/platform/:key(/)":"editLtiPlatform","settings/video-playback(/)":"videoPlayback","settings/preferences/topics(/)":"topicPreferences","settings/preferences/year-groups(/)":"audiencePreferences","settings/preferences/curriculum(/)":"curriculum","settings/preferences/school-level(/)":"schoolLevel","settings/security(/)":"security","settings/content-permissions(/)":"contentPermissions","settings/archived-classrooms(/)":"archivedClassrooms"}}},{key:"appLinks",get:function(){return["createLtiPlatform","deleteLtiPlatform"]}},{key:"filters",get:function(){return[tt,ve,K,Ze]}}]),n}(r.a.AppRouter),qi=function(e){Vi(i,e);var t=Hi(i);function i(){return Bi(this,i),t.apply(this,arguments)}return Mi(i,[{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.SETTINGS}},{key:"index",value:function(){var e=this;n.e(130).then(n.bind(null,2230)).then((function(t){var n=t.SettingsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"profileDetails",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(62)]).then(n.bind(null,2211)).then((function(t){var n=t.ProfileDetailsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"account",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(28),n.e(124)]).then(n.bind(null,2199)).then((function(t){var n=t.AccountSettingsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"integrations",value:function(){var e=this;n.e(72).then(n.bind(null,2231)).then((function(t){var n=t.IntegrationSettingsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"videoPlayback",value:function(){var e=this;Promise.all([n.e(1),n.e(71)]).then(n.bind(null,2204)).then((function(t){var n=t.VideoPlaybackSettingsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"contentPermissions",value:function(){var e=this;Promise.all([n.e(14),n.e(69)]).then(n.bind(null,2232)).then((function(t){var n=t.ContentPermissionsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"ltiPlatforms",value:function(){var e=this;n.e(86).then(n.bind(null,2205)).then((function(t){var n=t.LtiPlatformsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"editLtiPlatform",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(20),n.e(134)]).then(n.bind(null,2215)).then((function(n){var r=n.EditLtiPlatformView;t.layout.showChildView(ht,c.a.createElement(r,{platformId:e}))}))}},{key:"editLtiConsumer",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(20),n.e(133)]).then(n.bind(null,2216)).then((function(n){var r=n.EditLtiConsumerView;t.layout.showChildView(ht,c.a.createElement(r,{consumerKey:e}))}))}},{key:"createLtiPlatform",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(100)]).then(n.bind(null,2264)).then((function(t){var n=t.CreateLtiPlatformView;e.layout.showChildView(yt,c.a.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"deleteLtiPlatform",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.consumerKey,o=t.platformId;i||o?i&&o?r.a.ErrorHelper.throw(new ge.a("AppLink for deleting LTI platforms cannot accept both a consumerKey and platformId")):n.e(159).then(n.bind(null,2162)).then((function(t){var n=t.DeleteLtiPlatformView;e.layout.showChildView(yt,c.a.createElement(n,{closePopup:function(){return e.layout.closePopup()},consumerKey:i,platformId:o}))})):r.a.ErrorHelper.throw(new ge.a("AppLink for deleting LTI platforms requires either a consumerKey or platformId query params"))}},{key:"topicPreferences",value:function(){var e=this;Promise.all([n.e(8),n.e(60)]).then(n.bind(null,2163)).then((function(t){var n=t.TopicPreferencesView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"audiencePreferences",value:function(){var e=this;Promise.all([n.e(22),n.e(104)]).then(n.bind(null,2164)).then((function(t){var n=t.AudiencePreferencesView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"curriculum",value:function(){var e=this;Promise.all([n.e(8),n.e(82)]).then(n.bind(null,2165)).then((function(t){var n=t.CurriculumSelectorView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"schoolLevel",value:function(){var e=this;Promise.all([n.e(8),n.e(84)]).then(n.bind(null,2166)).then((function(t){var n=t.SchoolLevelSelectorView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"security",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(97)]).then(n.bind(null,2217)).then((function(t){var n=t.SecuritySettingsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}},{key:"archivedClassrooms",value:function(){var e=this;Promise.all([n.e(23),n.e(125)]).then(n.bind(null,2233)).then((function(t){var n=t.ArchivedClassroomsView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return Gi}}]),i}(w);function Yi(e){return(Yi="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 Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xi(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 Qi(e,t,n){return t&&Xi(e.prototype,t),n&&Xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $i(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zi(e,t)}function Zi(e,t){return(Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ji(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var i=to(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){if(t&&("object"===Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){$i(n,e);var t=Ji(n);function n(){return Ki(this,n),t.apply(this,arguments)}return Qi(n,[{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),ro=function(e){$i(r,e);var t=Ji(r);function r(){return Ki(this,r),t.apply(this,arguments)}return Qi(r,[{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(64)]).then(n.bind(null,2218)).then((function(t){var n=t.WatchHistoryView;e.layout.showChildView(ht,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return no}}]),r}(w);function io(e){return(io="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 oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ao(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 so(e,t,n){return t&&ao(e.prototype,t),n&&ao(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function co(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uo(e,t)}function uo(e,t){return(uo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lo(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=po(e);if(t){var i=po(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(e,t){if(t&&("object"===io(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function po(e){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ho=function(e){co(n,e);var t=lo(n);function n(){return oo(this,n),t.apply(this,arguments)}return so(n,[{key:"channelName",get:function(){return P.a.SHARE}},{key:"appRoutes",get:function(){return{"share/:id(/)":"viewShareLink"}}},{key:"appLinks",get:function(){return["shareLinkError"]}},{key:"filters",get:function(){return[tt,ve,rr]}}]),n}(r.a.AppRouter),yo=function(e){co(r,e);var t=lo(r);function r(){return oo(this,r),t.apply(this,arguments)}return so(r,[{key:"name",get:function(){return"Share Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!L.a.shouldHideNav(),alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.SHARE}},{key:"viewShareLink",value:function(e,t){var r=this;n.e(177).then(n.bind(null,2265)).then((function(n){var i=n.BaseShareLinkView;r.layout.showChildView(ht,s.createElement(i,{key:"".concat(e,":").concat(_e.LocationUtils.SerializeQueryParams(t)),shareId:e,queryParams:t}))}))}},{key:"shareLinkError",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(178).then(n.bind(null,2167)).then((function(n){var r=n.ShareLinkErrorView;e.layout.showChildView(ht,s.createElement(r,{error:t}))}))}}],[{key:"router",get:function(){return ho}}]),r}(w);function mo(e){return(mo="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 vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function go(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 bo(e,t,n){return t&&go(e.prototype,t),n&&go(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wo(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_o(e,t)}function _o(e,t){return(_o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function So(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=To(e);if(t){var i=To(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Co(this,n)}}function Co(e,t){if(t&&("object"===mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function To(e){return(To=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Eo=function(e){wo(n,e);var t=So(n);function n(){return vo(this,n),t.apply(this,arguments)}return bo(n,[{key:"channelName",get:function(){return P.a.INTERACTIVES}},{key:"appRoutes",get:function(){return{"interactive/:id/edit":"editInteractive","interactive/:id(/:slug)":"interactive"}}},{key:"appLinks",get:function(){return["editInteractiveDetails","previewQuestions","printQuestions","copyInteractive","newInteractive","newClipInteractive","unpublishInteractive","shareInteractive","deleteInteractive"]}},{key:"filters",get:function(){return[tt,ve,K,Ze]}}]),n}(r.a.AppRouter),Oo=function(e){wo(r,e);var t=So(r);function r(){return vo(this,r),t.apply(this,arguments)}return bo(r,[{key:"name",get:function(){return"Interactives Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"channelName",get:function(){return P.a.INTERACTIVES}},{key:"interactive",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=("string"==typeof t?i:t)||{};Promise.all([n.e(9),n.e(0),n.e(3),n.e(4),n.e(34)]).then(n.bind(null,2168)).then((function(t){var n=t.InteractiveView;r.layout.showChildView(ht,s.createElement(n,{id:e,queryParams:o}))}))}},{key:"newInteractive",value:function(e){var t=this;n.e(126).then(n.bind(null,2169)).then((function(n){var r=n.NewInteractiveView;t.layout.showChildView(yt,s.createElement(r,{videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newClipInteractive",value:function(e){var t=this;n.e(131).then(n.bind(null,2266)).then((function(n){var r=n.NewClipInteractiveView;t.layout.showChildView(yt,s.createElement(r,{clipId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editInteractive",value:function(e){var t=this;Promise.all([n.e(9),n.e(16),n.e(68)]).then(n.bind(null,2219)).then((function(n){var r=n.EditInteractiveView;t.layout.showChildView(ht,s.createElement(r,{id:e}))}))}},{key:"editInteractiveDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(87)]).then(n.bind(null,2267)).then((function(n){var i=n.EditInteractiveDetailsView;r.layout.showChildView(yt,s.createElement(i,{interactiveMetadataId:e,publish:!!t.publish,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"previewQuestions",value:function(e){var t=this;Promise.all([n.e(15),n.e(63)]).then(n.bind(null,2170)).then((function(n){var r=n.PreviewQuestionsView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"printQuestions",value:function(e){var t=this;Promise.all([n.e(15),n.e(132)]).then(n.bind(null,2171)).then((function(n){var r=n.PrintInteractiveView;t.layout.showChildView(yt,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"copyInteractive",value:function(e,t){var r=this;n.e(142).then(n.bind(null,2172)).then((function(n){var i=n.CopyInteractiveView;r.layout.showChildView(yt,s.createElement(i,{interactiveMetadataId:e,closePopup:function(){return r.layout.closePopup()},fromEdit:t.fromEdit}))}))}},{key:"shareInteractive",value:function(e){var t=this;n.e(157).then(n.bind(null,2173)).then((function(n){var r=n.ShareInteractiveView;t.layout.showChildView(yt,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"unpublishInteractive",value:function(e){var t=this;n.e(158).then(n.bind(null,2174)).then((function(n){var r=n.UnpublishInteractiveView;t.layout.showChildView(yt,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteInteractive",value:function(e){var t=this;n.e(156).then(n.bind(null,2175)).then((function(n){var r=n.DeleteInteractiveView;t.layout.showChildView(yt,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Eo}}]),r}(w);function ko(e){return(ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ao(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 Io(e,t,n){return t&&Ao(e.prototype,t),n&&Ao(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xo(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}function Ro(e,t){return(Ro=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lo(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=No(e);if(t){var i=No(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jo(this,n)}}function jo(e,t){if(t&&("object"===ko(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Do=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())}))},Bo=function(e){xo(n,e);var t=Lo(n);function n(){return Po(this,n),t.apply(this,arguments)}return Io(n,[{key:"channelName",get:function(){return P.a.LAUNCHPAD}},{key:"appRoutes",get:function(){return{join:"joinClassroomPrompt","join/:code(/)":"joinClassroom"}}},{key:"appLinks",get:function(){return["passwordProtectedShareLink","shareLinkSignIn","loginLanding"]}},{key:"filters",get:function(){return[tt]}}]),n}(r.a.AppRouter),Uo=function(e){xo(i,e);var t=Lo(i);function i(){return Po(this,i),t.apply(this,arguments)}return Io(i,[{key:"name",get:function(){return"Launchpad Application"}},{key:"layoutOptions",get:function(){return{name:k}}},{key:"channelName",get:function(){return P.a.LAUNCHPAD}},{key:"passwordProtectedShareLink",value:function(e,t){return Do(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.e(119).then(n.bind(null,2176));case 2:if(o=i.sent,a=o.PasswordProtectedShareLinkView,null==t?void 0:t.appLink){i.next=7;break}return r.a.ErrorHelper.throw(new ge.a("PasswordProtectedShareLinkView must be passed an appLink as a param")),i.abrupt("return");case 7:this.layout.showChildView(ht,s.createElement(a,{shareId:e,appLink:t.appLink}));case 8:case"end":return i.stop()}}),i,this)})))}},{key:"shareLinkSignIn",value:function(e,t){return Do(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(118).then(n.bind(null,2177));case 2:i=r.sent,o=i.ShareLinkSignIn,this.layout.showChildView(ht,s.createElement(o,{shareId:e,redirectUrl:t.redirectUrl,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"joinClassroomPrompt",value:function(){return Do(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(108).then(n.bind(null,2268));case 2:t=e.sent,r=t.JoinClassroomPromptView,this.layout.showChildView(ht,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"joinClassroom",value:function(e){return Do(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(128).then(n.bind(null,2269));case 2:r=t.sent,i=r.JoinClassroomView,this.layout.showChildView(ht,s.createElement(i,{joinCode:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"loginLanding",value:function(e){return Do(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(129).then(n.bind(null,2178));case 2:r=t.sent,i=r.LoginLandingView,this.layout.showChildView(ht,s.createElement(i,{skipPrompt:e.skipPrompt,showJoinCode:e.showJoinCode,customerId:e.customerId}));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"router",get:function(){return Bo}}]),i}(w),Mo=n(426);function Vo(e){return(Vo="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 Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ho(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 zo(e,t,n){return t&&Ho(e.prototype,t),n&&Ho(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wo(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Go(e,t)}function Go(e,t){return(Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qo(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ko(e);if(t){var i=Ko(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yo(this,n)}}function Yo(e,t){if(t&&("object"===Vo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ko(e){return(Ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xo=function(e){Wo(n,e);var t=qo(n);function n(){return Fo(this,n),t.apply(this,arguments)}return zo(n,[{key:"channelName",get:function(){return P.a.LIBRARIES}},{key:"appRoutes",get:function(){return{"libraries/:id/recently-added":"recentlyAdded","libraries/:id(/:slug)":"library","libraries/:id/folders/:id(/:slug)":"folder"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),Qo=function(e){Wo(r,e);var t=qo(r);function r(){return Fo(this,r),t.apply(this,arguments)}return zo(r,[{key:"name",get:function(){return"Libraries Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"channelName",get:function(){return P.a.LIBRARIES}},{key:"library",value:function(e){var t=this;Promise.all([n.e(0),n.e(7),n.e(56)]).then(n.bind(null,2179)).then((function(n){var r=n.LibraryView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"recentlyAdded",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(57)]).then(n.bind(null,2180)).then((function(n){var r=n.RecentlyAddedView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"folder",value:function(e,t,r,i){var o=this,a="string"==typeof r?null==i?void 0:i.sort:null==r?void 0:r.sort,s=a&&Mo.a.getValidSortTypeFromParam(a);Promise.all([n.e(0),n.e(3),n.e(4),n.e(49)]).then(n.bind(null,2234)).then((function(n){var r=n.LibraryFolderView;o.layout.showChildView(_,c.a.createElement(r,{libraryId:e,folderId:t,sort:s}))}))}}],[{key:"router",get:function(){return Xo}}]),r}(w);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 Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ea(e,t,n){return t&&Jo(e.prototype,t),n&&Jo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ta(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&na(e,t)}function na(e,t){return(na=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ra(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(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){if(t&&("object"===$o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oa(e){return(oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var aa=function(e){ta(n,e);var t=ra(n);function n(){return Zo(this,n),t.apply(this,arguments)}return ea(n,[{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"discover(/)":"index","discover/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),sa=function(e){ta(r,e);var t=ra(r);function r(){return Zo(this,r),t.apply(this,arguments)}return ea(r,[{key:"name",get:function(){return"Student Discover Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(7),n.e(24)]).then(n.bind(null,2194)).then((function(t){var n=t.DashboardView;e.layout.showChildView(ht,s.createElement(n,null))}))}},{key:"dashboard",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(25)]).then(n.bind(null,2235)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(ht,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return aa}}]),r}(w);function ca(e){return(ca="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 ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(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 fa(e,t,n){return t&&la(e.prototype,t),n&&la(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pa(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&da(e,t)}function da(e,t){return(da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ha(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ma(e);if(t){var i=ma(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){if(t&&("object"===ca(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ma(e){return(ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var va=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())}))},ga=function(e){pa(n,e);var t=ha(n);function n(){return ua(this,n),t.apply(this,arguments)}return fa(n,[{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"appRoutes",get:function(){return{"(/)":"index"}}},{key:"filters",get:function(){return[tt,ve,K]}}]),n}(r.a.AppRouter),ba=function(e){pa(r,e);var t=ha(r);function r(){return ua(this,r),t.apply(this,arguments)}return fa(r,[{key:"name",get:function(){return"Student Feed Application"}},{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:mt}}}},{key:"index",value:function(e){return va(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(0),n.e(3),n.e(7),n.e(51)]).then(n.bind(null,2191));case 2:r=t.sent,i=r.StudentFeedView,this.layout.showChildView(ht,s.createElement(i,{date:e.date,key:e.date}));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"router",get:function(){return ga}}]),r}(w);var wa,_a=n(5);!function(e){e.Fifo="FifoMemoryCache"}(wa||(wa={}));var Sa=n(105),Ca=n(18);function Ta(e){return(Ta="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 Ea(e){return function(e){if(Array.isArray(e))return Oa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oa(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 Oa(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 Oa(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 ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Aa(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xa(e);if(t){var i=xa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ia(this,n)}}function Ia(e,t){if(t&&("object"===Ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xa(e){return(xa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ra=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pa(e,t)}(o,e);var t,n,r,i=Aa(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=o,(n=[{key:"name",get:function(){return wa.Fifo}},{key:"removeCacheKey",value:function(e){this.cachedkeys=_a.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||Ca.c.throw(new ge.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=_a.object(this.cachedkeys,this.cachedkeys),i=[];_a.each(e,(function(e){var t;r[e]&&i.push(e);var n=new RegExp(e,"i"),o=_a.filter(r,(function(e){return n.test(e)}));(t=i).push.apply(t,Ea(o))})),i.length&&(i=_a.uniq(i),_a.each(i,(function(e){delete n.cache[e],_a.isFunction(t)&&t(e)})),this.cachedkeys=_a.without.apply(_a,[this.cachedkeys].concat(Ea(i))))}}])&&ka(t.prototype,n),r&&ka(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Sa.a);var La,ja=n(73),Na=n(228),Da=n(15),Ba=n(177);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(La||(La={}));var Ua=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function Ma(e){return(Ma="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 Va(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 Fa(e,t){return(Fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ha(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var i=Wa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return za(this,n)}}function za(e,t){if(t&&("object"===Ma(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ga=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fa(e,t)}(o,e);var t,n,r,i=Ha(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=o,(n=[{key:"name",get:function(){return La.Ajax}},{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=Da.a.GET);var i=_a.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===Da.a.POST||n===Da.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);var a=$.ajax(o);return _a.keys(this.successMiddleware).length&&a.done(_a.values(this.successMiddleware)),_a.keys(this.errorMiddleware).length&&a.fail(_a.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,Da.a.POST).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,Da.a.GET).done((function(e,t,i){n.trigger(r,e,t,i)})).fail((function(e,t,r){n.trigger(i,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,Da.a.PUT).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,Da.a.DELETE).done((function(e,t,i){return n.trigger(r,e,t,i)})).fail((function(e,t,r){return n.trigger(i,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=Na.a;switch(n.code=e.status,n.message=Ua(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=Ba.a.BadRequest;break;case 401:n.type=Ba.a.Unauthorized;break;case 403:n.type=Ba.a.Forbidden;break;case 404:n.type=Ba.a.NotFound;break;case 500:n.type=Ba.a.InternalServer}return n}}])&&Va(t.prototype,n),r&&Va(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ja.Object);var qa=n(79),Ya=n(96);function Ka(e){return(Ka="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 Xa(e){return function(e){if(Array.isArray(e))return Qa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qa(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 Qa(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 Qa(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 $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 Za(e,t){return(Za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ja(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ns(e);if(t){var i=ns(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return es(this,n)}}function es(e,t){if(t&&("object"===Ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ts(e)}function ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ns(e){return(ns=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rs=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Za(e,t)}(o,e);var t,n,r,i=Ja(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),_a.result(ts(t),"name")||Ca.c.throw(new ge.a("Must provide a name when extending BaseDataService")),_a.result(ts(t),"channelName")||Ca.c.throw(new ge.a("Must provide a channelName for ".concat(_a.result(ts(t),"name"))));var n=[].concat(Xa(t.defaultProps),Xa(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=o,(n=[{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}},{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=this.getEventNames(i),a=o.syncEvent,s=o.errorEvent,c=this.cache.get(i);if(c&&c.openRequest)return this.listenToOnce(this.getChannel(),a,(function(e){_a.isFunction(r)&&t.stopListening(t.getChannel(),s,r),_a.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),s,(function(){_a.isFunction(n)&&t.stopListening(t.getChannel(),a,n),_a.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=e.resource,a=e.formatData,s=e.expiryTime,c=e.successHandler,u=e.errorHandler,l=e.bootstrapName,f=this.getEventNames(i),p=f.syncEvent,d=f.requestEvent,h=f.successEvent,y=f.errorEvent,m=this.getChannel(),v=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(i,this.bootstrapData[l],a,{openRequest:!1,timestamp:v}),delete this.bootstrapData[l]);var g,b=this.cache.get(i);b&&(g=b.data);var w=b&&b.openRequest,_=this.isExpired(i,s);if(w&&(this.listenToOnce(m,p,(function(e){_a.isFunction(r)&&t.stopListening(t.getChannel(),y,r),_a.isFunction(n)&&n(e)})),this.listenToOnce(m,y,(function(){_a.isFunction(n)&&t.stopListening(t.getChannel(),p,n),_a.isFunction(r)&&r()}))),this.cache.has(i)&&!_||(m.trigger(d),this.listenToResponse({eventPrefix:i,formatData:a,cacheOptions:{timestamp:v},callback:n,errorCallback:r,successHandler:c,errorHandler:u}),this.cacheData(i,null,null,{openRequest:!0,timestamp:v}),this.dataProvider.read(o,{channel:this.getTransportChannel(),successEvent:h,errorEvent:y})),g&&_a.isFunction(n)&&!_&&n(g),g)return g}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,i=e.formatData,o=e.callback,a=e.errorCallback,s=e.invalidationKeys,c=e.successHandler,u=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:o,errorCallback:a,successHandler:c,errorHandler:u}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:d})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,i=e.resource,o=e.formatData,a=e.eventPrefix,s=e.invalidationKeys,c=e.errorHandler,u=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:a,formatData:o,invalidationKeys:s,callback:n,errorCallback:r,successHandler:u,errorHandler:c}),this.dataProvider.update(i,t,{channel:y,successEvent:p,errorEvent:d})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,i=e.errorCallback,o=e.invalidationKeys,a=e.successHandler,s=e.errorHandler,c=this.getEventNames(t),u=c.successEvent,l=c.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:o,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:s}),this.dataProvider.delete(n,{channel:f,successEvent:u,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,r=e.formatData,i=e.callback,o=e.errorCallback,a=e.successHandler,s=e.errorHandler,c=e.invalidationKeys,u=e.cacheOptions,l=void 0===u?{}:u,f=this.getEventNames(n),p=f.syncEvent,d=f.successEvent,h=f.errorEvent,y=f.successAlertEvent,m=f.errorAlertEvent,v=this.getChannel(),g=this.getTransportChannel(),b=this.getAlertChannel();_a.isFunction(i)&&this.listenToOnce(v,p,i),_a.isFunction(o)&&this.listenToOnce(v,h,o),this.stopListening(b,y),this.stopListening(b,m),_a.isFunction(a)&&this.listenToOnce(b,y,a),_a.isFunction(s)&&this.listenToOnce(b,m,s),!_a.isFunction(s)&&!1!==s&&_a.isFunction(this.defaultErrorHandler)&&this.listenToOnce(b,m,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,d,(function(e){t.stopListening(v,h,o);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];b.trigger.apply(b,[y,e].concat(a));var u=l.noCache?t.formatData(e,r):t.cacheData(n,e,r);l.clearCacheKey&&t.cache.remove(n),v.trigger(p,u),c&&c.length&&t.cache.invalidate(c,(function(e){return v.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,h,(function(){var e;t.stopListening(v,p,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);b.trigger(m,r),v.trigger(h,r),l.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.openRequest,o=void 0!==i&&i,a=r.timestamp;a||(a=this.currentTimestamp());var s=this.processPagination(t),c=this.formatData(t,n);return this.cache.set(e,{data:c,timestamp:a,cursors:s,openRequest:o}),c}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:_a.isUndefined(t.offset)||_a.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return _a.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){_a.isFunction(e)&&e(t)},r=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return u.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return u.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,r=e.totalItems,i=r>0&&t<r&&t+n,o=r>0&&t>0&&Math.max(t-n,0),a={};if(i&&i<r&&(a.next=i.toString()),_a.isNumber(o)&&(a.previous=o.toString()),!_a.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=_a.isNumber(t)&&t>0&&t<n&&t+1,i=_a.isNumber(t)&&t>1&&t-1,o={};if(r&&r<=n&&(o.next=r.toString()),i&&(o.previous=i.toString()),!_a.isEmpty(o))return o}}])&&$a(t.prototype,n),r&&$a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Sa.a),is=n(40),os=n(114),as=n(74),ss=n(55),cs=n(234);function us(e){return(us="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 ls(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fs(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 ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ys(e);if(t){var i=ys(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hs(this,n)}}function hs(e,t){if(t&&("object"===us(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ys(e){return(ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ms=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ps(e,t)}(o,e);var t,n,r,i=ds(o);function o(){return ls(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return is.a.Language}},{key:"channelName",get:function(){return ss.b.LANGUAGE}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:as.a.LOCALE,expiryTime:os.a.STANDARD,bootstrapName:cs.a.LOCALE,callback:function(n){t.locale=n,t.phrases&&_a.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:as.a.PHRASES,expiryTime:os.a.STANDARD,bootstrapName:cs.a.PHRASES,callback:function(n){t.phrases=n,t.locale&&_a.isFunction(e)&&e(t)}})}}])&&fs(t.prototype,n),r&&fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(rs);function vs(e){return(vs="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 gs(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 bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ws(e,t){return(ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _s(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cs(e);if(t){var i=Cs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(e,t){if(t&&("object"===vs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cs(e){return(Cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ts=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ws(e,t)}(o,e);var t,n,r,i=_s(o);function o(){return bs(this,o),i.apply(this,arguments)}return t=o,n&&gs(t.prototype,n),r&&gs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(r.a.Model);function Es(e){return(Es="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 Os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(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 Ps(e,t){return(Ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function As(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xs(e);if(t){var i=xs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Is(this,n)}}function Is(e,t){if(t&&("object"===Es(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xs(e){return(xs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rs=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ps(e,t)}(o,e);var t,n,r,i=As(o);function o(){return Os(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return is.a.NotificationSocket}},{key:"channelName",get:function(){return ss.b.NOTIFICATIONS_SOCKET}},{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new Ts(e)},resource:"notify",eventPrefix:"".concat(as.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(as.a.NOTIFICATIONS,":count")})}}])&&ks(t.prototype,n),r&&ks(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(rs),Ls=n(68),js=n(23),Ns=n(178);function Ds(e){return(Ds="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 Bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Us(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 Ms(e,t){return(Ms=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vs(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hs(e);if(t){var i=Hs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Fs(this,n)}}function Fs(e,t){if(t&&("object"===Ds(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hs(e){return(Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zs=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ms(e,t)}(o,e);var t,n,r,i=Vs(o);function o(){return Bs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"model",get:function(){return Ts}},{key:"parse",value:function(e){return e.data||e}}])&&Us(t.prototype,n),r&&Us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Collection);function Ws(e){return(Ws="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 Gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qs(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 Ys(e,t){return(Ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ks(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qs(e);if(t){var i=Qs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xs(this,n)}}function Xs(e,t){if(t&&("object"===Ws(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qs(e){return(Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $s=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,i=t.cursor,o=t.before,a=[],s=js.a.buildFilter({limit:r,before:o});return s&&a.push("filter=".concat(s)),i&&a.push("cursor=".concat(i)),a.length?"".concat(n,"&").concat(a.join("&")):n},Zs=function(e){return"/api/notifications/v1/notifications/".concat(e)},Js="/api/notifications/v1/notifications",ec="/api/domain/v1/notifications",tc=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(o,e);var t,n,r,i=Ks(o);function o(){return Gs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return is.a.Notification}},{key:"channelName",get:function(){return ss.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}},{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:$s(e,t),expiryTime:os.a.STANDARD,eventPrefix:n,formatData:function(e){return new zs(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Ns.a.Read},resource:Zs(e),eventPrefix:"".concat(as.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Ls().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Ns.a.Seen},resource:"".concat(Js,"?to=").concat(t,"¬ificationStatus=").concat(Ns.a.Received),eventPrefix:"".concat(as.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(ec),eventPrefix:"".concat(as.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(ne.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}])&&qs(t.prototype,n),r&&qs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(rs),nc=n(264),rc=n(21),ic=n(62),oc=n(56),ac=n(150),sc=n.n(ac);function cc(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,o=t.message,a=t.heading,c=t.appLink,u=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l;return s.createElement(s.Fragment,null,s.createElement("div",{className:"d-inline-block ".concat(sc.a.icon)},s.createElement(ic.a,{svgName:n,className:"svg-container ".concat(r)})),s.createElement("div",{className:"pl-2 d-inline-block ".concat(sc.a.alertContent)},s.createElement("p",{className:"p-0 m-0 pb-1 ".concat(sc.a.heading)},a),s.createElement("p",{className:"p-0 text-break clamp-4 ".concat(sc.a.message),dangerouslySetInnerHTML:{__html:o}}),!!c&&s.createElement(oc.a,{className:f,appLink:c},u)),s.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function uc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return lc(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 lc(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 lc(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 fc=function(e){switch(e.type){case qa.a.Success:return rc.b.CheckCircleOutline;case qa.a.Fail:case qa.a.Warning:return rc.b.Warning;case qa.a.Info:default:return rc.b.Info}};function pc(e){var t=e.alert,n=e.closeAlert,r=uc(s.useState(!0),2),i=r[0],o=r[1],a=s.useRef();s.useEffect((function(){i?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[i]);var c="text-".concat(t.type.toLowerCase());return s.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(sc.a.alertItem),onMouseEnter:function(){return o(!1)},onMouseLeave:function(){return o(!0)}},s.createElement(cc,{alert:t,svgName:fc(t),svgClassName:c,closeAlert:n}))}function dc(e){var t=e.alerts,n=e.removeAlert;return s.createElement("div",{className:sc.a.alertBox},s.createElement(nc.TransitionGroup,{component:"ul",className:"".concat(sc.a.alertList," list-unstyled")},t&&t.map((function(e,t){return s.createElement(nc.CSSTransition,{key:t,timeout:200,classNames:"alert"},s.createElement(pc,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}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 yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mc(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 vc(e,t){return(vc=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wc(e);if(t){var i=wc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bc(this,n)}}function bc(e,t){if(t&&("object"===hc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wc(e){return(wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _c=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vc(e,t)}(o,e);var t,n,r,i=gc(o);function o(){return yc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return is.a.User}},{key:"channelName",get:function(){return ss.b.USER}},{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:as.a.CURRENT_USER,expiryTime:os.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:as.a.WORKSPACE,expiryTime:os.a.STANDARD,callback:e,errorCallback:t})}}])&&mc(t.prototype,n),r&&mc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(rs),Sc=(is.a.User,ss.b.USER,is.a.User,"".concat(as.a.CURRENT_USER,":sync"),n(247)),Cc=n(22);function Tc(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 Ec=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Cc.a.SERIES),key:"series:".concat(e),success:t}},Oc=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,o;return t=e,(n=[{key:"name",get:function(){return is.a.Series}},{key:"channelName",get:function(){return ss.b.SERIES}},{key:"getSeries",value:function(e,t){var n=Ec(e,(function(e){return t&&t(new r.a.Model(e))})),o=i.a.getResponse(this.store.getState(),n.key);o.shouldFetch&&i.a.fetch(this.store.dispatch,n);var a=o.data?new r.a.Model(o.data):null;return t&&a&&t(a),a}}])&&Tc(t.prototype,n),o&&Tc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),kc=n(46);function Pc(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 Ac=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:"name",get:function(){return kc.a.FlightUser}},{key:"getCurrentUser",value:function(e,t){i.a.hooklessFetch(this.store,o.a.currentUser(e,t))}},{key:"getToken",value:function(e,t){i.a.hooklessFetch(this.store,o.a.token(e,t))}},{key:"getWorkspace",value:function(e,t){i.a.hooklessFetch(this.store,o.a.workspace(e,t))}},{key:"getPermissions",value:function(e,t){i.a.hooklessFetch(this.store,o.a.permissions(e,t))}}])&&Pc(t.prototype,n),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ic(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 xc=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:"name",get:function(){return kc.a.FlightConfig}},{key:"getConfig",value:function(e,t){i.a.hooklessFetch(this.store,fe.a.config(e,t))}},{key:"getVersion",value:function(e,t){i.a.hooklessFetch(this.store,fe.a.version(e,t))}}])&&Ic(t.prototype,n),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rc(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 Lc=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:"name",get:function(){return kc.a.FlightShare}},{key:"getShareLink",value:function(e,t,n){i.a.hooklessFetch(this.store,un.a.getShareObject(e,t,n))}}])&&Rc(t.prototype,n),r&&Rc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jc(e){return("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 Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dc(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bc(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mc(e);if(t){var i=Mc(this).constructor;Reflect.construct(r,arguments,i)}else r.apply(this,arguments);return Uc(this,n)}}function Uc(e,t){if(t&&("object"===jc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mc(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ca.a;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 Fc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hc(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 zc(e,t){return(zc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wc(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qc(e);if(t){var i=qc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gc(this,n)}}function Gc(e,t){if(t&&("object"===Vc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qc(e){return(qc=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zc(e,t)}(o,e);var t,n,r,i=Wc(o);function o(){return Fc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return"AlertError"}}])&&Hc(t.prototype,n),r&&Hc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.SilentError),Kc=n(118),Xc=n(391),Qc=n(392),$c=n(420),Zc=n(399),Jc=n(570),eu=n(571);function tu(e){Ce.a.getInstance(Ya.a.ALERT).createAlert({heading:Sc.a.Fail,type:qa.a.Fail,message:e.message})}function nu(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.NOT_FOUND})}function ru(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.ERROR})}function iu(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.DIALOG_ERROR})}function ou(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR})}function au(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR})}var su=n(99),cu=n(77);function uu(e){return(uu="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 lu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fu(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 pu(e,t){return(pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function du(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yu(e);if(t){var i=yu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){if(t&&("object"===uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yu(e){return(yu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mu=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pu(e,t)}(o,e);var t,n,r,i=du(o);function o(){return lu(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"isReactComponent",value:function(e){return s&&s.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),su.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return su.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return su.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return s.createElement(cu.Provider,{store:this.options.store},e)}}])&&fu(t.prototype,n),r&&fu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(319).a),vu=n(572),gu=n(165),bu=n(82),wu=n(205),_u=n(322),Su=n(29);var Cu=n(212),Tu=n(43),Eu=n(421),Ou=n(400),ku=n(341);function Pu(e){return(Pu="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 Au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xu(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lu(e);if(t){var i=Lu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ru(this,n)}}function Ru(e,t){if(t&&("object"===Pu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lu(e){return(Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ju=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iu(e,t)}(a,e);var t,n,i,o=xu(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).currentErrorHandled=!1,t.state={error:null},t}return t=a,i=[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}],(n=[{key:"componentDidCatch",value:function(e,t){var n=this;this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(e.message,{errorInfo:t}),this.props.throwError&&(r.a.ErrorHelper.throw(new this.props.throwError(e.message)),window.setTimeout((function(){n.currentErrorHandled=!1,n.setState({error:null})}),500)))}},{key:"render",value:function(){var e=this.state.error;if(e&&this.props.renderError){var t=this.props.renderError;return c.a.createElement(t,null)}return e||!this.props.children?c.a.createElement(c.a.Fragment,null):this.props.children}}])&&Au(t.prototype,n),i&&Au(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.a.Component);function Nu(e){return(Nu="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 Du(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 Bu(e,t){return(Bu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uu(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vu(e);if(t){var i=Vu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Mu(this,n)}}function Mu(e,t){if(t&&("object"===Nu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vu(e){return(Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fu=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bu(e,t)}(o,e);var t,n,r,i=Uu(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,"Unspecified dialog error")).btnVariant="dark",e}return t=o,(n=[{key:"name",get:function(){return"UnspecifiedDialogError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.unspecifiedDialogError","title"),text:ne.a.getPhrase("shared.unspecifiedDialogError","body"),buttons:[{text:ne.a.getPhrase("shared.unspecifiedDialogError","close"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}}])&&Du(t.prototype,n),r&&Du(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Kc.a),Hu=n(113),zu=n(785),Wu=n.n(zu),Gu=n(331),qu=n.n(Gu);function Yu(e){return(Yu="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 Ku(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 Xu(e,t){return(Xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qu(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zu(e);if(t){var i=Zu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $u(this,n)}}function $u(e,t){if(t&&("object"===Yu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Zu(e){return(Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ju=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xu(e,t)}(o,e);var t,n,r,i=Qu(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(qu.a.notificationIcon," ").concat(qu.a[this.options.color])}},{key:"template",get:function(){return Wu.a}},{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:qu.a,svg:rc.a.getSvg(rc.b.Bell),unreadCount:this.model.get("unreadCount")}}}])&&Ku(t.prototype,n),r&&Ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Component),el=n(323),tl=n(574),nl=n(777),rl=n(789),il=n.n(rl),ol=n(583),al=n.n(ol),sl=n(584),cl=n.n(sl);function ul(e){return(ul="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 ll(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 fl(e,t){return(fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pl(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hl(e);if(t){var i=hl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dl(this,n)}}function dl(e,t){if(t&&("object"===ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function hl(e){return(hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yl=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fl(e,t)}(o,e);var t,n,r,i=pl(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return il.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:tl.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:al.a,className:"px-1 py-2",viewOptions:{styles:cl.a}}}}}}}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}},{key:"initialize",value:function(){this.notificationService=Ce.a.getInstance(is.b.Notification,this),this.appVariables=Ce.a.getInstance(Hu.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new nl.a({collectionPrefix:as.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new el.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}}])&&ll(t.prototype,n),r&&ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),ml=n(790),vl=n.n(ml),gl=n(378),bl=n.n(gl);function wl(e){return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sl(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 Cl(e,t){return(Cl=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ol(e);if(t){var i=Ol(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return El(this,n)}}function El(e,t){if(t&&("object"===wl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ol(e){return(Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kl=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cl(e,t)}(o,e);var t,n,r,i=Tl(o);function o(){return _l(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){this.appVariables=Ce.a.getInstance(Hu.a.NOTIFICATIONS)}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative ".concat(bl.a.noPopoverArrow)}},{key:"template",get:function(){return vl.a}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new yl({childType:el.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=Ce.a.getInstance(is.b.Notification),t=new Ju({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return bl.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}}])&&Sl(t.prototype,n),r&&Sl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),Pl=n(242),Al=n(92),Il=n(129),xl=n(91),Rl=n(33),Ll=n(388),jl=n(274),Nl=n(409),Dl=n(146);function Bl(e){return function(e){if(Array.isArray(e))return Ul(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ul(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ul(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ml=ne.a.encloseNamespace("shared.userOptions");var Vl=n(48);function Fl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hl(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 Hl(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 Hl(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 zl(e){var t,n=Fl(s.useState(!1),2),r=n[0],i=n[1];function o(e){e.stopPropagation(),i(!r)}function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(t),n!==e.currentCustomerId&&_e.LocationUtils.PageLoad(c(n))}function c(e){return e?"/change-customer?customerId=".concat(e):"/change-customer"}return s.useEffect((function(){e.isParentOpen||i(!1)}),[e.isParentOpen]),(null===(t=e.customers)||void 0===t?void 0:t.length)&&e.currentCustomerId?e.customers.length<=1?s.createElement(s.Fragment,null):e.customers.length>4?s.createElement(Rl.Dropdown.Item,{as:"li",onClick:function(e){return a(e)}},s.createElement("div",{className:"d-flex justify-content-between"},s.createElement(Vl.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement(ic.a,{svgName:rc.b.House,className:"svg-container text-muted"}))):s.createElement("li",{className:"dropdown-item dropleft",onClick:o},s.createElement("div",{className:"d-flex justify-content-between"},s.createElement(Vl.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement(ic.a,{svgName:rc.b.House,className:"svg-container text-muted"})),s.createElement("ul",{className:"dropdown-menu ".concat(r?"show":"")},e.customers.map((function(t,n){var r=t.id===e.currentCustomerId;return s.createElement(Rl.Dropdown.Item,{key:n,as:"li",onClick:function(e){return a(e,t.id)},disabled:r},t.name)})))):s.createElement(s.Fragment,null)}var Wl=n(379),Gl=n.n(Wl);function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yl(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 Yl(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 Yl(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 Kl=ne.a.encloseNamespace("shared.userOptions");function Xl(e){var t=e.item;if(t.appLink)return s.createElement(Rl.Dropdown.Item,{as:oc.a,appLink:t.appLink,openInNewTab:t.openInNewTab,className:"d-flex justify-content-between",analyticsData:t.analyticsData,analyticsOptions:t.analyticsOptions},t.label,!!t.openInNewTab&&s.createElement(ic.a,{svgName:rc.b.NewWindow,className:"svg-container text-muted"}));if(t.url){return s.createElement(Rl.Dropdown.Item,{as:"a",href:t.url,target:!1===t.openInNewTab?null:"_blank",className:"d-flex justify-content-between",onClick:function(e){e.preventDefault(),t.analyticsData&&t.analyticsOptions&&Su.a.logUserAction(Object.assign({href:t.url},t.analyticsData),t.analyticsOptions),_e.LocationUtils.PageLoad(t.url,!0)}},t.label,!1!==t.openInNewTab&&s.createElement(ic.a,{svgName:rc.b.NewWindow,className:"svg-container text-muted"}))}return s.createElement(s.Fragment,null)}function Ql(e){var t,n,r,c,u=ql(s.useState(!1),2),l=u[0],f=u[1],p=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}),d=i.a.useBasicFetch(fe.a.config(),{optimize:!0}),h=i.a.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.isAuthenticated)&&o.a.customers(p.data.id)),y=function(e,t,n){var r=Object(xl.a)().hasPermissions,i=Object(Dl.b)(),o=an.a.sortBy(n,"order");e&&t&&(o.push({label:Ml("helpCentre"),order:0,url:Nl.a.getArticle(t.supportSiteUrl,null,null==e?void 0:e.countryCode)}),r(a.a.ViewProductBoard)&&!i.isUpgrading&&o.push({label:Ml("featureRequests"),order:0,url:t.productBoardUrl}));var s={main:[],logOut:[]};return o.forEach((function(e){"logOut"===e.section?s.logOut.push(e):s.main.push(e)})),s}(p.data,d.data,e.additionalItems),m=function(e,t){var n,r=i.a.useBasicFetch(o.a.currentUser()),a=i.a.useBasicFetch((null===(n=r.data)||void 0===n?void 0:n.isAuthenticated)&&J.a.userProducts()),s=Object(Dl.b)();if(!t&&a.data&&!s.isLoading){var c=Bl(a.data),u=Array.isArray(e)?e:[e];return s.isUpgrading&&!u.includes(Q.a.Online)&&u.push(Q.a.Online),an.a.sortBy(c.filter((function(e){return!u.includes(e.id)}),"order"))}}(e.productId,e.hideProductList);return p.hasCompleted&&d.data?(null===(n=p.data)||void 0===n?void 0:n.isAuthenticated)?s.createElement(Rl.Dropdown,{className:"cursor-pointer position-relative",onToggle:function(e){return f(e)}},s.createElement(Rl.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat(Gl.a.avatarContainer," no-caret")},s.createElement(Ll.a,{imageUrl:p.data.avatar,imageCdnUrl:d.data.imageCdnUrl,initials:jl.a.getInitials(p.data.givenName,p.data.familyName)})),s.createElement(Rl.Dropdown.Menu,{as:"ul",align:"right"},s.createElement(Rl.Dropdown.Item,{as:"div"},s.createElement("div",{className:"m-0 d-flex flex-wrap"},s.createElement("strong",null,p.data.displayName)," ",s.createElement("span",{className:"text-muted"},"(",p.data.username,")")),s.createElement("div",{className:"m-0 text-muted"},p.data.customerName)),s.createElement(zl,{isParentOpen:l,currentCustomerId:null===(r=p.data)||void 0===r?void 0:r.customerId,customers:null===(c=h.data)||void 0===c?void 0:c.data}),s.createElement(Rl.Dropdown.Divider,null),y.main.map((function(e,t){return s.createElement(Xl,{key:t,item:e})})),s.createElement(Rl.Dropdown.Divider,null),null==m?void 0:m.map((function(e,t){return s.createElement(Rl.Dropdown.Item,{key:t,as:"a",href:e.url,target:"_blank",className:"d-flex align-items-center py-1"},s.createElement("img",{src:e.imageUrl,className:"".concat(Gl.a.productLogo," mr-2")}),e.name)})),!!(null==m?void 0:m.length)&&s.createElement(Rl.Dropdown.Divider,null),y.logOut.map((function(e,t){return s.createElement(Xl,{key:t,item:e})})),s.createElement(Rl.Dropdown.Item,{as:oc.a,appLink:e.appLinks.logOut},Kl("signOut")))):s.createElement(oc.a,{appLink:e.appLinks.logIn,className:"btn btn-dark mr-2"},Kl("logIn")):s.createElement(s.Fragment,null)}var $l=n(140),Zl=n(269),Jl=n.n(Zl);function ef(){var e=Object(xl.a)().hasPermissions,t=Object(Dl.b)();return e(a.a.StudentExperience)?c.a.createElement(c.a.Fragment,null):!t.isLoading&&t.isUpgrading&&t.hasCompletedOnboarding?t.upgradeType===Dl.a.Launch?c.a.createElement(Vl.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(Jl.a.banner)},c.a.createElement("span",{className:"text-light d-inline-block py-3 h6 mb-0"},c.a.createElement("span",{className:"d-none d-lg-inline"},c.a.createElement(Vl.b,{phrase:"launchMessage"})," "),c.a.createElement(Vl.b,{phrase:"message",options:{smartCount:t.daysLeft}})," "),c.a.createElement(oc.a,{className:"btn btn-dark float-right mr-3 ".concat(Jl.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!0}},analyticsData:{upgradeType:Dl.a.Launch},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.GoToOnline,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Vl.b,{phrase:"switchBack"})))):c.a.createElement(Vl.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(Jl.a.banner)},c.a.createElement("span",{className:"text-light d-inline-block py-3 h6 mb-0"},c.a.createElement("span",{className:"d-none d-lg-inline"},c.a.createElement(Vl.b,{phrase:"liteMessage"})," "),c.a.createElement(Vl.b,{phrase:"message",options:{smartCount:t.daysLeft}})," ",c.a.createElement(oc.a,{className:"text-light text-underline cursor-pointer",appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!0}},analyticsData:{upgradeType:Dl.a.Lite},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.GoToOnline,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Vl.b,{phrase:"switchBack"}))),c.a.createElement(oc.a,{className:"btn btn-dark float-right mr-3 ".concat(Jl.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!1}},analyticsData:{upgradeType:Dl.a.Lite},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.Feedback,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Vl.b,{phrase:"giveFeedback"})))):c.a.createElement(c.a.Fragment,null)}var tf=n(593),nf=n(69),rf=n(203),of=n(154),af=n(297),sf=n(337),cf=n(434),uf=n(226);function lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ff(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 ff(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 ff(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 pf(){var e,t,n=Z.a.getCurrentRoute().appLink;return uf.a.isSearchAppLink(n)&&null!==(t=null===(e=n.params)||void 0===e?void 0:e.query)&&void 0!==t?t:""}var df=c.a.memo((function(e){var t,n=c.a.useMemo(pf,[]),i=lf(c.a.useState(n),2),o=i[0],a=i[1],s=lf(c.a.useState(!1),2),l=s[0],f=s[1],d=lf(Object(bu.a)(Se.a.SHOW_SEARCH_MASK,!1),2),h=d[0],y=d[1],m=Object(af.a)(o,300),v=Z.a.getCurrentRoute(),g=v.appLink,b=uf.a.isSearchAppLink(g),w=uf.a.useReferrerAppLink();function _(e){var t;if(null==o?void 0:o.trim())return!0;var n=null===(t=e)||void 0===t?void 0:t.tagOrClassification;return Array.isArray(n)?!!n.length:!!n}function S(){y(!0),window.setTimeout((function(){y(!1),r.a.AppLinkHelper.trigger(w,{replace:!0})}),200)}c.a.useEffect((function(){(b||o)&&(l?window.setTimeout((function(){return f(!1)}),0):b||!o||h||y(!0))}),[null==o?void 0:o.trim(),l]),c.a.useEffect((function(){!_(g.params)&&b&&S()}),[null===(t=g.params)||void 0===t?void 0:t.tagOrClassification]),c.a.useEffect((function(){var e=Object.assign({},g.params);m.trim()&&(null==e?void 0:e.tagOrClassification)&&!v.pageLoad&&delete e.tagOrClassification;var t=_(e);if(!t&&b)return S();t&&(Su.a.logUserAction({query:o,indices:sf.a.getIndices(g.params)},{actionType:E.UserAction.InstantSearch,entity:E.EntityType.SearchResults,location:E.LocationContext.SearchBar,workflowPhase:E.WorkflowPhase.Complete}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i={};t=n?nf.a.omit(t,["query"]):{},e&&(i.query=e.trimLeft()),Object.keys(t).length&&(i=Object.assign(Object.assign({},i),t)),r.a.AppLinkHelper.trigger({application:P.a.SEARCH,action:A.a.Search.HOME,params:i},{replace:n})}(o,e,b))}),[m]),Object(rf.a)(u.Radio.channel(p.a.SHELL),r.a.EventNames.URL_CHANGE,(function(e){var t,n;e||(e=Z.a.getCurrentRoute().appLink),o&&!uf.a.isSearchAppLink(e)&&(f(!0),a("")),uf.a.isSearchAppLink(e)&&(null===(t=e.params)||void 0===t?void 0:t.query)!==!o&&a(null!==(n=e.params.query)&&void 0!==n?n:"")}),[o,a]);var C=Object(cf.a)(o,sf.a.getIndices(g.params),{entity:E.EntityType.SearchResults,location:E.LocationContext.SearchBar}).onBlur;return c.a.createElement("form",{className:"form-control p-0 pl-1 d-flex align-items-center border-0",onSubmit:function(e){return e.preventDefault()}},c.a.createElement(ic.a,{svgName:rc.b.Search}),c.a.createElement("input",{type:"text",className:"border-0 w-100 h-100 outline-none rounded",placeholder:ne.a.getPhrase("search.liteSearchBar","placeholder"),onChange:function(e){var t,n=null!==(t=e.target.value)&&void 0!==t?t:"";a(n)},onBlur:function(e){var t;return C(null!==(t=e.target.value)&&void 0!==t?t:"")},value:o,autoComplete:"off",spellCheck:!1,"aria-label":"Search"}),e.showCloseButton&&c.a.createElement(of.a,{svgName:rc.b.Close,onClick:e.onClickClose,className:"btn btn-link"}))})),hf=ne.a.encloseNamespace("liteShared.header");var yf=n(151),mf=n.n(yf);function vf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return gf(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 gf(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 gf(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 bf(e){var t=Object(xl.a)().hasPermissions,n=Object(Al.a)(Tu.a.SMDown),r=n?mf.a.logoContainerSm:mf.a.logoContainerLg,i=null;return e.isLink&&(i=t(a.a.StudentExperience)?{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}:{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),s.createElement(oc.a,{appLink:i,className:"navbar-brand text-hide align-top ".concat(r," d-inline-block'")},n?s.createElement(Pl.d,null):s.createElement(Pl.a,null))}function wf(e){var t=vf(s.useState(!1),2),n=t[0],c=t[1],u=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}).data,l=i.a.useBasicFetch(fe.a.config(),{optimize:!0}),f=Object(Cu.a)(),p=Object(Al.a)(Tu.a.SMDown),d=Object(Al.a)(Tu.a.MDDown),h=Object(Al.a)(Tu.a.LGDown),y=function(){var e=Object($l.b)().isPlugin,t={application:P.a.DEFAULT,action:A.a.Default.LOG_IN},n=r.a.AppLinkHelper.getHref(r.a.AppLinkHelper.getCurrentAppLink());return"/"!==n&&(t.params={redirectUrl:n}),{logIn:t,logOut:{application:P.a.DEFAULT,action:A.a.Default.LOG_OUT,params:e?{redirectUrl:"/plugin"}:null}}}(),m=function(e,t,n){var r=Object(xl.a)().hasPermissions;if(!e||!t||!n)return[];var i=[{label:hf("settings"),order:5,appLink:{application:P.a.SETTINGS,action:A.a.Settings.HOME}}];return r(a.a.StudentExperience)||i.push.apply(i,[{label:hf("shares"),order:0,appLink:{application:P.a.DEFAULT,action:A.a.Default.SHARED_BY_ME}}]),r(a.a.StudentExperience)&&i.push.apply(i,[{label:hf("joinClassroom"),order:1,appLink:{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM_PROMPT}}]),i}(u,l.data,e.showNav),v=Object($l.b)().isPlugin;s.useEffect((function(){!d&&n&&c(!1)}),[d,f,n]);var g=e.showNav&&!v,b=e.showNav&&!v&&!p;return s.createElement(s.Fragment,null,!v&&s.createElement(ef,null),s.createElement("nav",{className:"navbar navbar-expanded w-100 ".concat(mf.a.nav)},!n&&s.createElement("div",{className:"d-flex align-items-center justify-content-start ".concat(mf.a.headerLeft)},e.showNav&&s.createElement(ic.a,{svgName:rc.b.Hamburger,className:"".concat(mf.a.hamburger," ml-1 mr-3"),onClick:e.toggleLeftNav}),s.createElement(bf,{isLink:e.showNav})),e.showNav?d&&!n?s.createElement(Il.a,{className:"ml-auto mr-3",onClick:function(){return c(!0)}},s.createElement(ic.a,{svgName:rc.b.Search})):s.createElement("div",{className:"".concat(mf.a.searchBarContainer," ").concat(n?"px-3 pl-0":"")},s.createElement("div",{className:"container ".concat(mf.a.searchBarPadding," ").concat(n?"px-0":"")},s.createElement("div",{className:"".concat(mf.a.searchBar," border border-dark")},s.createElement(df,{showCloseButton:n,onClickClose:function(){return c(!1)}})))):s.createElement(s.Fragment,null),!n&&s.createElement("div",{className:"d-flex align-items-center justify-content-end ".concat(mf.a.actionButtons)},b&&s.createElement("div",{className:"mr-3"},s.createElement(tf.a,{hideButtonText:h})),g&&s.createElement(mr.a,{view:kl,className:"mx-n2 pr-3"}),!!l.data&&s.createElement("span",{className:"mr-3"},s.createElement(Ql,{productId:Q.a.Primary,appLinks:y,additionalItems:m,hideProductList:v})))))}var _f,Sf,Cf=n(182),Tf=n(279),Ef=n(90),Of=n(12),kf=n(340);!function(e){e[e.None=0]="None",e[e.PresentationSelector=1]="PresentationSelector"}(_f||(_f={})),function(e){e.PresentationSwitcher="_displayPresentationSwitcherSpotlight"}(Sf||(Sf={}));var Pf=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6312e4;e&&docCookies.setItem(t,e,n,"/",null,!0,"none")},Af=function(e){return docCookies.getItem(e)},If=n(390),xf=n(282),Rf=n(423),Lf=n(207),jf=n.n(Lf),Nf=n(407);function Df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bf(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 Bf(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 Bf(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 Uf(e){var t,n=Df(c.a.useState(null),2),r=n[0],i=n[1],o=Df(c.a.useState("0rem"),2),a=o[0],s=o[1];function u(){if(r){var e=r.getBoundingClientRect().height;s("-".concat(e+15,"px"))}}c.a.useEffect(u,[r]),Object(Nf.a)(u,u,[r]);var l="".concat(jf.a.info," ").concat(null!==(t=e.extraInfoClasses)&&void 0!==t?t:"");return c.a.createElement("div",{ref:function(e){return i(e)},className:"".concat(l," bg-white p-3"),style:{top:a}},c.a.createElement("h2",{className:jf.a.spotlightHeading},e.headingText),c.a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:gt.a.sanitize(e.bodyText)}}),e.buttonText&&c.a.createElement(Il.a,{className:"info-link float-right",onClick:function(t){t.stopPropagation(),e.onClickButton()}},e.buttonText))}function Mf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vf(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 Vf(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 Vf(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 Ff(e){var t,n=Mf(c.a.useState(null),2),r=n[0],i=n[1];c.a.useEffect((function(){if(r&&Rf.a.isNumber(e.scrollOffset)){var t=r.getBoundingClientRect().y;document.body.scroll({top:t+document.body.scrollTop-e.scrollOffset,behavior:"smooth"})}}),[e.scrollOffset,r]);var o="".concat(jf.a.spotlight," ").concat(null!==(t=e.extraSpotlightClasses)&&void 0!==t?t:""),a=e.infoComponent?e.infoComponent:Uf;return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{onClick:e.onClickAway,className:"modal-backdrop show ".concat(jf.a.mask)}),c.a.createElement("div",{ref:function(e){return i(e)},className:"position-relative bg-white ".concat(o)},c.a.createElement(a,Object.assign({},e.infoComponentProps)),e.coverSpotlightContent&&c.a.createElement("div",{className:jf.a.cover}),e.children))}function Hf(e){return e.showSpotlight?c.a.createElement(Ff,Object.assign({},e),e.children):c.a.createElement(c.a.Fragment,null,e.children)}var zf=n(164),Wf=n(83),Gf=n(343),qf=n(333),Yf=n.n(qf);function Kf(e){var t;var n="".concat(Yf.a.info," ").concat(null!==(t=e.extraInfoClasses)&&void 0!==t?t:"");return c.a.createElement("div",{className:"".concat(n," bg-white p-3 text-center")},c.a.createElement("div",{className:"position-relative d-inline-flex align-items-center p-3"},c.a.createElement("img",{className:"".concat(Yf.a.cover," rounded"),src:Wf.a.createUrl(Gf.a.PRESENTATION_SWITCHER_COVER_PRIMARY_URL,{size:Gt.b.Small}),alt:"Initial school-level"}),c.a.createElement("div",{className:"flex-column px-1"},c.a.createElement(ic.a,{svgName:rc.b.ArrowLeft,className:"svg-container d-block",size:ic.b.Large}),c.a.createElement(ic.a,{svgName:rc.b.ArrowRight,className:"svg-container d-block",size:ic.b.Large})),c.a.createElement("img",{className:"".concat(Yf.a.cover," rounded"),src:Wf.a.createUrl(Gf.a.PRESENTATION_SWITCHER_COVER_SECONDARY_URL,{size:Gt.b.Small}),alt:"Next school-level"})),c.a.createElement("h2",{className:"h4"},e.headingText),c.a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:gt.a.sanitize(e.bodyText)}}),e.buttonText&&c.a.createElement(Il.a,{className:"btn btn-dark mt-3",onClick:function(t){t.stopPropagation(),e.onClickButton()}},e.buttonText))}var Xf,Qf=n(289),$f=n(233),Zf=n(41),Jf=n.n(Zf);function ep(e){var t,n,r=Object($l.b)().isPlugin,i=e.collapsed&&e.active,o="".concat(Jf.a.leftNavAnchor," ").concat(null!==(t=e.className)&&void 0!==t?t:""," ");return o+=e.active?Jf.a.active:Jf.a.iconGrey,!e.collapsed&&e.active&&(o+=" "+Jf.a.bgGrey),c.a.createElement(oc.a,{className:o,appLink:e.appLink,analyticsData:{id:Ef.a.mapIdToAnalyticsId(e.id),label:e.name,icon:e.svgName},analyticsOptions:{actionType:E.UserAction.Click,entity:E.EntityType.Url,location:E.LocationContext.LeftNav}},c.a.createElement("span",{className:"".concat(Jf.a.leftNavIcon," ").concat(null!==(n=e.iconClassName)&&void 0!==n?n:""," position-relative")},!!e.svgName&&c.a.createElement(ic.a,{svgName:e.svgName,size:r?ic.b.Medium:ic.b.ExtraLarge}),!!e.imageUrl&&c.a.createElement("span",{className:Jf.a.imageContainer},c.a.createElement("img",{src:Wf.a.createUrl(e.imageUrl,{size:Gt.b.Small}),className:"img-fluid rounded-circle"})),e.showRedDot),c.a.createElement("span",{className:"".concat(Jf.a.leftNavText," ").concat(i?Jf.a.highlightText:"")},e.name),e.showRedDot&&c.a.createElement("span",{className:"".concat(Jf.a.redDot," bg-danger rounded-circle ").concat(e.collapsed?Jf.a.collapsed:Jf.a.expanded)}))}function tp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var np,rp=ne.a.encloseNamespace("shared.leftNav"),ip=(tp(Xf={},Of.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),tp(Xf,Of.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),tp(Xf,Of.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),tp(Xf,Of.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),tp(Xf,Of.a.Classrooms,{application:P.a.CLASSROOMS,action:A.a.Classrooms.HOME}),tp(Xf,Of.a.Classroom,{application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS}),tp(Xf,Of.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),tp(Xf,Of.a.Libraries,{application:P.a.LIBRARIES,action:A.a.Libraries.LIBRARY}),tp(Xf,Of.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),tp(Xf,Of.a.Presentation,{application:P.a.DEFAULT,action:A.a.Default.CHANGE_PRESENTATION}),Xf);function op(e){var t,n,r,i=e.activeItem,o=e.dynamicActiveId,s=e.favouritedClassrooms,u=e.hideClassrooms,l=Object(xl.a)().hasPermissions,f=!!Object($f.a)(),p=(null===(t=e.availablePresentations)||void 0===t?void 0:t.length)>=zf.a.MULTI_PRESENTATION_THRESHOLD;return c.a.createElement("nav",{className:"".concat(Jf.a.leftNav," ").concat(Jf.a.leftNavExpanded)},c.a.createElement(xf.Scrollbars,{className:"".concat(p?Jf.a.leftNavScrollableContent:"h-100")},c.a.createElement("div",{className:"pt-3"},l(a.a.StudentExperience)&&c.a.createElement(ep,{key:Of.a.StudentFeed,id:Of.a.StudentFeed,name:rp("home"),appLink:ip[Of.a.StudentFeed],className:Jf.a.studentFeed,svgName:rc.b.House,active:i===Of.a.StudentFeed}),c.a.createElement(ep,{key:Of.a.Discover,id:Of.a.Discover,name:rp("discover"),appLink:ip[Of.a.Discover],className:Jf.a.discover,svgName:rc.b.Compass,active:i===Of.a.Discover}),c.a.createElement(ep,{key:Of.a.Playlists,id:Of.a.Playlists,name:rp("playlists"),appLink:ip[Of.a.Playlists],className:Jf.a.playlists,svgName:rc.b.Playlist,active:i===Of.a.Playlists}),c.a.createElement(ep,{key:Of.a.MyVideos,id:Of.a.MyVideos,name:rp("myVideos"),appLink:ip[Of.a.MyVideos],className:Jf.a.myVideos,svgName:rc.b.Video,active:i===Of.a.MyVideos,showRedDot:f}),c.a.createElement(ep,{key:Of.a.Favourites,id:Of.a.Favourites,name:rp("favourites"),appLink:ip[Of.a.Favourites],className:Jf.a.favourites,svgName:rc.b.HeartOutline,active:i===Of.a.Favourites}),!l(a.a.StudentExperience)&&c.a.createElement(ep,{key:Of.a.WatchHistory,id:Of.a.WatchHistory,name:rp("watchHistory"),appLink:ip[Of.a.WatchHistory],className:Jf.a.watchHistory,svgName:rc.b.History,active:i===Of.a.WatchHistory}),!l(a.a.StudentExperience)&&c.a.createElement("hr",{className:"my-2"}),!l(a.a.StudentExperience)&&!!e.libraries.length&&c.a.createElement(c.a.Fragment,null,e.libraries.length>1&&c.a.createElement("h6",{className:"m-b-2 pl-3"},rp("libraries")),e.libraries.map((function(e){var t,n,r,a,s;return c.a.createElement(ep,{key:e.id,id:Of.a.Libraries,name:e.name,appLink:Object.assign(Object.assign({},ip[Of.a.Libraries]),{args:[e.id,gt.a.slugify(e.name)]}),className:Jf.a.library,imageUrl:null===(n=null===(t=e.owner)||void 0===t?void 0:t.logo)||void 0===n?void 0:n.url,svgName:!(null===(a=null===(r=e.owner)||void 0===r?void 0:r.logo)||void 0===a?void 0:a.url)&&rc.b.Library,active:i===Of.a.Libraries&&(null===(s=e.id)||void 0===s?void 0:s.toString())===(null==o?void 0:o.toString())})})),c.a.createElement("hr",{className:"my-2"})),!u&&c.a.createElement(c.a.Fragment,null,c.a.createElement(ep,{key:Of.a.Classrooms,id:Of.a.Classrooms,name:rp("classrooms"),appLink:ip[Of.a.Classrooms],className:Jf.a.classrooms,svgName:rc.b.Classrooms,active:i===Of.a.Classrooms}),(null==s?void 0:s.length)?s.map((function(e){var t;return c.a.createElement(ep,{key:e.id,id:Of.a.Classroom,name:e.name,appLink:Object.assign(Object.assign({},ip[Of.a.Classroom]),{args:[e.id]}),className:Jf.a.classroom,svgName:rc.b.StarOutline,active:i===Of.a.Classroom&&(null===(t=e.id)||void 0===t?void 0:t.toString())===(null==o?void 0:o.toString())})})):c.a.createElement(c.a.Fragment,null)))),l(a.a.ManageSubjectPreferences)&&p&&c.a.createElement("div",{className:"".concat(Jf.a.presentation)},c.a.createElement("hr",{className:"my-0"}),c.a.createElement(Hf,{showSpotlight:e.activeSpotlight===_f.PresentationSelector,onClickAway:function(){return e.updateSpotlight(_f.None)},extraSpotlightClasses:Jf.a.presentationSpotlight,infoComponent:Kf,infoComponentProps:{onClickButton:function(){return e.updateSpotlight(_f.None)},extraInfoClasses:Jf.a.presentationSpotlightInfo,headingText:ne.a.getPhrase("shared.leftNav","presentationSpotlightHeader"),bodyText:ne.a.getPhrase("shared.leftNav","presentationSpotlightBody"),buttonText:ne.a.getPhrase("shared.leftNav","presentationSpotlightCta")},coverSpotlightContent:!0},c.a.createElement(ep,{key:Of.a.Presentation,id:Of.a.Presentation,name:null===(n=e.currentPresentation)||void 0===n?void 0:n.name,appLink:ip[Of.a.Presentation],iconClassName:Qf.a.getMappedPresentationBackgroundColour(null===(r=e.currentPresentation)||void 0===r?void 0:r.id),svgName:rc.b.School,active:!1}))))}function ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sp,cp,up=ne.a.encloseNamespace("shared.leftNav"),lp=(ap(np={},Of.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),ap(np,Of.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),ap(np,Of.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),ap(np,Of.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),ap(np,Of.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),ap(np,Of.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),ap(np,Of.a.Presentation,{application:P.a.DEFAULT,action:A.a.Default.CHANGE_PRESENTATION}),np);function fp(e){var t,n,r,i=Object(xl.a)().hasPermissions,o=Object($l.b)().isPlugin,s=!!Object($f.a)(),u=(null===(t=e.availablePresentations)||void 0===t?void 0:t.length)>=zf.a.MULTI_PRESENTATION_THRESHOLD,l="".concat(Jf.a.leftNav," ").concat(Jf.a.leftNavCollapsed);return o&&(l+=" ".concat(Jf.a.pluginLeftNav)),c.a.createElement("nav",{className:l},c.a.createElement(xf.Scrollbars,{className:"".concat(u?Jf.a.leftNavScrollableContent:"h-100")},c.a.createElement("div",{className:o?"pt-1":"pt-3"},i(a.a.StudentExperience)&&c.a.createElement(ep,{key:Of.a.StudentFeed,id:Of.a.StudentFeed,name:up("home"),appLink:lp[Of.a.StudentFeed],className:Jf.a.studentFeed,svgName:rc.b.House,active:e.activeItem===Of.a.StudentFeed,collapsed:!0}),c.a.createElement(ep,{key:Of.a.Discover,id:Of.a.Discover,name:up("discover"),appLink:lp[Of.a.Discover],className:Jf.a.discover,svgName:rc.b.Compass,active:e.activeItem===Of.a.Discover,collapsed:!0}),c.a.createElement(ep,{key:Of.a.Playlists,id:Of.a.Playlists,name:up("playlists"),appLink:lp[Of.a.Playlists],className:Jf.a.playlists,svgName:rc.b.Playlist,active:e.activeItem===Of.a.Playlists,collapsed:!0}),c.a.createElement(ep,{key:Of.a.MyVideos,id:Of.a.MyVideos,name:up("myVideos"),appLink:lp[Of.a.MyVideos],className:Jf.a.myVideos,svgName:rc.b.Video,active:e.activeItem===Of.a.MyVideos,collapsed:!0,showRedDot:s}),c.a.createElement(ep,{key:Of.a.Favourites,id:Of.a.Favourites,name:up("favourites"),appLink:lp[Of.a.Favourites],className:Jf.a.favourites,svgName:rc.b.HeartOutline,active:e.activeItem===Of.a.Favourites,collapsed:!0}),!i(a.a.StudentExperience)&&c.a.createElement(ep,{key:Of.a.WatchHistory,id:Of.a.WatchHistory,name:up("watchHistory"),appLink:lp[Of.a.WatchHistory],className:Jf.a.watchHistory,svgName:rc.b.History,active:e.activeItem===Of.a.WatchHistory,collapsed:!0}))),i(a.a.ManageSubjectPreferences)&&u&&c.a.createElement("div",{className:"".concat(Jf.a.presentation)},c.a.createElement("hr",{className:"my-0"}),c.a.createElement(Hf,{showSpotlight:e.activeSpotlight===_f.PresentationSelector,extraSpotlightClasses:Jf.a.presentationSpotlight,onClickAway:function(){return e.updateSpotlight(_f.None)},infoComponent:Kf,infoComponentProps:{onClickButton:function(){return e.updateSpotlight(_f.None)},extraInfoClasses:Jf.a.presentationSpotlightInfo,headingText:ne.a.getPhrase("shared.leftNav","presentationSpotlightHeader"),bodyText:ne.a.getPhrase("shared.leftNav","presentationSpotlightBody"),buttonText:ne.a.getPhrase("shared.leftNav","presentationSpotlightCta")},coverSpotlightContent:!0},c.a.createElement(ep,{key:Of.a.Presentation,id:Of.a.Presentation,name:null===(n=e.currentPresentation)||void 0===n?void 0:n.name,appLink:lp[Of.a.Presentation],iconClassName:Qf.a.getMappedPresentationBackgroundColour(null===(r=e.currentPresentation)||void 0===r?void 0:r.id),svgName:rc.b.School,active:!1}))))}function pp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dp(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 dp(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 dp(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 hp(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"}(cp||(cp={}));var yp=(hp(sp={},Of.a.Discover,Ef.a.getDiscoverAppLinks()),hp(sp,Of.a.Playlists,Ef.a.getPlaylistAppLinks()),hp(sp,Of.a.MyVideos,Ef.a.getMyVideosAppLinks()),hp(sp,Of.a.Favourites,Ef.a.getFavouritesAppLinks()),hp(sp,Of.a.WatchHistory,Ef.a.getWatchHistoryAppLinks()),hp(sp,Of.a.Classrooms,Ef.a.getClassroomsAppLinks()),hp(sp,Of.a.Classroom,Ef.a.getClassroomAppLinks()),hp(sp,Of.a.Libraries,Ef.a.getLibrariesAppLinks()),hp(sp,Of.a.StudentFeed,Ef.a.getStudentFeedAppLinks()),hp(sp,Of.a.Presentation,Ef.a.getPresentationsAppLinks()),sp);function mp(e){var t,n,r,s,u,l,f=pp(c.a.useState(null),2),p=f[0],d=f[1],h=i.a.useBasicFetch(o.a.currentUser()),y=i.a.useBasicFetch(h.data&&If.a.getPinnedClassrooms(h.data.id)),m=i.a.useBasicFetch(kf.a.sharedLibraries());i.a.useBasicFetch(!!(null===(t=m.data)||void 0===t?void 0:t.length)&&kf.a.librariesWithOwnerLogos(m.data.map((function(e){return e.id}))));var v=i.a.useBasicFetch(Cf.a.presentation(),{optimize:!0}),g=i.a.useBasicFetch(Cf.a.availablePresentations(Tf.a.Subject)),b=Object(xl.a)().hasPermissions,w=pp(c.a.useState(_f.PresentationSelector),2),_=w[0],S=w[1];c.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(yp).find((function(n){t||yp[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=Of.a[n])})),d(t)}}),[e.activeAppLink]);var C=Object(Al.a)(Tu.a.XS);function T(e){var t;Pf(null===(t=h.data)||void 0===t?void 0:t.id,Sf.PresentationSwitcher),S(e)}if(c.a.useEffect((function(){var e,t;(null===(e=g.data)||void 0===e?void 0:e.length)<zf.a.MULTI_PRESENTATION_THRESHOLD?S(_f.None):+Af(Sf.PresentationSwitcher)==+(null===(t=h.data)||void 0===t?void 0:t.id)||C?S(_f.None):S(_f.PresentationSelector)}),[C,null===(n=g.data)||void 0===n?void 0:n.length]),e.navState===cp.Hidden)return c.a.createElement(c.a.Fragment,null);var E=(null===(r=e.activeAppLink)||void 0===r?void 0:r.args)&&e.activeAppLink.args[0];return e.navState===cp.Collapsed?c.a.createElement(fp,{activeItem:p,currentPresentation:null==v?void 0:v.data,availablePresentations:null==g?void 0:g.data,activeSpotlight:_,updateSpotlight:T}):c.a.createElement(op,{activeItem:p,dynamicActiveId:E,favouritedClassrooms:null!==(u=null===(s=y.data)||void 0===s?void 0:s.data)&&void 0!==u?u:[],libraries:null!==(l=m.data)&&void 0!==l?l:[],hideClassrooms:!b(a.a.ViewClassrooms),currentPresentation:null==v?void 0:v.data,availablePresentations:null==g?void 0:g.data,activeSpotlight:_,updateSpotlight:T})}var vp=n(240),gp=n(44),bp=n(136),wp=n(401),_p=n(281),Sp=n(215),Cp=n(428),Tp=n(415),Ep=n(244),Op=n(389),kp=n(424),Pp=n(397),Ap=n(270),Ip=n.n(Ap);function xp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rp(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 Rp(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 Rp(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 Lp(e){if(e.shareId)return{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK,args:[e.shareId]};var t={};return e.contextId&&e.context&&(t.contextId=e.contextId,t.context=e.context),Pp.a.getAppLink(e.video,t)}function jp(e){var t,n=xp(Object(bu.a)(Se.a.WEB_PLAYER_DATA),1)[0];return s.createElement("h2",{className:"mb-0 h6 w-100 ".concat(Ip.a.title)},gp.a.isVideo(n.video)&&gp.a.hasSeries(n.video)&&s.createElement(wp.b,{className:"d-block",video:n.video,appLink:e.hasProduct(Q.a.Primary)&&(t=n.video.series,{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[t.id,gt.a.slugify(t.name)]}),analyticsOptions:{location:E.LocationContext.FloatingPlayer}}),s.createElement(oc.a,{appLink:!n.isOnPlayPage&&Lp(n)},n.video.name))}function Np(){var e,t,n;Object(Cp.a)();var a=xp(Object(bu.a)(Se.a.WEB_PLAYER_DATA),2),c=a[0],u=a[1],l=Object(Op.a)(E.LocationContext.FloatingPlayer),f=l.setFavourite,p=l.canFavourite,d=Object(kp.a)(E.LocationContext.FloatingPlayer),h=i.a.useBasicFetch(o.a.currentUser()),y=Object(Sp.a)().hasProduct;i.a.useBasicFetch((null===(e=h.data)||void 0===e?void 0:e.isAuthenticated)&&(null==c?void 0:c.video)?Ep.a.isFavourited(h.data.id,[c.video.id]):null);var m=_p.a.isFavouritedByCurrentUser(c.video),v=(null===(t=h.data)||void 0===t?void 0:t.isAuthenticated)&&gp.a.isVideo(c.video)&&y(Q.a.Primary);return(null==c?void 0:c.video)&&(null==c?void 0:c.viewKey)?s.createElement(s.Fragment,null,s.createElement(vp.a,{node:c.portalNode},(c.isOnPlayPage||c.showFloatingPlayer)&&s.createElement(Tp.a,{viewKey:c.viewKey,startTime:c.startTime,playerApiUrl:c.playerApiUrl,webPlayerUrl:c.webPlayerUrl,videoId:c.video.id,onExitPictureInPicture:function(){r.a.AppLinkHelper.trigger(Lp(c))},onClickCreateClip:v&&function(){v&&r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.CREATE_CLIP,args:[c.video.id]})},autoplay:!0,canFavourite:p(c.video),favourited:m,onClickFavourite:function(){var e=!m;f(c.video,e,(function(){u("video",e?Object.assign(Object.assign({},c.video),{favouritedBy:{data:[h.data]}}):Object.assign(Object.assign({},c.video),{favouritedBy:{data:[]}}))}))},currentUser:h.data,activityStatus:c.activityStatus,onSetActivityStatus:function(){var e=c.activityStatus===bp.a.Complete?bp.a.Incomplete:bp.a.Complete;d(c.shareId,c.video,e),u("activityStatus",e)},allowPip:null===(n=h.data)||void 0===n?void 0:n.isAuthenticated,onError:function(){r.a.ErrorHelper.throw(new ee.a)}})),s.createElement("div",{className:Ip.a.floatingPlayer},s.createElement(nc.CSSTransition,{timeout:400,in:c.showFloatingPlayer,classNames:"floating-player"},s.createElement("div",{className:"d-none shadow"},c.showFloatingPlayer&&s.createElement(vp.b,{node:c.portalNode}),s.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},s.createElement(jp,{hasProduct:y}),s.createElement("span",{className:"".concat(Ip.a.buttons)},s.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){Su.a.logUserAction({id:c.video.id},{location:E.LocationContext.FloatingPlayer,entity:gp.a.getAnalyticsEntity(c.video),actionType:E.UserAction.Click,descriptor:E.ClickDescriptor.Close}),u("showFloatingPlayer",!1)}},s.createElement(ic.a,{svgName:rc.b.Close})),s.createElement(oc.a,{appLink:Lp(c),onClick:function(){u("isOnPlayPage",!0),u("showFloatingPlayer",!1),Su.a.logUserAction({id:c.video.id},{location:E.LocationContext.FloatingPlayer,entity:gp.a.getAnalyticsEntity(c.video),actionType:E.UserAction.Click,descriptor:E.ClickDescriptor.Open})}},!c.isOnPlayPage&&s.createElement(ic.a,{svgName:rc.b.NewWindow,className:"".concat(Ip.a.flippedIcon," d-inline-block svg-container float-right")})))))))):s.createElement(s.Fragment,null)}var Dp=n(751),Bp=n(271),Up=n.n(Bp);function Mp(){return s.createElement(s.Fragment,null,s.createElement("div",{className:Up.a.dropMask}),s.createElement("div",{className:Up.a.dropContent},s.createElement("div",{className:Up.a.border},s.createElement("h1",null,s.createElement(Vl.b,{namespace:"shared.dragMask",phrase:"message"})))),s.createElement("div",{className:Up.a.dropArea}))}var Vp=n(128),Fp=n.n(Vp),Hp=n(432);function zp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wp(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 Wp(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 Wp(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 Gp=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 qp(e){return e!==Tu.a.XL&&e!==Tu.a.XXL}var Yp=function(e){var t,n,r=e.showNav,a=e.contentChild,c=e.popupChild,u=e.alertChild,l=e.hiddenChild,f=e.activeAppLink,p=e.appLinkIsRoute,d=zp(s.useState(!1),2),h=d[0],y=d[1];Object(Ou.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(s.useEffect)((function(){return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[])}();var m=i.a.useBasicFetch(o.a.currentUser());m.data&&!m.data.isAuthenticated&&(r=!1),Object(_u.b)((null===(t=m.data)||void 0===t?void 0:t.isAuthenticated)?kc.b.CombineUploads:null);var v=Object(Cu.a)(),g=v===Tu.a.XS,b=v===Tu.a.SM,w=v===Tu.a.XXL,_=zp(Object(bu.a)(Se.a.WEB_PLAYER_DATA),1)[0],S=zp(Object(bu.a)(Se.a.SHOW_SEARCH_MASK),1)[0],C=zp(Object(bu.a)(Se.a.LAYOUT_CONTAINER_FLUID,qp(v)),2),T=C[0],O=C[1],k=Object(Eu.b)().enabled;s.useEffect((function(){y(!w)}),[w]),s.useEffect((function(){O(qp(v))}),[v]),s.useEffect((function(){document.body.style.overflowY="scroll"}),[]);var P=Object($l.b)().isPlugin,A=function(e,t,n,r,i){var o=i?Fp.a.pluginCollapsedNavContent:Fp.a.collapsedNavContent;return r?t?{state:e?cp.Hidden:cp.Open,showMask:!e,contentClass:Fp.a.hiddenNavContent}:n?{state:e?cp.Collapsed:cp.Open,showMask:!e,contentClass:o}:{state:e?cp.Collapsed:cp.Open,showMask:!1,contentClass:e?o:Fp.a.openNavContent}:{state:cp.Hidden,showMask:!1,contentClass:Fp.a.hiddenNavContent}}(h,g,b,r,P),I=Object(gu.a)(kc.b.VideoUpload),x=s.useCallback((function(e){k&&I.addFiles(e,{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Start,descriptor:Su.a.mapInteractionType(E.InteractionType.DragDrop),location:E.LocationContext.VideoUpload})}),[k]),R=Object(vu.useDropzone)({onDrop:x,noClick:!0,noKeyboard:!0,disabled:L.a.disableDropzone(P||!(null===(n=m.data)||void 0===n?void 0:n.isAuthenticated))}),j=R.getRootProps,N=R.getInputProps,D=R.isDragActive,B="d-flex flex-column align-items-end",U="",M=Fp.a.fixedBottomRightContainer;return L.a.hasIntercom()&&(M+=" "+Fp.a.intercomOverride),(null==_?void 0:_.showFloatingPlayer)?B+=" ".concat(M):U=M,s.createElement(ju,{renderError:function(){return Object(Dp.ErrorView)({error:new ee.a})}},s.createElement("div",Object.assign({},j()),s.createElement(wf,{toggleLeftNav:function(){y(!h)},showNav:r}),r&&s.createElement(mp,{navState:A.state,activeAppLink:f,appLinkIsRoute:p}),s.createElement("div",{className:"".concat(Fp.a.content," ").concat(A.contentClass)},s.createElement("div",{className:"container-fluid ".concat("banner-portal-container")}),s.createElement("div",{className:"".concat(T?"container-fluid":"container")},s.createElement(ju,{throwError:ee.a},a))),s.createElement(ju,{throwError:Fu},c),A.showMask&&s.createElement("div",{className:"modal-backdrop show ".concat(Fp.a.mask)}),s.createElement("div",{className:"".concat(Fp.a.searchMask," ").concat(S?Fp.a.show:""," modal-backdrop")}),s.createElement("div",{className:B},!!u&&s.createElement("div",{className:U},u),s.createElement(Np,null)),D&&k&&s.createElement(Mp,null),s.createElement("input",Object.assign({},N())),s.createElement("div",{style:{display:"none"}},l)))};function Kp(e){var t=e.provider,n=Gp(e,["provider"]);return t?s.createElement(cu.Provider,{store:e.store},s.createElement(wu.b,{defaultTitle:""},s.createElement(ku.b,{containerClassName:"banner-portal-container"},s.createElement(t,null,s.createElement(Yp,Object.assign({},n)))))):s.createElement(cu.Provider,{store:e.store},s.createElement(wu.b,{defaultTitle:""},s.createElement(ku.b,{containerClassName:"banner-portal-container"},s.createElement(Hp.b,null,s.createElement(Yp,Object.assign({},n))))))}var Xp=n(806),Qp=n.n(Xp);function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zp(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 Jp(){return(Jp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ed(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ed(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=id(e)););return e}function td(e,t){return(td=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nd(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=id(e);if(t){var i=id(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rd(this,n)}}function rd(e,t){if(t&&("object"===$p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function id(e){return(id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var od=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&td(e,t)}(a,e);var t,n,i,o=nd(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).childComponents={},t.preventScrollTop=!1,t}return t=a,i=[{key:"getCacheKey",value:function(e){var t;return"".concat(O,":").concat(e.showNav,":").concat(null===(t=e.provider)||void 0===t?void 0:t.name)}}],(n=[{key:"initialize",value:function(){var e,t=this;this.activeAppLink=null===(e=Z.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(p.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(p.a.SHELL,"prevent:scroll:top",(function(){return t.preventScrollTop=!0}))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return Qp.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[ht],popupChild:this.childComponents[yt],alertChild:this.childComponents[mt],hiddenChild:this.childComponents[vt],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute,provider:this.options.provider}}},{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(yt)}},{key:"showChildView",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.childComponents[e]=t,e===ht&&(this.preventScrollTop||n.preventScrollTop||$(window).scrollTop(0),this.preventScrollTop=!1),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());Jp(id(a.prototype),"showChildView",this).call(this,"layout",s.createElement(Kp,Object.assign({},e)))}}])&&Zp(t.prototype,n),i&&Zp(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(mu),ad=n(807);function sd(e){var t=e.contentChild;return s.useEffect((function(){document.body.style.overflowY="auto"}),[]),s.createElement(s.Fragment,null,t)}function cd(e){var t=e.store;return s.createElement(ju,{renderError:function(){return Object(ad.EmbedErrorView)({error:new Xn.a})}},s.createElement(cu.Provider,{store:t},s.createElement(wu.b,{defaultTitle:""},s.createElement(sd,Object.assign({},e)))))}var ud=n(808),ld=n.n(ud);function fd(e){return(fd="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 pd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dd(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 hd(){return(hd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=yd(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function yd(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bd(e)););return e}function md(e,t){return(md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vd(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bd(e);if(t){var i=bd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gd(this,n)}}function gd(e,t){if(t&&("object"===fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bd(e){return(bd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wd=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&md(e,t)}(o,e);var t,n,r,i=vd(o);function o(){var e;return pd(this,o),(e=i.apply(this,arguments)).childComponents={},e}return t=o,r=[{key:"getCacheKey",value:function(){return k}}],(n=[{key:"title",get:function(){return!1}},{key:"name",get:function(){return"SimpleLayoutView"}},{key:"template",get:function(){return ld.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[ht],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(yt)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){hd(bd(o.prototype),"showChildView",this).call(this,"layout",s.createElement(cd,Object.assign({},this.getChildComponents())))}}])&&dd(t.prototype,n),r&&dd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(mu);function _d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&_d(t.prototype,n),r&&_d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Cd=n(125),Td=n(263);function Ed(e){return(Ed="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 Od(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 kd(e,t){return(kd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pd(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Id(e);if(t){var i=Id(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ad(this,n)}}function Ad(e,t){if(t&&("object"===Ed(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Id(e){return(Id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xd=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kd(e,t)}(o,e);var t,n,r,i=Pd(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).viewObjects={},e}return t=o,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"ViewModelService"}},{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof Td.a&&e.set(n,{silent:!0}),e instanceof Cd.a&&!(e instanceof Td.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,i=void 0!==r&&r,o=this.viewObjects[e];if(o&&i)return this.updateViewModel(o,t);if(o)return o;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=r.ctor,o=r.storage,a=this.mergeData(t,n),s=i?new i(a):new Cd.a(a);return this.viewObjects[e]=s,o&&!n?(this.setLocalData(e,s,null,r),this.setupChangeListeners(e,s,r)):o&&n&&this.setupChangeListeners(e,s,r),s}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var i,o=r.storage;!o||o&&!o.persistProps||("string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),t instanceof Cd.a&&(i=t.pick(o.persistProps)),this.getStorageHelper(o.type).set(e,i))}},{key:"setupChangeListeners",value:function(e,t,n){var r=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),_a.each(i.persistProps,(function(i){r.listenTo(t,"change:".concat(i),_a.partial(r.setLocalData,e,_a,_a,n))})))}},{key:"mergeData",value:function(e,t){return t?_a.isObject(e)&&_a.isObject(t)?_a.extend(e,t):void Ca.c.throw(new ge.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case we.c.LocalStorage:return we.a;case we.c.SessionStorage:return we.b}}}])&&Od(t.prototype,n),r&&Od(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Sa.a).Instance;function Rd(e){return(Rd="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 Ld(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jd(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 Nd(e,t,n){return t&&jd(e.prototype,t),n&&jd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dd(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bd(e,t)}function Bd(e,t){return(Bd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ud(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vd(e);if(t){var i=Vd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Md(this,n)}}function Md(e,t){if(t&&("object"===Rd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Vd(e){return(Vd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fd,Hd=function(e){Dd(n,e);var t=Ud(n);function n(){return Ld(this,n),t.apply(this,arguments)}return Nd(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),zd=function(e){Dd(n,e);var t=Ud(n);function n(){return Ld(this,n),t.apply(this,arguments)}return Nd(n,[{key:"model",get:function(){return Hd}}]),n}(r.a.Collection),Wd=n(179),Gd=n(214),qd=n(67);function Yd(e){return(Yd="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 Kd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xd(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 Qd(e,t){return(Qd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $d(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jd(e);if(t){var i=Jd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zd(this,n)}}function Zd(e,t){if(t&&("object"===Yd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qd(e,t)}(a,e);var t,n,i,o=$d(a);function a(){return Kd(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return is.b.PendingItems}},{key:"channelName",get:function(){return ss.c.PENDING_ITEMS}},{key:"initialize",value:function(){this.videoDataService=Ce.a.getInstance(is.a.Video,this),this.videoUploadDataService=Ce.a.getInstance(is.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case Wd.a.Completed:case Wd.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),_a.isFunction(t)&&t()}));break;case Wd.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),_a.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){u.Radio.channel(this.channelName).trigger(qd.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new zd,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&u.Radio.channel(e.channelName).trigger(qd.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===Wd.a.Completed&&e.itemStatusChanged()}))})),window.setTimeout((function(){e.fetchPendingItems()}),200)),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var i=_a.map(n,(function(e){return e.masterVideoId.toString()})),o=function(r){_a.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Gd.a.Processing&&t.set("status",Gd.a.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&(window.clearTimeout(Fd),Fd=window.setTimeout((function(){return e.fetchPendingItems()}),e.getTimeoutLength())),_a.isFunction(t.callback)&&t.callback()};i.length?e.videoDataService.getVideos(i,o):o(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=xd.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;_a.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===Wd.a.Processing}))?5e3:3e4}}])&&Xd(t.prototype,n),i&&Xd(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service),th=n(325);function nh(e){return(nh="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 rh(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 ih(e,t){return(ih=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oh(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sh(e);if(t){var i=sh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ah(this,n)}}function ah(e,t){if(t&&("object"===nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sh(e){return(sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ch=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ih(e,t)}(o,e);var t,n,r,i=oh(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this)}return t=o,(n=[{key:"name",get:function(){return is.b.Notification}},{key:"initDataServices",value:function(){this.notificationDataService=Ce.a.getInstance(is.a.Notification,this),this.notificationSocketService=Ce.a.getInstance(is.a.NotificationSocket,this),this.userDataService=Ce.a.getInstance(is.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=as.a.NOTIFICATIONS;this.listenTo(ss.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(ss.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(ss.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(ss.a.NOTIFICATIONS,th.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,as.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=xd.get(as.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(i){r.notificationDataService.getNotifications(i.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),xd.get(as.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}])&&rh(t.prototype,n),r&&rh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service),uh=n(126);function lh(e){return(lh="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 fh(e){return function(e){if(Array.isArray(e))return ph(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ph(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 ph(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 ph(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 dh(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 hh(e,t){return(hh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yh(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vh(e);if(t){var i=vh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mh(this,n)}}function mh(e,t){if(t&&("object"===lh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vh(e){return(vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gh(e){return(gh="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 bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wh(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 _h(e,t){return(_h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sh(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Th(e);if(t){var i=Th(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ch(this,n)}}function Ch(e,t){if(t&&("object"===gh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Th(e){return(Th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Eh,Oh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}(o,e);var t,n,r,i=Sh(o);function o(){return bh(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return La.Notifications}}])&&wh(t.prototype,n),r&&wh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hh(e,t)}(o,e);var t,n,r,i=yh(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=t.createConnection(e),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=o,(n=[{key:"setProviderOptions",value:function(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(uh.b.Connecting),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.connection.invoke(this.subscribeEvent,e.token).then((function(){return t.setConnectionState(uh.b.Connected)})).catch((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.onclose((function(){return e.onConnectionError})),this.connection.onreconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):console.log("Connection Error."),this.setConnectionState(uh.b.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(e){var t=new uh.a,n=js.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),i={logger:uh.c.Error};return e.logging&&(i.logger=uh.c.Debug),t.withUrl(r,i).build()}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){e===uh.b.Connected&&console.log("Connected!"),e===uh.b.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===uh.b.Connecting||this.connectionState===uh.b.Connected||this.connectionState===uh.b.Reconnecting}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return Na.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.connection.invoke(e,t).then((function(e){return r.trigger.apply(r,[i].concat(fh(e)))})).catch((function(e){return r.trigger.apply(r,[o].concat(fh(e)))}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;this.connection.on(e,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.trigger.apply(n,[r].concat(t))}))}}])&&dh(t.prototype,n),r&&dh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ja.Object));!function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Eh||(Eh={}));var kh=n(342),Ph=n(752),Ah=n(386);function Ih(e){return(Ih="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 xh(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 Rh(e,t){return(Rh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lh(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nh(e);if(t){var i=Nh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jh(this,n)}}function jh(e,t){if(t&&("object"===Ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nh(e){return(Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dh=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rh(e,t)}(o,e);var t,n,r,i=Lh(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,ne.a.getPhrase("upload.internetConnectivityError","title"))}return t=o,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("upload.internetConnectivityError","heading"),text:ne.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:ne.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&xh(t.prototype,n),r&&xh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Kc.a);function Bh(e){return(Bh="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 Uh(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 Mh(e,t){return(Mh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vh(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hh(e);if(t){var i=Hh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Fh(this,n)}}function Fh(e,t){if(t&&("object"===Bh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hh(e){return(Hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zh,Wh,Gh=[],qh=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}(a,e);var t,n,i,o=Vh(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,i=[{key:"isValidFile",value:function(e,t){return Ah.isValidFile(e,t)}}],(n=[{key:"name",get:function(){return"DropzoneWrapper"}},{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=u.Radio.channel(e.channelName),i=this;this.dropzone=new Ah(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(_a.each(Gh,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0]instanceof File?n[0].name:n[0];console.info(t,i,n)}))})),this.on("uploadprogress",(function(e,t,r){var o=r/e.size*100;n.trigger("progress",i.getId(e),o,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=_a.last(t),i=r.xhr;i||(i=r.file.xhr);var o=JSON.parse(i.response);e.cvUpload.fileId=o.id,n.trigger("upload:success",e,o)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new Dh):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Yc(ne.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}}])&&Uh(t.prototype,n),i&&Uh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function Yh(e){return(Yh="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 Kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qh(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 $h(e,t,n){return t&&Qh(e.prototype,t),n&&Qh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zh(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jh(e,t)}function Jh(e,t){return(Jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ey(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ny(e);if(t){var i=ny(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ty(this,n)}}function ty(e,t){if(t&&("object"===Yh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ny(e){return(ny=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ry,iy=function(e){Zh(n,e);var t=ey(n);function n(){return Xh(this,n),t.call(this,{dataProvider:Ce.a.getInstance(La.Ajax),cache:Ce.a.getInstance(wa.Fifo),alertService:Ce.a.getInstance(Ya.a.ALERT)})}return $h(n,[{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}},{key:"requestUploads",value:function(e,t,n,r){var i=this,o=this.chain();_a.each(e,(function(e){o.create({resource:"/api/upload",eventPrefix:"request:upload",data:i.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),o.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){Ce.a.releaseInstance(La.Ajax).releaseInstance(wa.Fifo)}}]),n}(rs);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(ry||(ry={}));var oy=(Kh(zh={},ry.Video,"video/*"),Kh(zh,ry.LearningResource,kh.b.RESOURCES),Kh(zh,ry.Subtitle,kh.b.SUBTITLES),zh),ay=(Kh(Wh={},ry.Video,ss.c.VIDEO_UPLOAD),Kh(Wh,ry.LearningResource,ss.c.RESOURCE_UPLOAD),Kh(Wh,ry.Subtitle,ss.c.SUBTITLE_UPLOAD),Wh),sy=function(e){Zh(n,e);var t=ey(n);function n(){return Xh(this,n),t.apply(this,arguments)}return $h(n,[{key:"initialize",value:function(){this.uploadDataService=new iy,this.progressViewModel=xd.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"channelName",get:function(){return ay[this.uploadType]}},{key:"lang",get:function(){return"uploadShared.services"}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new qh({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,i=r>100;this.progressViewModel.set({progress:i?100:r,done:i})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return qh.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;_a.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new Ph.a(ne.a.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),i=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===ry.Video&&(r=r.replace(/\.[^/.]+$/,"")),i.add({id:n.uploader.getId(e),file:e,name:r},{at:i.length-1})}),(function(){t&&Su.a.logUserAction({uploadCount:e.length},t),u.Radio.channel(n.channelName).trigger(qd.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var i=r.get("file");this.uploader.removeFile(i),n.remove(r),this.uploadDataService.cancelUpload(i.cvUpload.uploadId,i.cvUpload.ingestUrl,(function(){Su.a.logUserAction({id:i.cvUpload.uploadId},{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Discard,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.MyUploads}),u.Radio.channel(t.channelName).trigger(qd.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),Su.a.logUserAction({id:e.cvUpload.uploadId},{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Complete,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.VideoUpload}),u.Radio.channel(this.channelName).trigger(qd.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));_a.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return oy[this.uploadType]}}]),n}(r.a.Service),cy=function(e){Zh(n,e);var t=ey(n);function n(){return Xh(this,n),t.apply(this,arguments)}return $h(n,[{key:"uploadType",get:function(){return ry.Video}},{key:"name",get:function(){return is.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Eh.Temporary}}]),n}(sy),uy=function(e){Zh(n,e);var t=ey(n);function n(){return Xh(this,n),t.apply(this,arguments)}return $h(n,[{key:"uploadType",get:function(){return ry.Subtitle}},{key:"name",get:function(){return is.b.SubtitleUpload}},{key:"fileLifestyle",get:function(){return Eh.Permanent}}]),n}(sy),ly=function(e){Zh(n,e);var t=ey(n);function n(){return Xh(this,n),t.apply(this,arguments)}return $h(n,[{key:"uploadType",get:function(){return ry.LearningResource}},{key:"name",get:function(){return is.b.ResourceUpload}},{key:"fileLifestyle",get:function(){return Eh.Permanent}}]),n}(sy),fy=n(42);function py(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 dy=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,o;return t=e,(n=[{key:"name",get:function(){return kc.a.Video}},{key:"clearVideoCache",value:function(){this.store.dispatch({type:i.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=pn.a.videos(e,(function(e){fy.a.isFunction(t)&&t(new r.a.Collection(e))}));return i.a.hooklessFetch(this.store,n),null}}])&&py(t.prototype,n),o&&py(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hy(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 yy,my,vy,gy=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:Da.a.DELETE}},by=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:Da.a.DELETE}},wy=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:Da.a.POST}},_y=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Sy=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Cy=function(e,t){return{url:"/api/upload/complete",key:"complete:upload:".concat(e.id),type:Da.a.POST,success:t,data:e}},Ty=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,o;return t=e,(n=[{key:"name",get:function(){return kc.a.VideoUpload}},{key:"clearPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,gy(e,t))}},{key:"cancelPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,by(e,t))}},{key:"retryPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,wy(e,t))}},{key:"getPendingItem",value:function(e,t){i.a.fetch(this.store.dispatch,_y(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){var t=Sy(e);i.a.ajaxRequest({resource:t.url,type:Da.a.GET,success:e,error:function(){}})}},{key:"completeVideoUpload",value:function(e,t){i.a.fetch(this.store.dispatch,Cy(e,t))}}])&&hy(t.prototype,n),o&&hy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ey=n(293);function Oy(e){return(Oy="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 ky(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Py(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 Ay(){return(Ay="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Iy(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Iy(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jy(e)););return e}function xy(e,t){return(xy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ry(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jy(e);if(t){var i=jy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ly(this,n)}}function Ly(e,t){if(t&&("object"===Oy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jy(e){return(jy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(yy||(yy={})),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"}(my||(my={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(vy||(vy={}));var Ny=ne.a.encloseNamespace("upload.services"),Dy=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xy(e,t)}(o,e);var t,n,r,i=Ry(o);function o(){return ky(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){Ay(jy(o.prototype),"initialize",this).call(this),this.videoUploadDataService=Ce.a.getInstance(kc.a.VideoUpload,this),this.pendingItemsService=Ce.a.getInstance(kc.b.PendingItems,this),this.userDataService=Ce.a.getInstance(kc.a.FlightUser,this),this.alertService=Ce.a.getInstance(Ya.a.ALERT,this),this.listenTo(this.channelName,qd.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,qd.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,qd.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:qa.a.Success,heading:Ny("startUploadAlertHeading"),message:1===e.length?Ny("startUploadSingleAlertBody",{videoName:e[0].name}):Ny("startUploadMultipleAlertBody",{uploadCount:e.length})},n=Z.a.getCurrentContext().appLink;!!Ef.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=Ny("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:P.a.DEFAULT,action:A.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}))||u.Radio.channel(this.channelName).trigger(qd.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:yy.Upload,origin:my.Lite,fileId:t.id,subtitleOptions:{subtitleExtractOptions:vy.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;Ay(jy(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)}}])&&Py(t.prototype,n),r&&Py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(cy);function By(e){return(By="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 Uy(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 My(e,t){return(My=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vy(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hy(e);if(t){var i=Hy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Fy(this,n)}}function Fy(e,t){if(t&&("object"===By(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hy(e){return(Hy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zy=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&My(e,t)}(o,e);var t,n,r,i=Vy(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).imageUrls=e.imageUrls,t}return t=o,(n=[{key:"name",get:function(){return is.b.ImageUrl}},{key:"getImageUrls",value:function(){return this.imageUrls}}])&&Uy(t.prototype,n),r&&Uy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);var Wy=n(336),Gy=n(320);function qy(e,t){return nf.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var Yy={version:null};function Ky(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yy,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Gy.a.API_RESPONSE:return qy(e,t)}return e}function Xy(e){return(Xy="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 Qy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),Qy({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),Qy({},t.payload.dataOrKey,t.payload.keyData)))):("object"===Xy(t.payload.dataOrKey)&&Array.isArray(t.payload.dataOrKey),Object.assign(Object.assign({},e),Qy({},t.payload.viewModelKey,t.payload.dataOrKey)))}function Zy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be.a.UPDATE:return $y(e,t)}return e}var Jy=n(245);function em(e){return(em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tm(e,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 nm(e,t){return(nm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rm(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=om(e);if(t){var i=om(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return im(this,n)}}function im(e,t){if(t&&("object"===em(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function om(e){return(om=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var am=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nm(e,t)}(a,e);var t,n,i,o=rm(a);function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=o.call(this,ne.a.getPhrase("shared.oldVersion","title",{oldVersion:e,newVersion:t}))).btnVariant=n,r}return t=a,(n=[{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.oldVersion","heading"),text:ne.a.getPhrase("shared.oldVersion","body"),buttons:[{text:ne.a.getPhrase("shared.oldVersion","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&tm(t.prototype,n),i&&tm(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(Kc.a);function sm(e){return(sm="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 cm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(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 lm(e,t,n){return t&&um(e.prototype,t),n&&um(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fm(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pm(e,t)}function pm(e,t){return(pm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ym(e);if(t){var i=ym(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hm(this,n)}}function hm(e,t){if(t&&("object"===sm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ym(e){return(ym=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mm=function(e){fm(n,e);var t=dm(n);function n(){return cm(this,n),t.apply(this,arguments)}return lm(n,[{key:"onDone",value:function(){r.a.LocationUtils.PageLoad("/login?returnUrl=".concat(encodeURIComponent(r.a.LocationUtils.GetCurrentUrl())))}}]),n}(function(e){fm(n,e);var t=dm(n);function n(e){var r;return cm(this,n),(r=t.call(this,ne.a.getPhrase("shared.authentication","title"))).btnVariant=e,r}return lm(n,[{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.authentication","heading"),text:ne.a.getPhrase("shared.authentication","body"),buttons:[{text:ne.a.getPhrase("shared.authentication","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}]),n}(Kc.a)),vm=n(265),gm={"{gateway}":"gatewayApiUrl","{image}":"imageCdnUrl"};function bm(e){return function(t,n){var r=Object.keys(gm).find((function(e){return t.resource.startsWith(e)}));if(!r)return n(t);function a(){n(t)}function s(e,i){var o=e[gm[r]],a=Object.assign(Object.assign({},t),{resource:vm.a.safeUrlConcat(o,t.resource.split("".concat(r,"/"))[1])});(null==i?void 0:i.value)&&(a.headers={authorization:"Bearer ".concat(i.value)}),n(a)}i.a.hooklessFetch(e,fe.a.config((function(t){i.a.hooklessFetch(e,o.a.currentUser((function(n){return function(t,n){if(!n.isAuthenticated)return void s(t);i.a.hooklessFetch(e,o.a.token((function(e){return s(t,e)}),a))}(t,n)}),a))}),a))}}var wm,_m=/\(([^()]*)\)/g;function Sm(e,t){return function(n,i){var o=new r.a.Middleware;decodeURIComponent(n.resource).replace(_m,(function(e){var n=t[e];if("string"!=typeof n)return n?void o.use(n):e;o.use(function(e,t){return function(n,r){r(Object.assign(Object.assign({},n),{resource:n.resource.replace(e,t)}))}}(e,n))}));var a={resource:n.resource,store:e};o.go(a,(function(e){i(Object.assign(Object.assign({},n),{resource:e.resource}))}))}}function Cm(e,t){return function(n){var o=new r.a.Middleware;o.use(bm(e.store)),o.use(Sm(e.store,t)),o.go(n,(function(e){i.a.ajaxRequest(e)}))}}function Tm(e){return function(t){return function(r){if(r.type===i.a.Actions.API_RESPONSE){var a=function(e){var t,n=e.getState().flightData,r=o.a.currentUser().key,i=null===(t=null==n?void 0:n.resources)||void 0===t?void 0:t[r];if(i){var a=an.a.first(i.entityIds);if(a)return n.entities[a]}}(e);if(!a||a.contentRegion!==wm.US)return t(r);n.e(186).then(n.bind(null,2270)).then((function(e){for(var n=e.TranslateTermsHelper,i=Object.keys(r.entities),o=0;o<i.length;o++){var a=i[o],s=r.entities[a];s.typeId===sn.a.Series&&"series"===s.type&&(s.name=n.translate(s.name),s.description=n.translate(s.description))}t(r)}))}else t(r)}}}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(wm||(wm={}));var Em=n(262);function Om(e){return function(t,n){i.a.hooklessFetch(t.store,o.a.currentUser((function(r){var i="".concat("video[thumbnail],_canUpdate,_videoProgress,owner,_canBeConsumed");r.isAuthenticated&&(i+=",favouritedby{id:".concat(r.id,"}")),e===Cc.a.CLIP&&(i+=",interactives[thumbnail,clip[video[thumbnail]],video[thumbnail]]");var o=t.resource.replace(e,i);n(Object.assign(Object.assign({},t),{resource:o}))}),(function(){return n(t)})))}}function km(e){return function(t,n){i.a.hooklessFetch(t.store,o.a.currentUser((function(r){var i="".concat("thumbnail,rating,series,season,_videoProgress,_canBeConsumed");r.isAuthenticated&&(i+=",favouritedby{id:".concat(r.id,"}")),e===Cc.a.VIDEO_COLLECTION&&(i+=",_canUpdate,subtitles{limit:1}");var o=t.resource.replace(e,i);n(Object.assign(Object.assign({},t),{resource:o}))}),(function(){return n(t)})))}}var Pm=[x.a.ShareToGoogleClassroom,x.a.ShareToMicrosoftTeams,x.a.DefaultPlaybackQuality,x.a.DefaultLocalCachePlaybackQuality,x.a.EnableSubtitlesDefault,x.a.LTI,x.a.LiteUpgradeTime,x.a.LiteUpgradeTypeCustomer,x.a.LiteUpgradeComplete,x.a.HasBulkUserActions];var Am,Im=[x.a.HasCompletedOnboarding,x.a.BulkOnboardingPreferencesState,x.a.LiteUpgradeTypeUser,x.a.HasCompletedUpgradeOnboarding,x.a.LiteUpgradeFeedback];function xm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rm,Lm=(xm(Am={},Cc.a.VIDEO_COLLECTION,km(Cc.a.VIDEO_COLLECTION)),xm(Am,Em.a.WIDGET_VIDEO_COLLECTION,km(Em.a.WIDGET_VIDEO_COLLECTION)),xm(Am,Cc.a.CLIP,Om(Cc.a.CLIP)),xm(Am,Cc.a.CLIP_COLLECTION,Om(Cc.a.CLIP_COLLECTION)),xm(Am,Cc.a.INTERACTIVE,(function(e,t){i.a.hooklessFetch(e.store,o.a.currentUser((function(n){var r="video[thumbnail],thumbnail,clip[video[thumbnail]],_canUpdate,_isClickViewContent,_timepoints,_canBeConsumed";n.isAuthenticated&&(r+=",favouritedby{id:".concat(n.id,"}"));var i=e.resource.replace(Cc.a.INTERACTIVE,r);t(Object.assign(Object.assign({},e),{resource:i}))}),(function(){return t(e)})))})),xm(Am,"(customerSettings)",(Rm="(customerSettings)",function(e,t){var n=Pm.map((function(e){return"type=".concat(e)})).join("&"),r=e.resource.replace(Rm,n);t(Object.assign(Object.assign({},e),{resource:r}))})),xm(Am,"(userSettings)",function(e){return function(t,n){var r=Im.map((function(e){return"type=".concat(e)})).join("&"),i=t.resource.replace(e,r);n(Object.assign(Object.assign({},t),{resource:i}))}}("(userSettings)")),Am);var jm=n(163);function Nm(e){return(Nm="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 Dm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bm(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 Um(e,t){return(Um=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mm(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fm(e);if(t){var i=Fm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vm(this,n)}}function Vm(e,t){if(t&&("object"===Nm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fm(e){return(Fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hm=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Um(e,t)}(o,e);var t,n,r,i=Mm(o);function o(){return Dm(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{searchResults:{application:P.a.SEARCH,action:A.a.Search.HOME},series:{application:P.a.DEFAULT,action:A.a.Default.SERIES},videoDetails:{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},tagSearch:{application:P.a.SEARCH,action:A.a.Search.HOME},classification:{application:P.a.SUBJECT,action:A.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return ne.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}},{key:"showSearchTips",get:function(){return!1}},{key:"useContextualSearch",get:function(){return!1}}])&&Bm(t.prototype,n),r&&Bm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(jm.BaseSearchAppVariables),zm=n(61),Wm=n(810),Gm=n.n(Wm);function qm(e){return(qm="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 Ym(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Km(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 Xm(e,t){return(Xm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qm(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zm(e);if(t){var i=Zm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $m(this,n)}}function $m(e,t){if(t&&("object"===qm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Zm(e){return(Zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jm=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xm(e,t)}(o,e);var t,n,r,i=Qm(o);function o(){return Ym(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},notifications:{application:P.a.NOTIFICATIONS,action:A.a.Notifications.HOME},shareLink:{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK}}}},{key:"notificationTypesWithAppLinks",get:function(){return[zm.a.VideoReviewReminder,zm.a.VideoReviewAddedToLibrary,zm.a.CustomLibraryVideoAvailable,zm.a.WorkspaceVideoAvailable,zm.a.ExchangeVideoAvailable,zm.a.NewDirectShare,zm.a.MyVideosVideoAvailable]}},{key:"unsupportedNotificationLinks",get:function(){return[zm.a.EditedVideoAvailable,zm.a.VideoReviewAddedToLibrary,zm.a.VideoReviewReminder,zm.a.StaffRequest,zm.a.StaffRequestFulfilled,zm.a.SuggestEdit,zm.a.VideoRequestAvailable,zm.a.VideoRequestDenied,zm.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return Wt.a.EmptyStates.NOTIFICATIONS}},{key:"bellIconColor",get:function(){return"dark"}},{key:"notificationsViewClassNames",get:function(){return"px-3 ".concat(Gm.a.notificationsView)}}])&&Km(t.prototype,n),r&&Km(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(jm.BaseNotificationsAppVariables);var ev=n(130);function tv(e){return(tv="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)}var nv={register:function(){var e=this;ev.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return ne.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new ge.a("No language key provided.")),!1):"object"!==tv(t)?(r.a.ErrorHelper.throw(new ge.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!_a.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new ge.a("No `lang` property provided.")),!1)}};var rv,iv=n(153);function ov(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[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",e[e.ClickView=254]="ClickView",e[e.System=255]="System"}(rv||(rv={}));var av={curriculum:!1},sv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:av},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return is.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===iv.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&ov(t.prototype,n),r&&ov(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var cv=n(176),uv=n(324);function lv(e){return(lv="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 fv(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 pv(e,t){return(pv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dv(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yv(e);if(t){var i=yv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hv(this,n)}}function hv(e,t){if(t&&("object"===lv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yv(e){return(yv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mv=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pv(e,t)}(a,e);var t,n,i,o=dv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).clients={},t.enrichers={},xd.get("application:options").set(null!=e?e:{}),t.bindNavigationListener(),t}return t=a,(n=[{key:"name",get:function(){return Te.a.Analytics}},{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(uv.a.ANALYTICS,cv.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}},{key:"registerEnricher",value:function(e,t){this.validateConstructor(e);var n=new e(t);return this.enrichers[n.name]=n,this.registerMiddleware(_a.bind(n.enrich,n)),this}},{key:"hasEnricher",value:function(e){return!!this.enrichers[e.prototype.name]}},{key:"onEvent",value:function(e){var t=this;this.executeMiddleware(e,(function(e){t.transport.publish(e)}))}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||r.a.ErrorHelper.throw(new ge.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return fy.a.isFunction(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new ge.a("A client class with the name: ".concat(t," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.a.ErrorHelper.throw(new ge.a("An enricher class named: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(e){var t;this.executeMiddleware=(t=this.executeMiddleware,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"executeMiddleware",value:function(e,t){t(e)}},{key:"bindNavigationListener",value:function(){this.listenTo(p.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(e,t){Su.a.logNavigate(e,t)}}])&&fv(t.prototype,n),i&&fv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function vv(e){return(vv="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 gv(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 bv(e,t,n){return t&&gv(e.prototype,t),n&&gv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _v(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}function Sv(e,t){return(Sv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cv(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ev(e);if(t){var i=Ev(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tv(this,n)}}function Tv(e,t){if(t&&("object"===vv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ev(e){return(Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ov=function(e){_v(n,e);var t=Cv(n);function n(){return wv(this,n),t.apply(this,arguments)}return bv(n,[{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}},{key:"publish",value:function(e){this.getChannel().trigger(cv.a.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){fy.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};_a.isFunction(t.listenTo)?t.listenTo(this.getChannel(),cv.a.Outlet,n):this.listenTo(this.getChannel(),cv.a.Outlet,n)}}]),n}(function(e){_v(n,e);var t=Cv(n);function n(){return wv(this,n),t.apply(this,arguments)}return bv(n)}(ja.Object));function kv(e){return(kv="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 Pv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Av(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 Iv(e,t){return(Iv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xv(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lv(e);if(t){var i=Lv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rv(this,n)}}function Rv(e,t){if(t&&("object"===kv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lv(e){return(Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jv=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iv(e,t)}(o,e);var t,n,r,i=xv(o);function o(){return Pv(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return"UserDataEnricher"}},{key:"initialize",value:function(){this.user=xd.get("application:options").get("user")}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("user",this.getUser(this.user)),t(e)}},{key:"getUser",value:function(e){return{country:e.countryCode,customerId:e.customerId,id:e.id,role:e.role}}}])&&Av(t.prototype,n),r&&Av(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Re),Nv=n(246);function Dv(e){return(Dv="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 Bv(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 Uv(e,t){return(Uv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mv(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fv(e);if(t){var i=Fv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vv(this,n)}}function Vv(e,t){if(t&&("object"===Dv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fv(e){return(Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hv=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uv(e,t)}(a,e);var t,n,i,o=Mv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).productName=e.productName,t.productVersion=e.productVersion,t}return t=a,(n=[{key:"name",get:function(){return"CoreContextEnricher"}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("coreContext",this.getCoreContext()),t(e)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return Ls.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var e=Nv.a.getOperatingSystem(),t=Nv.a.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}}])&&Bv(t.prototype,n),i&&Bv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(Re),zv=n(330);function Wv(e){return(Wv="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 Gv(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 qv(e,t){return(qv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yv(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xv(e);if(t){var i=Xv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Kv(this,n)}}function Kv(e,t){if(t&&("object"===Wv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xv(e){return(Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qv=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qv(e,t)}(o,e);var t,n,r,i=Yv(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===o.type}}])&&Gv(t.prototype,n),r&&Gv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function $v(e){return($v="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 Zv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jv(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 eg(e,t){return(eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tg(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rg(e);if(t){var i=rg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ng(this,n)}}function ng(e,t){if(t&&("object"===$v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rg(e){return(rg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Qv.type="BaseAnalyticsClient";var ig=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}(a,e);var t,n,i,o=tg(a);function a(){return Zv(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return"DebuggerClient"}},{key:"shouldLog",value:function(){return X.a.isDevelopment}},{key:"log",value:function(e){var t=_a.clone(e);for(var n in e){var i=t[n];(i instanceof r.a.Model||i instanceof r.a.Collection)&&(t[n]=i.toJSON())}console.log("Event Debugger: ",t)}}])&&Jv(t.prototype,n),i&&Jv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(Qv),og=n(204),ag=n(290),sg={getUser:function(e){return new Promise((function(t){i.a.hooklessFetch(e.store,o.a.currentUser((function(n){var r,a;if(n.isAuthenticated){var s=new Sd(2),c=function(){s.decrement(),s.getValue()>0||t(sg.mapCurrentUserToAnalyticsUser(n,r,a))};i.a.hooklessFetch(e.store,o.a.user(n.id,(function(e){r=e,c()}))),i.a.hooklessFetch(e.store,ag.a.customer(n.customerId,(function(e){a=e,c()})))}else t(null)})))}))},mapCurrentUserToAnalyticsUser:function(e,t,n){var r,i=jl.a.getUserType(t);return{id:null==e?void 0:e.id,countryCode:null==e?void 0:e.countryCode,contentRegion:null==e?void 0:e.contentRegion,instanceRegion:null==e?void 0:e.instanceRegion,customerId:null==e?void 0:e.customerId,customerGuid:null==n?void 0:n.customerGuid,customerName:null==e?void 0:e.customerName,crmId:null==n?void 0:n.crmId,role:null==e?void 0:e.role,userGroup:i,yearGroup:i===wi.a.Staff?"staff":null===(r=null==t?void 0:t.masterYearGroup)||void 0===r?void 0:r.name}}},cg={logError:function(e){fy.a.isFunction(null===trackJs||void 0===trackJs?void 0:trackJs.track)&&trackJs.track(e)}},ug={formatData:function(e){var t=og.a.formatData(e),n={};return e.plugin&&(n.plugin=e.plugin),Object.assign(Object.assign({},n),t)}},lg=l.a.Router.prototype._routeToRegExp("share/:id(/)"),fg=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)");var pg=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())}))},dg=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)"),hg=l.a.Router.prototype._routeToRegExp("videos/embed/:videoId(/)");var yg=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});yg.addInitializationStep((function(e,t){e.registerLayout(O,od).registerLayout(k,wd),t(e)})).addInitializationStep((function(e,t){Ce.a.registerInstance(Ra,{size:100}),t(e)})).addInitializationStep((function(e,t){Ce.a.registerInstance(Ga,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep((function(e,t){var n,o,a,s,c=Object(Wy.combineReducers)({flightData:i.a.FlightReducer,applicationData:Ky,viewModelData:Zy}),u=i.a.createMiddleware({fetchData:Cm(e,Lm),bootstrappedData:window.bootstrapData||{},defaultExpiryTime:os.a.STANDARD}),l=(o=(n={oldVersionError:am,authenticationError:mm}).oldVersionError,a=n.authenticationError,function(e){return function(t){return function(n){var i,s,c=n;if(n.type===Jy.Actions.API_ERROR&&a&&(null===(i=null==c?void 0:c.xhr)||void 0===i?void 0:i.status)===ln.a.Unauthorized)return Ca.c.throw(new a("dark"));if(n.type===Jy.Actions.API_RESPONSE){var u=e.getState().applicationData.version,l=null===(s=null==c?void 0:c.xhr)||void 0===s?void 0:s.getResponseHeader("X-App-Version");o&&u&&l&&l!==u&&r.a.ErrorHelper.delayedThrow("old-version-error",new o(u,l,"dark"),18e4),t(n)}else t(n)}}}),f=Object(Wy.createStore)(c,Object(Wy.applyMiddleware)(u,Tm,l));s=f,e.registerStore(s),t(),delete window.bootstrapData})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:Sc.a.Success,type:qa.a.Success},defaultErrorAlert:{heading:Sc.a.Fail,type:qa.a.Fail},alertViewCtor:dc};Ce.a.registerSingleton(new qa.b(n));var r=Ce.a.getInstance(Ya.a.ALERT),i={cache:wa.Fifo,dataProvider:La.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};Ce.a.registerDataService(_c,i).registerDataService(ms,i).registerDataService(tc,i);var o={store:e.store};Ce.a.registerInstance(Oc,o).registerInstance(Ac,o).registerInstance(xc,o).registerInstance(Lc,o);var a={cache:wa.Fifo,dataProvider:La.Notifications,alertService:r};Ce.a.registerDataService(Rs,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){Ce.a.registerInstance(zy,{imageUrls:Wt.a}).registerInstance(Dy).registerInstance(dy,{store:e.store}).registerInstance(Ty,{store:e.store}).registerInstance(eh).registerInstance(Ey.a).registerInstance(ly).registerInstance(uy).registerInstance(ch);var n=new Sd(2),r=function(){n.decrement(),n.getValue()>0||(Ce.a.releaseInstance(is.a.Language),Ce.a.releaseInstance(kc.a.FlightConfig),t(e))};Ce.a.getInstance(is.a.Language).getLanguageConfig((function(e){ne.a.setConfig(e),r()})),Ce.a.getInstance(kc.a.FlightConfig).getConfig((function(e){Ce.a.registerInstance(Oh,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),r()}))})).addInitializationStep((function(e,t){var n,r,o,a=Ce.a.getInstance(kc.a.FlightConfig),s=Ce.a.getInstance(kc.a.FlightUser),c=new Sd(3),u=function(){c.decrement(),c.getValue()>0||(r.isAuthenticated?p(n.instanceRegion):f())},f=function(){var t=l.a.history.getFragment(_e.LocationUtils.GetCurrentPath()),r=lg.test(t),o=fg.test(t);if(r||o){var a="";r?a=l.a.Router.prototype._extractParameters(lg,t)[0]:o&&(a=l.a.Router.prototype._extractParameters(fg,t)[0]),a?i.a.hooklessFetch(e.store,un.a.getShareObject(a,(function(e){return p(e.ownerInstanceRegion)}),(function(){return p(n.instanceRegion)}))):p(n.instanceRegion)}else p(n.instanceRegion)},p=function(i){var a=new mv({user:r,config:n});Ce.a.registerSingleton(a),a.registerTransport(Ov),a.registerClient(ig),a.registerClient(zv.a,{productName:"lite.web",productVersion:o,regionName:i,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:function(){return sg.getUser(e)},shouldLog:og.a.shouldLog,formatData:ug.formatData,logError:cg.logError}),a.registerEnricher(Hv,{productName:"ClickView Primary",productVersion:o}),a.registerEnricher(jv);var s=we.b.get(Se.a.PLUGIN);(null==s?void 0:s.consumerKey)&&!a.hasEnricher(Me)&&a.registerEnricher(Me,{consumerKey:s.consumerKey}),Ce.a.releaseInstance(kc.a.FlightConfig),Ce.a.releaseInstance(kc.a.FlightUser),t(e)};a.getVersion((function(e){o=e,u()})),a.getConfig((function(e){n=e,u()})),s.getCurrentUser((function(e){r=e,u()}),(function(){u()}))})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:_a.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Ce.a.registerInstance(Hm).registerInstance(Jm),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(te.a,ru).registerErrorHandler(Kc.a,iu).registerErrorHandler(Yc,tu).registerErrorHandler(Ht.a,nu).registerErrorHandler(ee.a,ru).registerErrorHandler(Xc.a,ru).registerErrorHandler(Qc.a,ru).registerErrorHandler($c.a,nu).registerErrorHandler(Zc.a,ru).registerErrorHandler(Jc.a,nu).registerErrorHandler(eu.a,ru).registerErrorHandler(yn.a,ou).registerErrorHandler(Ln.a,au),t()})).addInitializationStep((function(e,t){function n(){r.a.ErrorHelper.throw(new ee.a)}e.registerApplication(on).registerApplication(yo).registerApplication(Mr).registerApplication(si).registerApplication(yr).registerApplication(kr).registerApplication(Qr).registerApplication(gi).registerApplication(qi).registerApplication(Oo).registerApplication(Uo),i.a.hooklessFetch(e.store,o.a.currentUser((function(r){r.isAuthenticated?i.a.hooklessFetch(e.store,o.a.permissions((function(n){if(n[a.a.StudentExperience])return e.registerApplication(sa).registerApplication(ba),void t(e);e.registerApplication(Ft).registerApplication(Ni).registerApplication(dt).registerApplication(ro).registerApplication(It).registerApplication(Qo),t(e)}),n)):t(e)}),n))})).addInitializationStep((function(e,t){nv.register(),t(e)})).addInitializationStep((function(e,t){Ce.a.registerSingleton(new sv({onlineRole:iv.a.Staff,customerType:rv.Primary})),t(e)})),yg.addStartUpStep((function(e,t,n){Ce.a.getInstance(kc.a.FlightConfig).getConfig((function(){X.a.setUpVariables({isDevelopment:!1}),n(e,t),Ce.a.releaseInstance(kc.a.FlightConfig)}))})).addStartUpStep((function(e,t,n){return pg(this,void 0,void 0,regeneratorRuntime.mark((function s(){var c,f,d,h,y,m,v;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null==(c=we.b.get(Se.a.PLUGIN))?void 0:c.isPlugin)){s.next=4;break}return n(e,t),s.abrupt("return");case 4:if(f=l.a.history.getFragment(r.a.LocationUtils.GetCurrentPath()),!(dg.test(f)||hg.test(f))){s.next=9;break}return n(e,t),s.abrupt("return");case 9:return s.prev=9,s.next=12,i.a.fetchAsync(e.store,o.a.currentUser());case 12:if((d=s.sent).isAuthenticated){s.next=16;break}return n(e,t),s.abrupt("return");case 16:return s.next=18,i.a.fetchAsync(e.store,o.a.permissions());case 18:if(!s.sent[a.a.StudentExperience]){s.next=22;break}return n(e,t),s.abrupt("return");case 22:return s.next=24,i.a.fetchAsync(e.store,I.a.customerSettings(d.customerId));case 24:if(h=s.sent,y=R(h,x.a.LiteUpgradeComplete),m=R(h,x.a.LiteUpgradeTypeCustomer),!y.value&&m.value){s.next=30;break}return n(e,t),s.abrupt("return");case 30:return s.next=32,i.a.fetchAsync(e.store,ag.a.customer(d.customerId));case 32:v=s.sent,window.Intercom("boot",{api_base:"https://api-iam.intercom.io",app_id:"jllvryg9",name:d.givenName+" "+d.familyName,email:d.email,user_id:d.id,company:{id:v.crmId,name:v.name},avatar:{type:"avatar",image_url:d.avatar}}),u.Radio.channel(p.a.SHELL).on(_e.EventNames.ROUTE,(function(){window.Intercom("update")})),L.a.setHasIntercom(),n(e,t),s.next=43;break;case 40:s.prev=40,s.t0=s.catch(9),n(e,t);case 43:case"end":return s.stop()}}),s,null,[[9,40]])})))})),yg.start()},function(e,t){e.exports=v},function(e,t){e.exports=g},function(e,t){e.exports=b},function(e,t){e.exports=w}])}));
|