@clickview/library-editor 1.1.28-rc.0 → 1.1.28

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.
@@ -5,4 +5,4 @@
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var r=n(994),o=n(995),i=n(996);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=p(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n),o=(t=c(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|h(e.length);return 0===(t=c(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?c(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=c(t,e<0?0:0|h(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|h(e.length);t=c(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function d(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return _(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,o){var i,a=1,c=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(t,i)===s(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(t,i+p)!==s(e,p)){f=!1;break}if(f)return i}return-1}function m(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))return a;t[n+a]=c}return a}function S(t,e,n,r){return H(U(e,t.length-n),t,n,r)}function w(t,e,n,r){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function O(t,e,n,r){return w(t,e,n,r)}function C(t,e,n,r){return H(F(e),t,n,r)}function k(t,e,n,r){return H(function(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function _(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,c,u,s=t[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return s(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?c(t,e):void 0!==n?"string"==typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?_(this,0,t):d.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=t.slice(e,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=M(t[i]);return o}function A(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function x(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function N(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,r,i){return i||N(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,i){return i||N(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var o=e-t;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=0,a=1,c=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=u.isBuffer(t)?t:U(new u(t,r).toString()),c=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%c]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function M(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(257))},function(t,e,n){"use strict";var r=n(477);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(479);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(480);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(481);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(482);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(483);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(198);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(484);n.o(l,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(485);n.o(f,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(486);n.o(p,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(487);n.o(h,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(488);n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(489);n.o(d,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var b=n(490);n.o(b,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(491);n.o(v,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(492);n.o(g,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(493);n.o(m,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var S=n(494);n.o(S,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(495);n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(496);n.o(O,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(497);n.o(C,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var k=n(498);n.o(k,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(499);n.o(E,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(500);n.o(_,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(501);n.o(R,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}))},function(t,e,n){"use strict";var r=n(478);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(503);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(506);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(513);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(514);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(515);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(516);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(517);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(518);n.o(l,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));n(519);var f=n(520);n.o(f,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(521);n.o(p,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(522);n.o(h,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(199);n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(523);n.o(d,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var b=n(524);n.o(b,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(525);n.o(v,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(526);n.o(g,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(527);n.o(m,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var S=n(528);n.o(S,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(200);n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(529);n.o(O,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var C=n(530);n.o(C,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var k=n(531);n.o(k,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(532);n.o(E,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(533);n.o(_,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(534);n.o(R,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(201);n.o(P,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));n(535);var T=n(536);n.o(T,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables}));var A=n(537);n.o(A,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));var x=n(538);n.o(x,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables}));var L=n(539);n.o(L,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables}));var D=n(540);n.o(D,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables}));var j=n(541);n.o(j,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables}));var N=n(542);n.o(N,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables}));var I=n(543);n.o(I,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables}));var V=n(544);n.o(V,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables}));var B=n(545);n.o(B,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables}));var M=n(546);n.o(M,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables}));var U=n(547);n.o(U,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables}));var F=n(548);n.o(F,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables}));var H=n(549);n.o(H,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables}));var z=n(550);n.o(z,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables}));var q=n(551);n.o(q,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables}));var W=n(552);n.o(W,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(P,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));var Y=n(553);n.o(Y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables}));var G=n(554);n.o(G,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables}));var J=n(555);n.o(J,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables}));var K=n(556);n.o(K,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var Q=n(557);n.o(Q,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables}));var Z=n(558);n.o(Z,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables}));var $=n(559);n.o($,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables}));var X=n(560);n.o(X,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables}));var tt=n(561);n.o(tt,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return tt.BaseNotificationsAppVariables})),n.o(tt,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return tt.BaseSearchAppVariables}))},function(t,e,n){"use strict";var r=n(504);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(505);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(507);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(508);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(509);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));n(510);var a=n(511);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(512);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t[t.MultipleChoice=1]="MultipleChoice",t[t.ShortAnswer=2]="ShortAnswer",t[t.TrueOrFalse=3]="TrueOrFalse",t[t.Annotation=4]="Annotation",t[t.Image=5]="Image",t[t.MissingWord=6]="MissingWord"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t.Pink="colour:0",t.Pizazz="colour:1",t.Emerald="colour:2",t.PictonBlue="colour:3",t.EastSide="colour:4",t.Portage="colour:5"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero",t[t.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(563);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(t,e){},function(t,e,n){"use strict";var r=n(565);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(566);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(567);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(568);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(569);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(570);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(571);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(573);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(574);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(575);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(576);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(577);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(578);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(579);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(43);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,i;return e=t,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&o(e.prototype,n),i&&o(e,i),t}();function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(e.prototype,n),o&&a(e,o),t}();n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return c}))},function(t,e,n){"use strict";var r=n(2),o=n(6),i=n(36),a=n(3);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h="shared.tooManyFiles",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(i,t);var e,n,r,o=l(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,a.a.getPhrase(h,"title"))}return e=i,(n=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:a.a.getPhrase(h,"heading"),text:a.a.getPhrase(h,"body"),buttons:[{text:a.a.getPhrase(h,"okay"),className:"btn btn-primary",success:!0}]}}}])&&u(e.prototype,n),r&&u(e,r),i}(i.a),d=n(240),b=n(234),v=n(44);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return E}));var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(c,t);var e,n,i,a=O(c);function c(){return m(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(t){if(!this.locked){t.preventDefault();var e=t.originalEvent;if(d.a.isFileDrag(t)){var n=[];if(e.dataTransfer.items)for(var i=0;i<e.dataTransfer.items.length;i++)"file"===e.dataTransfer.items[i].kind&&n.push(e.dataTransfer.items[i].getAsFile());else for(var a=0;a<e.dataTransfer.files.length;a++){var c=e.dataTransfer.files[a];n.push(c)}n.length>1&&!this.options.acceptMultiple?r.a.ErrorHelper.throw(new y):(o.Radio.channel(this.options.channelName).trigger(v.a.FILES_SELECTED,n,b.a.DragDrop),e.dataTransfer.items?e.dataTransfer.items.clear():e.dataTransfer.clearData())}}}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}}])&&S(e.prototype,n),i&&S(e,i),c}(r.a.Behavior)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){t.exports={videoGroupList:"_38Usa"}},function(t,e,n){t.exports={partialSubFolder:"_1ltue"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.title:i,e))+'"></h6>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.requestedBy:i,e))+'"></p>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.date:i,e))+'"></p>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.badge:i,e))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selectButton:i,e))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={content:"_3_8yg"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={button:"_3owCz"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.video:i,e))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' partial-loading-background"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+' partial-loading-background mt-1"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subSubText:i,e))+' partial-loading-background mt-1"></div>'},useData:!0})},function(t,e,n){t.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"z4_PP",subText:"_1CvDv"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.back:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.detailsTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.chaptersTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learningTab:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background">&nbsp</button>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textbox:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.player:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={player:"H6oUk"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return' <div class="col-12 pr-3 py-1 '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.videoRow:c,e))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n <div class="partial-loading-background d-inline-block '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.text:c,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.views:c,e))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortingRow:c,e))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.bulkCheckbox:c,e))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.videoList:c,e))+'">\r\n'+(null!=(c=n.each.call(null!=e?e:t.nullContext||{},null!=(c=null!=e?e.options:e)?c.videoItems:c,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</div>"},useData:!0,useDepths:!0})},function(t,e,n){t.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.toggle:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={row:"rShIv"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled>&nbsp</button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled>&nbsp</button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={button:"_1CETN"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.multilineSubText:i,e))+'"></div>\r\n <div class="my-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_2x-al",item:"hFvEo"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth1:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth3:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e,n){t.exports=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,e,n,r){var o,i,a,c=e||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<t.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=t[o]<<8*(s+r*(a%4));return{value:c,binLen:8*t.length+n}}function r(t,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,e,n){return function(t,e,n,r){var o,i,a,c;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<t.length;o+=2){if(i=parseInt(t.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*t.length+n}}(t,e,n,o)};case"TEXT":return function(t,e,n){return function(t,e,n,r,o){var i,a,c,u,s,l,f,p,h=0,y=n||[0],d=(r=r||0)>>>3;if("UTF8"===e)for(f=-1===o?3:0,c=0;c<t.length;c+=1)for(a=[],128>(i=t.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===e&&1!==o||"UTF16LE"!==e&&1===o,c=0;c<t.length;c+=1){for(i=t.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:y,binLen:8*h+r}}(t,r,e,n,o)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,y=-1===o?3:0,d=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==d&&d<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(u=t.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=e.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(y+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(t,n,r,o)};case"BYTES":return function(t,e,n){return function(t,e,n,r){var o,i,a,c,u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<t.length;i+=1)o=t.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*t.length+n}}(t,e,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,e,r){return function(t,e,r,o){return n(new Uint8Array(t),e,r,o)}(t,e,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,e,r){return n(t,e,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t,n,r,o){switch(t){case"HEX":return function(t){return function(t,e,n,r){var o,i,a="",c=e/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=t[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(t,n,r,o)};case"B64":return function(t){return function(t,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?t[i+1>>>2]:0,s=i+2<f?t[i+2>>>2]:0,c=(t[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?e.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(t,n,r,o)};case"BYTES":return function(t){return function(t,e,n){var r,o,i="",a=e/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=t[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(t,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(c+n*(r%4))&255;return i}(t,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(i+n*(r%4))&255;return a}(t,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(t){var e={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},r="Output length must be a multiple of 8";if(e.outputUpper=n.outputUpper||!1,n.b64Pad&&(e.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);e.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);e.outputLen=n.shakeLen}if("boolean"!=typeof e.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof e.b64Pad)throw new Error("Invalid b64Pad formatting option");return e}function a(t,e){return t<<e|t>>>32-e}function c(t,e,n){return t^e^n}function u(t,e,n){return t&e^t&n^e&n}function s(t,e){var n=(65535&t)+(65535&e);return(65535&(t>>>16)+(e>>>16)+(n>>>16))<<16|65535&n}function l(t,e,n,r,o){var i=(65535&t)+(65535&e)+(65535&n)+(65535&r)+(65535&o);return(65535&(t>>>16)+(e>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(t,e){var n,r,o,i,f,p,h,y,d=[];for(n=e[0],r=e[1],o=e[2],i=e[3],f=e[4],h=0;h<80;h+=1)d[h]=h<16?t[h]:a(d[h-3]^d[h-8]^d[h-14]^d[h-16],1),p=h<20?l(a(n,5),(y=r)&o^~y&i,f,1518500249,d[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,d[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,d[h]):l(a(n,5),c(r,o,i),f,3395469782,d[h]),f=i,i=o,o=a(r,30),r=n,n=p;return e[0]=s(n,e[0]),e[1]=s(r,e[1]),e[2]=s(o,e[2]),e[3]=s(i,e[3]),e[4]=s(f,e[4]),e}function h(t,e,n,r){for(var o,i=15+(e+65>>>9<<4),a=e+n;t.length<=i;)t.push(0);for(t[e>>>5]|=128<<24-e%32,t[i]=4294967295&a,t[i-1]=a/4294967296|0,o=0;o<t.length;o+=16)r=p(t.slice(o,o+16),r);return r}return function(e){function n(t,n,o){var i=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=e.call(this,t,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(t){return t.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(t,e,n,o){var i="hmacKey must include a value and format";if(!e)throw new Error(i);if(void 0===e.value||!e.format)throw new Error(i);return r(e.format,e.encoding||"UTF8",n)(e.value)}(0,a.hmacKey,i.u)),i}return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,e),n}(function(){function t(t,e,n){var r=n||{};if(this.h=e,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=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var e,n=0,r=this.T>>>5,o=this.s(t,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(e=0;e<c;e+=r)n+this.T<=i&&(this.U=this.A(a.slice(e,e+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},t.prototype.getHash=function(t,e){var n,r,a=this.m,c=i(e);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(t,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));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 u(r)},t.prototype.setHMACKey=function(t,e,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 o=r(e,(n||{}).encoding||"UTF8",this.u);this.B(o(t))},t.prototype.B=function(t){var e,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<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=r;)t.value.push(0);for(e=0;e<=r;e+=1)this.N[e]=909522486^t.value[e],this.S[e]=1549556828^t.value[e];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,e){var n=i(e);return o(t,this.m,this.u,n)(this.o())},t.prototype.o=function(){var t;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var e=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),this.R(e,this.m,this.T,t,this.m)},t}())}()},function(t){t.exports=JSON.parse('{"a":"1.0.19-rc.0"}')},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=n(1),o=n(4),i=n(233);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],h=["sort"],y=["release-date","subjects"],d=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,e);var n,i,a,l=s(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,t)}return n=f,a=[{key:"queryParamWhitelist",get:function(){return[].concat(p,y,h)}},{key:"eventWhitelist",get:function(){return t={},e=o.UserAction.Navigate,n=function(t){return!r.isArray(t.data)&&t.data.currentLocation},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}}],(i=[{key:"initialize",value:function(){this.bootstrap(this.options.trackingId,this.options.userId)}},{key:"shouldLog",value:function(t){var e=f.eventWhitelist[t.type];return r.isBoolean(e)?e:!!r.isFunction(e)&&e(t)}},{key:"log",value:function(t){this.logPageView(t)}},{key:"logPageView",value:function(t){if(t&&!r.isArray(t.data)){var e=t.data.currentLocation;e&&this.ga("set","page",e),this.ga("send","pageview")}}},{key:"bootstrap",value:function(e,n){this.ga||(t.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:e,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:f.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}},{key:"name",get:function(){return"GoogleAnalyticsClient"}}])&&c(n.prototype,i),a&&c(n,a),f}(i.a)}).call(this,n(984))},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"multiple"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'accept="'+t.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=e?e.mimeType:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=e?e.acceptMultiple:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=e?e.mimeType:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" />"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.buttonText:i,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.spinnerEl:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return(null!=(i=n.each.call(a,null!=e?e.buttons:e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=e?e.spinnerButton:e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return' <button type="'+s("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:u)?a.call(c,{name:"type",hash:{},data:o}):a)+'" class="'+s("function"==typeof(a=null!=(a=n.className||(null!=e?e.className:e))?a:u)?a.call(c,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(c,null!=e?e.close:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+s("function"==typeof(a=null!=(a=n.text||(null!=e?e.text:e))?a:u)?a.call(c,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(t,e,n,r,o){return'data-dismiss="modal"'},5:function(t,e,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return'<div class="modal-dialog '+s("function"==typeof(a=null!=(a=n.size||(null!=e?e.size:e))?a:u)?a.call(c,{name:"size",hash:{},data:o}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:u)?a.call(c,{name:"title",hash:{},data:o}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=e?e.content:e))?a:u)?a.call(c,{name:"content",hash:{},data:o}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(c,null!=e?e.buttons:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))?i:""},useData:!0})},function(t,e,n){t.exports=n(985).default},function(t,e,n){t.exports={svgContainer:"_1nWzn"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</span> "+u(c(null!=(i=null!=e?e.options:e)?i.createText:i,e))+" "+u("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:l)?a.call(s,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)?a.call(s,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(t,e,n){"use strict";var r=n(453);n.d(e,"BaseCollectionIdentifier",(function(){return r.a}));n(454),n(455),n(456),n(150),n(457),n(458),n(459),n(460)},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.link:i,e))+'">'+c("function"==typeof(a=null!=(a=n.appLinkText||(null!=e?e.appLinkText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">\r\n <span class=" d-inline-block '+u(c(null!=(i=null!=e?e.options:e)?i.svgClass:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.typeSvg:i,e))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertContent:i,e))+'">\r\n <p class="p-0 m-0 pb-1 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'">'+u("function"==typeof(a=null!=(a=n.heading||(null!=e?e.heading:e))?a:l)?a.call(s,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.message:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=e?e.message:e))?a:l)?a.call(s,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(s,null!=e?e.appLink:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">&times;</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return' <div class="left-nav-region '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.leftNav:i,e))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.topNav:i,e))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sizingBox:i,e))+'">\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showLeftNav:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=e?e.options:e)?i.contentBoxClassName:i,e))+'">\r\n <div class="content-region container px-0 '+c(a(null!=(i=null!=e?e.options:e)?i.contentContainerClassName:i,e))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBox:i,e))+" "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBoxWithIntercom:i,e))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return"ClickView "+a(t.lambda(null!=(i=null!=e?e.options:e)?i.currentYear:i,e))+" | "+a((n.lang||e&&e.lang||u).call(c,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||e&&e.lang||u).call(c,"version",{name:"lang",hash:{version:null!=(i=null!=e?e.options:e)?i.version:i},data:o}))},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropMask:i,e))+'"></div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropContent:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.border:i,e))+'">\r\n <h1>'+u("function"==typeof(a=null!=(a=n.fileDropText||(null!=e?e.fileDropText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropArea:i,e))+'"></div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.unreadCount:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.unreadCount:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.unreadCount:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.heading:i,e))+"</h4>\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"<p>"+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<img src="'+c(a(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+c(a(null!=(i=null!=e?e.options:e)?i.imageClass:i,e))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.heading:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.description:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.actionText:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+" "+c(a(null!=(i=null!=e?e.options:e)?i.iconClass:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.icon:i,e))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.content:i,e))+"</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showActionText:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.notificationTime:i,e))+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasNotifications:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.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 '+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.notificationsContainer:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={notificationsContainer:"_3BMCf"}},function(t,e,n){t.exports=n(993).default},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.confirmSelectionText:i,e))?i:"")+"\r\n</span> "},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="cursor-pointer svg-container '+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.searchInfoSvg:i,e))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,e))+'">'+s(u(e,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u,s=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<span class="d-inline-block '+s(t.lambda(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.termContainer:c,e))+'">\r\n'+(null!=(c=n.each.call(l,null!=e?e.term:e,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=e?e.description:e))?u:t.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchContextTag:i,e))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=e?e.searchTag:e))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n</span>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=t.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.removeRecent:i,e))+'">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){t.exports={removeRecent:"d1QVW"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.playIcon:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){return"data-"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.playSvgContainer:i,e))+'" '+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"},5:function(t,e,n,r,o){return'style="display: none;"'},7:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.durationOverlay:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.duration:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.url:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+t.escapeExpression(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.duration:i,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"aligned"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.type:i,e))+": "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,e))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<a class="row" href="'+c(t.lambda(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.collection:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.coverContainer:i,e))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textContainer:i,e))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchInput:i,e))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=e?e.options:e)?i.libraryText:i,e))+'" aria-label="Search">\r\n</div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchIcons:i,e))+'">\r\n <span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+' search-btn">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showCloseButton:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+"</div>\r\n"},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+' close-btn">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n"},4:function(t,e,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showPartial:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){t.exports={searchBar:"_2oChq"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.avatar:i,e))+'" style="background-image: url(\''+c(a(null!=(i=null!=e?e.options:e)?i.avatar:i,e))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block svg-container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.arrow:i,e))+'">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.arrowSvg:i,e))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.iconSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return(null!=(i=a(null!=(i=null!=e?e.options:e)?i.prefix:i,e))?i:"")+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.title:i,e))+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.iconSvg:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){t.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="dropdown-item '+u(c(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'">\r\n <div class="m-0 '+u(c(null!=(i=null!=e?e.options:e)?i.displayName:i,e))+'"><strong>'+u("function"==typeof(a=null!=(a=n.displayName||(null!=e?e.displayName:e))?a:l)?a.call(s,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+u("function"==typeof(a=null!=(a=n.customerName||(null!=e?e.customerName:e))?a:l)?a.call(s,{name:"customerName",hash:{},data:o}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"text-danger "+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.errorMargin:i,e))},3:function(t,e,n,r,o){return"mr-3"},5:function(t,e,n,r,o){return"text-danger"},7:function(t,e,n,r,o){return"text-muted"},9:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'%" aria-valuenow="'+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.isDone:i,{name:"unless",hash:{},fn:t.program(12,o,0),inverse:t.noop,data:o}))?i:"")+' <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.hiddenCancel:i,e))+'" title="'+u((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},12:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},14:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+u((n.lang||e&&e.lang||c).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+u((n.lang||e&&e.lang||c).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+u(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+' align-middle" title="'+u((n.lang||e&&e.lang||c).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+'">\r\n '+u(c(null!=(i=null!=e?e.options:e)?i.name:i,e))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.program(7,o,0),data:o}))?i:"")+' progress-text">'+u(c(null!=(i=null!=e?e.options:e)?i.status:i,e))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actions:i,e))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(11,o,0),inverse:t.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressDropdown:i,e))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"><span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.uploadButtonSvg:i,e))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.uploadSvg:i,e))?i:"")+"</span>"+c((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasLibraries:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.itemCount:i,e))+'">'+c("function"==typeof(a=null!=(a=n.items||(null!=e?e.items:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hasErrors:e,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<a class="navbar-brand text-hide align-top '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.logoContainer:i,e))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" d="M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"/>\r\n <path fill="#F8981D" d="M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBarContainer:i,e))+'">\r\n <div class="search-bar-region container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionButtons:i,e))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(t,e,n){t.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(t,e,n){t.exports={topNav:"_3xqNh"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i,a;t.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=e?e.icon:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.count:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{};return(null!=(i=n.if.call(c,null!=e?e.icon:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+t.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.count:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+t.escapeExpression(t.lambda(e,e))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(t,e,n){t.exports={banner:"_1kvBB"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"disabled"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return'title="'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div class="py-2 '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.banner:i,e))+'">\r\n '+a((n.lang||e&&e.lang||u).call(c,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+a((n.lang||e&&e.lang||u).call(c,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r,o,i=n(54),a=n(87),c=n(8),u=n(21),s=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(e){function n(t){var n=e.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=t,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return s(n,e),n.prototype.send=function(e){var n=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var s;s=Object(u.g)(e.content)?t.from(e.content):e.content||"";var f=n.request(e.url,{body:s,encoding:"arraybuffer"===e.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,timeout:e.timeout},(function(t,u,s){if(e.abortSignal&&(e.abortSignal.onabort=null),t)return"ETIMEDOUT"===t.code&&(n.logger.log(c.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(c.a.Warning,"Error from HTTP request. "+t),void o(t);u.statusCode>=200&&u.statusCode<300?r(new a.b(u.statusCode,u.statusMessage||"",s)):o(new i.b(u.statusMessage||"",u.statusCode||0))}));e.abortSignal&&(e.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(t){return this.cookieJar.getCookieString(t)},n}(a.a)}).call(this,n(475).Buffer)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(125),o=n(21),i=function(){function e(){}return e.prototype.writeHandshakeRequest=function(t){return r.a.write(JSON.stringify(t))},e.prototype.parseHandshakeResponse=function(e){var n,i;if(Object(o.g)(e)||void 0!==t&&e instanceof t){var a=new Uint8Array(e);if(-1===(u=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var c=u+1;n=String.fromCharCode.apply(null,a.slice(0,c)),i=a.byteLength>c?a.slice(c).buffer:null}else{var u,s=e;if(-1===(u=s.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");c=u+1;n=s.substring(0,c),i=s.length>c?s.substring(c):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[i,f]},e}()}).call(this,n(475).Buffer)},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(30),i=n(5),a=n(22),c=n(43),u=n(15),s=n(696),l=n.n(s),f=n(249),p=n.n(f);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=b(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:p.a,svg:u.a.getSvg(u.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(p.a.notificationIcon," ").concat(p.a[this.options.color])}},{key:"template",get:function(){return l.a}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Component),S=n(230),w=n(53),O=n(25),C=n(191),k=n(700),E=n.n(k),_=n(465),R=n.n(_),P=n(466),T=n.n(P);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(u,t);var e,n,r,o=D(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,t)}return e=u,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:O.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:R.a,className:"px-1 py-2",viewOptions:{styles:T.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new C.a({collectionPrefix:w.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var t=new S.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",t)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{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 E.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&x(e.prototype,n),r&&x(e,r),u}(r.a.View),V=n(701),B=n.n(V),M=n(702),U=n.n(M);function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(t,e){return!e||"object"!==F(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&q(t,e)}(u,t);var e,n,r,o=W(u);function u(){return H(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS)}},{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 t=new I({childType:S.a.Popover});this.showChildView("notifications",t)}},{key:"renderNotificationStatus",value:function(){var t=i.a.getInstance(a.b.Notification),e=new m({model:t.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",e)}},{key:"viewOptions",value:function(){return U.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return B.a}}])&&z(e.prototype,n),r&&z(e,r),u}(r.a.View),K=n(1),Q=n(6),Z=n(4),X=n(42),tt=n(119),et=n(90),nt=n(3),rt=(n(703),/&/g),ot=/[\W]+/g,it=/\s+/g,at=function(t){if(t)return t.toLowerCase().replace(rt,"and").replace(ot," ").trim().replace(it,"-").substr(0,80)},ct=n(24),ut=n(13),st=n(98);function lt(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function yt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bt(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ut.a;var vt={dataServiceName:a.a.User,dataChannelName:ct.b.USER},gt={getCurrentUserFetchOptions:function(t,e){return Object.assign(Object.assign({},vt),{eventPrefix:w.a.CURRENT_USER,fetchData:function(t){return t.getCurrentUser()},setData:t,onError:e})},currentUser:{dataServiceName:a.a.User,eventName:"".concat(w.a.CURRENT_USER,":sync"),getData:function(t){return t.getCurrentUser()},getInstance:function(t){return i.a.getInstance(a.a.User,t)},beforeOnBeforeRender:!0}},mt={showMask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetSelector,n=t.additionalClasses,r=t.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(mt.getTarget(e)),$(mt.getTarget(e)).addClass("mask-lock"),a}},hideMask:function(t){var e=t||$(".".concat("mask"));e.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),e.remove())},getTarget:function(t){var e=$(t||"#app");if(e.length)return e}},St=n(238),wt=n(75),Ot=n(23);var Ct,kt=function(t){return t&&t.get("filterParam")?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t.get("filterParam"),t.get("filterValue")):{}};!function(t){t[t.HostedLibrary=0]="HostedLibrary",t[t.Exchange=1]="Exchange",t[t.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(Ct||(Ct={}));var Et,_t=n(122),Rt=_t.a.SuggestionLimit,Pt={prepareQuery:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(t+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(e.url,"?q=").concat(t);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(t,e){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:K.partial(Pt.prepareQuery,K,K,e),transform:K.partial(Pt.handleResult,K,t)}}},handleResult:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e===Ot.a.Subjects?Pt.processSubjectResult(t[e]):e===Ot.a.Video?Pt.processVideoResult(t[e]):n.showFolder&&e===Ot.a.Folder?Pt.processFolderResult(t[e]):e===Ot.a.Series?Pt.processSeriesResult(t[e]):e===Ot.a.Tags?Pt.processTagsResult(t[e]):[]},processSubjectResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.thumbnail={url:t.coverUrl},t.cached=!0),t}))):[]},processVideoResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.topics=K.map(t.topics,(function(t){return{name:t}})),t.series={id:t.seriesId,name:t.seriesName},t.thumbnail={url:t.thumbnailUrl},t.cached=!0),t}))):[]},processTagsResult:function(t){if(!t)return[];var e=i.a.getInstance(c.a.SEARCH,this);return t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},e.appLinks.searchResults),{params:{tag:t.name}})),t.cached=!0),t}))},processSeriesResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){var e;return t.series?e=t.series:t.folder&&t.folder.length&&(e=K.first(t.folder)),K.extend({},t,{collectionType:void 0,collection:e})}))):[]},processFolderResult:function(t){return t?(t=Pt.processCollection(t,{limit:Rt.Folder}),K.map(t,(function(t){var e=t.library,n=void 0===e?{}:e;return n.type===Ct.Exchange&&(n.name="Exchange"),K.extend({},t,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.limit,r=void 0===n?Rt.Default:n;return t.slice(0,r)}},Tt={getRecentSearches:function(t,e){var n=e.cacheGet(t);return K.isArray(n)||(n=[]),n},setRecentSearches:function(t,e,n){K.isArray(e)&&n.cacheSet(t,e)},updateRecentSearches:function(t,e,n){var r=n.add,o=n.remove,i=n.query,a=n.limit,c=void 0===a?5:a,u=Tt.getRecentSearches(t,e),s=K.indexOf(u,i);return r&&-1===s&&u.unshift(i),o&&s>-1&&u.splice(s,1),u.length>c&&(u=u.slice(0,c)),Tt.setRecentSearches(t,u,e),u}},At=n(95);function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e){return(jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vt(t);if(e){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(t,e){return!e||"object"!==xt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.auto="auto",t.top="top",t.bottom="bottom",t.left="left",t.right="right"}(Et||(Et={}));var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(i,t);var e,n,r,o=Nt(i);function i(){return Lt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(t){t.stopPropagation()}},{key:"onClickOutside",value:function(){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:Et.bottom,size:"popover-md"}},set:function(t){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(t){var e={};this.view.ui&&(e=K.result(this.view,"ui")),this.view._ui=K.extend({},e,t)}}])&&Dt(e.prototype,n),r&&Dt(e,r),i}(r.a.Behavior),Mt=n(705),Ut=n.n(Mt),Ft=n(706),Ht=n.n(Ft),zt=n(252),qt=n.n(zt);function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jt(t,e,n){return e&&Gt(t.prototype,e),n&&Gt(t,n),t}function Kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qt(t,e)}function Qt(t,e){return(Qt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xt(t);if(e){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $t(this,n)}}function $t(t,e){return!e||"object"!==Wt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xt(t){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var te=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"viewOptions",value:function(){return{styles:qt.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return Ht.a}},{key:"className",get:function(){return"py-2 ".concat(qt.a.tip)}}]),n}(r.a.Component),ee=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return te}}]),n}(r.a.ComponentCollection),ne=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"initialize",value:function(){this.collection=new r.a.Collection([{term:["".concat(nt.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fourthTerm1")),"".concat(nt.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(nt.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(t){this.showChildView(t,new ee({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:qt.a,searchInfoSvg:u.a.getSvg(u.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return Ut.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:Bt,containerSelector:".popover-container",title:nt.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(e){return t.renderTips(e)}}]}}]),n}(r.a.Component),re=n(135),oe=n(707),ie=n.n(oe),ae=n(133),ce=n.n(ae);function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fe(t,e){return(fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==ue(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fe(t,e)}(i,t);var e,n,r,o=pe(i);function i(){return se(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(ct.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(t){var e=this.getUI("contextTag");e&&e.get&&(t.open?e.addClass(ce.a.tagFocus):e.removeClass(ce.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:ce.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return ie.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return ce.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:re.a,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(ce.a.searchContextTag),clearSvg:".".concat(ce.a.svgContainer)}}}])&&le(e.prototype,n),r&&le(e,r),i}(r.a.Component),be=n(708),ve=n.n(be),ge=n(709),me=n.n(ge);function Se(t){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oe(t,e){return(Oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ee(t);if(e){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(t,e){return!e||"object"!==Se(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ee(t){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oe(t,e)}(i,t);var e,n,r,o=Ce(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:me.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onClick",value:function(t){var e=this;return t.stopPropagation(),setTimeout((function(){Q.Radio.channel(e.options.channelName).trigger("remove:recent",e.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return ve.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&we(e.prototype,n),r&&we(e,r),i}(r.a.Component),Re=n(710),Pe=n.n(Re);function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Le(t,e){return(Le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function De(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ne(t);if(e){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}function je(t,e){return!e||"object"!==Te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ne(t){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ie=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Le(t,e)}(u,t);var e,n,o,a=De(u);function u(){return Ae(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getUrl",value:function(){var t=[this.model.get("id")];return this.appVariables.addSlugs&&t.push(at(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t}))}},{key:"viewOptions",value:function(){return{url:this.getUrl(),name:this.model.get("name")}}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Pe.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&xe(e.prototype,n),o&&xe(e,o),u}(r.a.Component),Ve=n(711),Be=n.n(Ve);function Me(t){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function He(t,e){return(He=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=We(t);if(e){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(t,e){return!e||"object"!==Me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function We(t){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&He(t,e)}(i,t);var e,n,r,o=ze(i);function i(){return Ue(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return Be.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&Fe(e.prototype,n),r&&Fe(e,r),i}(r.a.Component),Ge=n(192),Je=n(713),Ke=n.n(Je);function Qe(t){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t,e){return(Xe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nn(t);if(e){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return en(this,n)}}function en(t,e){return!e||"object"!==Qe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nn(t){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xe(t,e)}(u,t);var e,n,o,a=tn(u);function u(){return Ze(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getCollection",value:function(){var t=this.model,e=t.categories,n=t.series;return e&&e.length?{name:e.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){var t=[this.model.get("id")];return this.appVariables.addSlugs&&t.push(at(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t}))}},{key:"renderThumbnail",value:function(){var t=new Ge.a({model:this.model});this.showChildView("thumbnail",t)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return Ke.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&$e(e.prototype,n),o&&$e(e,o),u}(r.a.Component),on=n(286),an=n(714),cn=n.n(an);function un(t){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fn(t,e){return(fn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yn(t);if(e){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hn(this,n)}}function hn(t,e){return!e||"object"!==un(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yn(t){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var dn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fn(t,e)}(u,t);var e,n,o,a=pn(u);function u(){return sn(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getUrl",value:function(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),at(this.model.get("name"))]}))}},{key:"renderThumbnail",value:function(){var t=new Ge.a({model:this.model,classNameOverride:"".concat(on.coverImage," responsive-img")});this.showChildView("cover",t)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:on}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return cn.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&ln(e.prototype,n),o&&ln(e,o),u}(r.a.Component),bn=n(467),vn=n.n(bn),gn=n(468),mn=n.n(gn),Sn=n(469),wn=n.n(Sn),On=n(470),Cn=n.n(On),kn=n(471),En=n.n(kn),_n=n(472),Rn=n.n(_n),Pn=n(473),Tn=n.n(Pn),An=n(474),xn=n.n(An),Ln=n(715),Dn=n.n(Ln),jn=n(287),Nn=n.n(jn),In=n(716),Vn=n.n(In),Bn=n(717),Mn=n.n(Bn),Un=n(139);function Fn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t)||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 Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zn(t){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wn(t,e){return(Wn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jn(t);if(e){var o=Jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(t,e){return!e||"object"!==zn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jn(t){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kn=_t.a.SuggestionLimit,Qn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wn(t,e)}(l,t);var e,n,o,s=Yn(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,t)).viewCache={},e}return e=l,(n=[{key:"initialize",value:function(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(c.a.SEARCH,this),this.storageHelper=et.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:O.a.Component,options:{template:Mn.a,className:"w-100",viewOptions:{styles:Vn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(ct.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(ct.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(t,e){var n=e.ctor,r=e.viewOptions;return this.viewCache[t]?this.viewCache[t]:this.viewCache[t]=new n(r)}},{key:"clearViewCache",value:function(){K.each(this.viewCache,(function(t){return t.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(t){var e=this;return t===wt.b.Recent?function(t){return e.getOrCacheView("recent:".concat(t),{ctor:_e,viewOptions:{model:new r.a.Model({name:t}),channelName:e.channelName}}).render().el}:t===Ot.a.Subjects?function(t){return e.getOrCacheView(t.id,{ctor:dn,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Video?function(t){return e.getOrCacheView(t.id,{ctor:rn,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Folder?vn.a:t===Ot.a.Series?function(t){return e.getOrCacheView(t.id,{ctor:Ie,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Tags?function(t){return e.getOrCacheView(t.id,{ctor:Ye,viewOptions:{model:new r.a.Model(t)}}).render().el}:void 0}},{key:"getLimits",value:function(t){return Ot.a.Folder,Kn.Folder}},{key:"updateSearchHistory",value:function(t){var e=t.add,n=t.remove,r=t.query;r=r.trim();var o=Tt.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:e,remove:n,query:r,limit:Kn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch)if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(Tt.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}},{key:"onDeleteRecentSearch",value:function(t){return this.updateSearchHistory({remove:!0,query:t}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(t,e){if(e===Ot.a.Series){var n=[t.id];return this.appVariables.addSlugs&&n.push(at(t.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:n})}if(e===Ot.a.Video){var r=[t.id];return this.appVariables.addSlugs&&r.push(at(t.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:r})}return e===Ot.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:t.name}}):e===Ot.a.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[t.id,at(t.name)]}):void 0}},{key:"onTypeaheadSelect",value:function(t,e,n){if(t.preventDefault(),t.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?Ot.a.Subjects:n,"object"===zn(e)&&e.id){var o=this.getInstantSearchAppLink(e,n);if(!o)return!1;var i=X.a.buildInstantSearchEvent(this.model.get("query"),e,n),a=i.data,c=i.action;return tt.a.log(Z.UserAction.InstantSearch,a,c),this.model.clear(),this.getUI("input").typeahead("close"),Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(o),!1}var u="string"==typeof e?e:e.query;this.model.set({query:u});var s=n===wt.b.Recent?Z.DirectSearchDescriptor.Recent:Z.DirectSearchDescriptor.ShowAll;return this.submitQuery(s),!1}},{key:"onClickSearch",value:function(t){return t.stopPropagation(),this.submitQuery(Z.DirectSearchDescriptor.SearchIcon),!1}},{key:"onClickClose",value:function(){Un.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}},{key:"onSubmit",value:function(t){return t.preventDefault(),this.submitQuery(Z.DirectSearchDescriptor.Submit),!1}},{key:"submitQuery",value:function(t){this.updateInitialQuery();var e=this.model.get("query");if(e){this.logSearch(e,t),this.updateSearchHistory({add:!0,query:e}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=kt(this.searchContext);Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:e},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(t,e){var n=X.a.buildSearchEvent(t,e),r=n.data,o=n.action;tt.a.log(Z.UserAction.Search,r,o)}},{key:"onTypeaheadOpen",value:function(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=_t.a.ActivationLength&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(t){this.searchContext.get("preventTypeaheadClose")&&(t.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),mt.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||mt.hideMask()}},{key:"alignTypeahead",value:function(){var t=$(".tt-menu");this.searchContext.get("title")?t.addClass("typeahead-shift"):t.hasClass("typeahead-shift")&&t.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(t,e,n,r){r===wt.b.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var t=this.getUI("input");t.on("typeahead:select",K.bind(this.onTypeaheadSelect,this)),t.on("typeahead:render",K.bind(this.onTypeaheadRender,this)),t.on("typeahead:beforeclose",K.bind(this.onBeforeTypeaheadClose,this)),t.on("typeahead:close",K.bind(this.onTypeaheadClose,this)),t.on("typeahead:open",K.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var t=this,e=this.getUI("input");e.on("typeahead:open",K.bind(this.showMask,this)),e.on("typeahead:close",K.bind(this.hideMask,this)),e.on("typeahead:select",K.bind((function(){r.a.AppLinkHelper.trigger(t.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(t){8!==t.keyCode||this.model.get("query")||Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(t){t&&t.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var t=Tt.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:t})}},{key:"getDynamicBloodhoundConfig",value:function(){return Pt.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var t=this,e=At.a.getTemplate(Rn.a,{fallbackTemplate:Cn.a}),n=At.a.getTemplate(wn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"findingResults")});return function(r,o){return{name:t.getConfigName(r.name),source:At.a.handleQuery(r.bloodhound,{fetchType:wt.a.Remote}),limit:t.getLimits(r.name),display:function(t){return t.name},async:!0,templates:{header:e,pending:0===o?n:Cn.a,notFound:Cn.a,suggestion:t.getDynamicTemplate(r.name),footer:En.a}}}}},{key:"getConfigName",value:function(t){switch(t){case Ot.a.Subjects:return nt.a.getPhrase(this.lang,"classifications");case Ot.a.Video:return nt.a.getPhrase(this.lang,"videos");case Ot.a.Tags:return nt.a.getPhrase(this.lang,"tags");case Ot.a.Series:return nt.a.getPhrase(this.lang,"series")}return t}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var t=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:wt.b.Recent,source:At.a.handleQuery(this.recentSearchEngine,{fetchType:wt.a.Local,ignoreOnQuery:!0}),limit:Kn.Default,templates:{header:function(){return Tn.a({templateText:nt.a.getPhrase(t.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(wt.b.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:wt.b.Direct,source:At.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:At.a.getTemplate(mn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"allResults")}),footer:En.a}}]}},{key:"getDynamicSearchSources",value:function(){var t=this.getDynamicBloodhoundConfig(),e=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return At.a.getSearchSources([{name:Ot.a.Subjects,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Series,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Folder,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Video,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Tags,bloodhoundConfig:t,typeaheadConfig:e,options:n}])}},{key:"getSources",value:function(){var t=[].concat(Fn(this.getDirectSearchSources()),Fn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&t.push.apply(t,Fn(this.getRecentSearchSources())),t}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:At.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:At.a.getTemplate(xn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(t){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},t)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(t){return t.id}))}},{key:"viewOptions",value:function(){return{styles:Nn.a,svg:u.a.getSvg(u.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:u.a.getSvg(u.b.Close),libraryText:this.appVariables.searchBarPlaceholder||nt.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new ne)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),Q.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new de({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),Q.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return Dn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(Nn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:gt.currentUser,libraryCollection:St.a.libraries}}}])&&qn(e.prototype,n),o&&qn(e,o),l}(r.a.View),Zn=n(137),$n=n(82),Xn=n(0),tr=n(718),er=n.n(tr),nr=n(288),rr=n.n(nr),or=n(190),ir=n(136),ar=n(12),cr=n(298),ur=n(720),sr=n.n(ur),lr=n(721),fr=n.n(lr);function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dr(t,e,n){return e&&yr(t.prototype,e),n&&yr(t,n),t}function br(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vr(t,e)}function vr(t,e){return(vr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sr(t);if(e){var o=Sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(t,e){return!e||"object"!==pr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sr(t){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wr=function(t){br(n,t);var e=gr(n);function n(t){return hr(this,n),e.call(this,t)}return dr(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return sr.a}},{key:"onRender",value:function(){this.showChildView("items",new Or({collection:this.collection,childOptions:this.options.childOptions}))}},{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return fr.a}}]),n}(r.a.Component),Or=function(t){br(n,t);var e=gr(n);function n(t){return hr(this,n),e.call(this,t)}return dr(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return cr.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function Cr(t){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _r(t,e){return(_r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Tr(t);if(e){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pr(this,n)}}function Pr(t,e){return!e||"object"!==Cr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_r(t,e)}(a,t);var e,n,o,i=Rr(a);function a(){return kr(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new wr({model:this.currentUser,collection:new r.a.Collection([{title:nt.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"settings"),href:$n.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"helpCentre"),href:$n.a.safeUrlConcat(this.config.get("supportSiteUrl"),Xn.y.LIBRARY_EDITOR),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{divider:!0},{title:nt.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(t=ar.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:rr.a,avatar:t,arrowSvg:u.a.getSvg(u.b.ChevronDown)}):{};var t}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return er.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(rr.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:or.b.config,currentUser:ir.b.currentUser}}}])&&Er(e.prototype,n),o&&Er(e,o),a}(r.a.View),xr=n(44),Lr=n(9),Dr=n(307),jr=n(723),Nr=n.n(jr);function Ir(t){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mr(t,e){return(Mr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ur(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hr(t);if(e){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fr(this,n)}}function Fr(t,e){return!e||"object"!==Ir(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hr(t){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mr(t,e)}(a,t);var e,n,r,o=Ur(a);function a(){return Vr(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(Xn.x.PendingItems,this),this.listenTo(ct.c.PENDING_ITEMS,xr.a.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:Lr.h.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(t){var e=this;this.pendingItemsService.clearPendingItem(t,(function(){e.render()}))}},{key:"onRetryPendingItem",value:function(t){var e=this;this.pendingItemsService.retryPendingItem(t,(function(){e.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Dr.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Nr.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Br(e.prototype,n),r&&Br(e,r),a}(r.a.View),qr=n(289),Wr=n.n(qr),Yr=n(724),Gr=n.n(Yr),Jr=n(308),Kr=n(138);function Qr(t){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $r(t,e){return($r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=eo(t);if(e){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return to(this,n)}}function to(t,e){return!e||"object"!==Qr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function eo(t){return(eo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var no=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$r(t,e)}(c,t);var e,n,r,a=Xr(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"initialize",value:function(){var t=this;this.pendingItemsService=i.a.getInstance(Xn.x.PendingItems,this),this.listenTo(Xn.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){t.model.get("items")||t.render()}))}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new Jr.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new zr)}},{key:"viewOptions",value:function(){return{styles:Wr.a,uploadSvg:u.a.getSvg(u.b.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return t={},e=".".concat(Wr.a.upload),n={application:Xn.b.UPLOAD,action:Xn.a.Upload.FILE_SELECTION},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"channelName",get:function(){return Xn.w.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return Gr.a}},{key:"requiredResources",get:function(){return{libraries:Kr.b.libraries}}}])&&Zr(e.prototype,n),r&&Zr(e,r),c}(r.a.View),ro=n(726),oo=n.n(ro),io=n(727),ao=n.n(io);function co(t){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e){return(so=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=po(t);if(e){var o=po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(t,e){return!e||"object"!==co(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function po(t){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"PageHeaderComponent",(function(){return ho}));var ho=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&so(t,e)}(a,t);var e,n,r,i=lo(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t={actionType:Z.UserAction.Click,descriptor:Z.ClickDescriptor.NavigateHome,location:Z.LocationContext.TopNav,entity:Z.EntityType.Logo},e={currentLocation:X.a.buildCurrentLocation()};X.a.logUserAction(e,t)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:Zn.c})}},{key:"renderSearchBar",value:function(){var t=new Qn({model:this.getSearchModel()});this.showChildView("search",t)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var t=new no;this.showChildView("upload",t)}}},{key:"renderNotificationsStatus",value:function(){var t=new J;this.showChildView("notifications",t)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Ar)}},{key:"viewOptions",value:function(){return{styles:ao.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}},{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return oo.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&uo(e.prototype,n),r&&uo(e,r),a}(r.a.Component)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(3),a=n(15),c=n(61),u=n(728),s=n.n(u),l=n(729),f=n.n(l),p=n(9),h=n(730),y=n.n(h),d=n(291),b=n.n(d);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),t}function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){w(n,t);var e=C(n);function n(t){return g(this,n),e.call(this,t)}return S(n,[{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"getCount",value:function(){var t=this.model.get("getCount");if(r.isFunction(t))return t()}},{key:"viewOptions",value:function(){return{styles:b.a,count:this.getCount()}}},{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(b.a.active):"nav-link"}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return y.a}}]),n}(o.a.Component),R=function(t){w(n,t);var e=C(n);function n(t){return g(this,n),e.call(this,t)}return S(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return _}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),P=n(58),T=n(0),A=n(136),x=n(5),L={warningPublisherArchive:n(731)};function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,e){return(N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"TopNavigationView",(function(){return M}));var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N(t,e)}(h,t);var e,n,u,l=I(h);function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,t)}return e=h,(n=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=x.a.getInstance(T.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(T.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(T.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(T.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(T.e.SETTINGS,"".concat(T.f.SETTINGS,":sync"),this.render),this.listenTo(T.e.VIDEO,"".concat(T.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(T.e.STAFF_REQUEST,"".concat(T.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(T.e.MIGRATION,"".concat(T.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(T.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var t=this,e=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:T.b.LIBRARY_EDITOR,action:T.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:T.b.STAFF_REQUESTS,action:T.a.StaffRequests.HOME,getCount:function(){return t.staffRequestCollection&&t.staffRequestCollection.length},requiredSetting:{name:c.a.StaffRequest,value:p.k.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:T.b.CONTENT_UPDATES,action:T.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return t.contentUpdatesCollection&&t.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:T.b.VIDEO_ACCESS,action:T.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(e)),P.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:T.b.MIGRATION_WIZARD,action:T.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?L.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(t){var e=this;return t.filter((function(t){if(!r.has(t,"requiredSetting"))return!0;var n=e.settings.findWhere({name:t.requiredSetting.name});return!!n&&n.get("value")===t.requiredSetting.value}))}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new R({collection:this.collection,selected:this.options.selected}))}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(f.a.topNav," container")}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"requiredResources",get:function(){return{currentUser:A.b.currentUser}}}])&&j(e.prototype,n),u&&j(e,u),h}(o.a.View)},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t,e,n){},function(t,e,n){},function(t,e){t.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],a=[];for(n=new u(n),e=0;e<r.length;e++){var p=r[e];if("StartTag"!==p.type)if("Chars"===p.type){var h=s(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var y=p.tagName.toUpperCase(),d="A"===y||c.contains(n.ignoreTags,y);if(!d)continue;var b=o.length;l(y,r,++e,o),e+=o.length-b-1}}for(e=0;e<o.length;e++){var v=o[e];switch(v.type){case"StartTag":var g="<"+v.tagName;if(v.attributes.length>0){var m=f(v.attributes);g+=" "+m.join(" ")}g+=">",a.push(g);break;case"EndTag":a.push("</"+v.tagName+">");break;case"Chars":a.push(v.chars);break;case"Comment":a.push("\x3c!--"+v.chars+"--\x3e")}}return a.join("")};var r,o=n(986),i=(r=o)&&r.__esModule?r:{default:r},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(348));var c=a.options,u=c.Options;function s(t,e){for(var n=a.tokenize(t),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&e.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&e.check(i)){var c=e.resolve(i),u=c.formatted,s=c.formattedHref,l=c.tagName,f=c.className,p=c.target,h=c.attributes,y=[["href",s]];for(var d in f&&y.push(["class",f]),p&&y.push(["target",p]),h)y.push([d,h[d]]);r.push({type:"StartTag",tagName:l,attributes:y,selfClosing:!1}),r.push({type:"Chars",chars:u}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(t,e,n,r){for(var o=1;n<e.length&&o>0;){var i=e[n];"StartTag"===i.type&&i.tagName.toUpperCase()===t?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===t&&o--,r.push(i),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1];e.push(o+'="'+(i.replace(/"/g,"&quot;")+'"'))}return e}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(344)),o=u(n(345)),i=u(n(346)),a=u(n(347)),c=u(n(988));function u(t){return t&&t.__esModule?t:{default:t}}var s={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:c.default};e.default=s},function(t,e,n){"use strict";e.__esModule=!0,e.isSpace=function(t){return r.test(t)},e.isAlpha=function(t){return o.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new o.default(i.default),e).tokenize(t)};var r=a(n(347)),o=a(n(345)),i=a(n(344));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:o.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:o.events,this.format=t.hasOwnProperty("format")?t.format:o.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:o.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:o.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:o.tagName,this.target=t.hasOwnProperty("target")?t.target:o.target,this.validate=t.hasOwnProperty("validate")?t.validate:o.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||o.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||o.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:o.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=o,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var i=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[t])?i(e,n.type):i}return a},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(349),o=n(256),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(t){return new r.CharacterState(t)},p=f(),h=f(o.NUM),y=f(o.DOMAIN),d=f(),b=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,b),b.on(s,b);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,g)}var m=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,m),l.push.apply(l,S),l.push.apply(l,w),l.push.apply(l,O);var C=m.pop(),k=S.pop(),E=w.pop(),_=O.pop(),R=f(o.DOMAIN),P=f(o.PROTOCOL),T=f(o.MAILTO);k.on("s",R).on(":",P),E.on("s",R).on(":",P),l.push(R),C.on(":",P),R.on(":",P),_.on(":",T);var A=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,A),p.on(c,h),h.on("-",d).on(c,h).on(u,y),y.on("-",d).on(u,y);for(var x=0;x<l.length;x++)l[x].on("-",d).on(u,y);d.on("-",d).on(c,y).on(u,y),p.defaultTransition=f(o.SYM);var L=p;e.State=r.CharacterState,e.TOKENS=i,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(e[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(t.substr(o-c,c)))}}return r},e.start=L},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(349),o=n(992),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o),a=n(256);var c=function(t){return new r.TokenState(t)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),y=c(),d=c(o.URL),b=c(),v=c(o.URL),g=c(o.URL),m=c(),S=c(),w=c(),O=c(),C=c(),k=c(o.URL),E=c(o.URL),_=c(o.URL),R=c(o.URL),P=c(),T=c(),A=c(),x=c(),L=c(),D=c(),j=c(o.EMAIL),N=c(),I=c(o.EMAIL),V=c(o.MAILTOEMAIL),B=c(),M=c(),U=c(),F=c(),H=c(o.NL);u.on(a.NL,H).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,d).on(a.NUM,h),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),h.on(a.DOT,y),L.on(a.DOT,D),y.on(a.TLD,d).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),D.on(a.TLD,j).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),d.on(a.DOT,y),j.on(a.DOT,D),d.on(a.COLON,b).on(a.SLASH,g),b.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,I);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],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),m.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),S.on(a.CLOSEBRACE,g),w.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),k.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),_.on(a.CLOSEANGLEBRACKET,g),R.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),T.on(a.CLOSEBRACKET,g),A.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),S.on(z,k),w.on(z,E),O.on(z,_),C.on(z,R),S.on(q,P),w.on(q,T),O.on(q,A),C.on(q,x),k.on(z,k),E.on(z,E),_.on(z,_),R.on(z,R),k.on(q,k),E.on(q,E),_.on(q,_),R.on(q,R),P.on(z,k),T.on(z,E),A.on(z,_),x.on(z,R),P.on(q,P),T.on(q,T),A.on(q,A),x.on(q,x),g.on(z,g),m.on(z,g),g.on(q,m),m.on(q,m),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(z,V).on(q,B),B.on(z,V).on(q,B);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,M).on(a.AT,U),d.on(W,M).on(a.AT,U),y.on(W,M),M.on(W,M).on(a.AT,U).on(a.DOT,F),F.on(W,M),U.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,j);e.State=r.TokenState,e.TOKENS=i,e.run=function(t){for(var e=t.length,n=0,r=[],i=[];n<e;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<e&&!(c=a.next(t[n]));)i.push(t[n++]);for(;n<e&&(s=c||a.next(t[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(t[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var y=f.emit();r.push(new y(t.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},e.start=u},function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(350),o=n(197),i=n(256);function a(t){return t instanceof i.DOMAIN||t instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)e=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),e||n||(o=t+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});e.Base=c,e.MAILTOEMAIL=u,e.EMAIL=s,e.NL=f,e.TEXT=l,e.URL=p},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(348));var o=r.tokenize,i=r.options.Options;function a(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(t){return t.replace(/"/g,"&quot;")}function u(t){if(!t)return"";var e=[];for(var n in t){var r=t[n]+"";e.push(n+'="'+c(r)+'"')}return e.join(" ")}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=new i(e);for(var n=o(t),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&e.nl2br)r.push("<br>\n");else if(l.isLink&&e.check(l)){var f=e.resolve(l),p=f.formatted,h=f.formattedHref,y=f.tagName,d=f.className,b=f.target,v=f.attributes,g="<"+y+' href="'+c(h)+'"';d&&(g+=' class="'+c(d)+'"'),b&&(g+=' target="'+c(b)+'"'),v&&(g+=" "+u(v)),g+=">"+a(p)+"</"+y+">",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(t){return s(this,t)}}})}catch(t){String.prototype.linkify||(String.prototype.linkify=function(t){return s(this,t)})}e.default=s},function(t,e,n){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=s(t),a=r[0],c=r[1],u=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(t,a,a+16383>c?c:a+16383));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var o,i,a=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(255&t[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,y=r?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*u-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&c,h+=y,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;t[n+h]=255&a,h+=y,a/=256,s-=8);t[n+h-y]|=128*d}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983);var r=n(2),o=n(6),i=n(1),a=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,r,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var t=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==t.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==t.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=i.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){o.Radio.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(t){this.listenTo(this.channelName,"visbility:change",t)}},{key:"removeVisibilityChangeListener",value:function(t){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",t)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}},{key:"name",get:function(){return a.x.PageVisibility}},{key:"channelName",get:function(){return a.w.PAGE_VISIBILITY}}])&&s(e.prototype,n),r&&s(e,r),p}(r.a.Service),d=n(48),b=n(5),v=n(74),g=n(16),m=n(222),S=n(223);var w=n(153),O=n(19),C=n(14),k=n(30),E=n(139),_=n(120),R=n(231),P=n(232),T=n(42);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(c,t);var e,n,o,a=D(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this)).clients={},e.enrichers={},k.a.get("application:options").set(t),e.bindNavigationListener(),e}return e=c,(n=[{key:"registerTransport",value:function(t,e){return this.transport=new t(e),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(R.a.ANALYTICS,_.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(t,e){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(e)),this}},{key:"registerEnricher",value:function(t,e){this.validateConstructor(t);var n=new t(e);return this.enrichers[t.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}},{key:"onEvent",value:function(t){var e=this;this.executeMiddleware(t,(function(t){e.transport.publish(t)}))}},{key:"validateConstructor",value:function(t){var e=t.prototype.name;e||r.a.ErrorHelper.throw(new O.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(e){return E.a.isFunction(t.prototype.isType)&&t.prototype.isType(e)};(n("BaseAnalyticsClient")||"CollectionApiClient"===e)&&this.clients[e]&&r.a.ErrorHelper.throw(new O.a("A client class with the name: ".concat(e," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[e]&&r.a.ErrorHelper.throw(new O.a("An enricher class named: ".concat(e," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(t){var e;this.executeMiddleware=(e=this.executeMiddleware,function(n,r){return e(n,(function(){return t(n,r)}))})}},{key:"executeMiddleware",value:function(t,e){e(t)}},{key:"bindNavigationListener",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(t,e){T.a.logNavigate(t,e)}},{key:"name",get:function(){return P.a.Analytics}}])&&x(e.prototype,n),o&&x(e,o),c}(r.a.Service),V=n(51);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H(t,e)}function H(t,e){return(H=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=W(t);if(e){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==B(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Y=function(t){F(a,t);var e,n,r,o=z(a);function a(){return U(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"publish",value:function(t){this.getChannel().trigger(_.a.Outlet,t)}},{key:"subscribe",value:function(t){var e=t,n=function(n){E.a.isFunction(e.shouldLog)&&!e.shouldLog(n)||t.log(n)};i.isFunction(e.listenTo)?e.listenTo(this.getChannel(),_.a.Outlet,n):this.listenTo(this.getChannel(),_.a.Outlet,n)}},{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}}])&&M(e.prototype,n),r&&M(e,r),a}(function(t){F(n,t);var e=z(n);function n(){return U(this,n),e.apply(this,arguments)}return n}(V.Object));function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(i,t);var e,n,r,o=Z(i);function i(){return J(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"enrich",value:function(t,e){}},{key:"isType",value:function(t){return t===i.type}}])&&K(e.prototype,n),r&&K(e,r),i}(r.a.Service);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}et.type="BaseAnalyticsEnricher";var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.user=k.a.get("application:options").get("user")}},{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("user",this.getUser(this.user)),e(t)}},{key:"getUser",value:function(t){return{country:t.countryCode,customerId:t.customerId,id:t.id,role:t.role}}},{key:"name",get:function(){return"UserDataEnricher"}}])&&ot(e.prototype,n),r&&ot(e,r),i}(et),lt="URLSearchParams"in self,ft="Symbol"in self&&"iterator"in Symbol,pt="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),ht="FormData"in self,yt="ArrayBuffer"in self;if(yt)var dt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],bt=ArrayBuffer.isView||function(t){return t&&dt.indexOf(Object.prototype.toString.call(t))>-1};function vt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function gt(t){return"string"!=typeof t&&(t=String(t)),t}function mt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ft&&(e[Symbol.iterator]=function(){return e}),e}function St(t){this.map={},t instanceof St?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function wt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Ot(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Ct(t){var e=new FileReader,n=Ot(e);return e.readAsArrayBuffer(t),n}function kt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Et(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:pt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:ht&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:lt&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():yt&&pt&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=kt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yt&&(ArrayBuffer.prototype.isPrototypeOf(t)||bt(t))?this._bodyArrayBuffer=kt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):lt&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pt&&(this.blob=function(){var t=wt(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?wt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ct)}),this.text=function(){var t,e,n,r=wt(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=Ot(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ht&&(this.formData=function(){return this.text().then(Pt)}),this.json=function(){return this.text().then(JSON.parse)},this}St.prototype.append=function(t,e){t=vt(t),e=gt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},St.prototype.delete=function(t){delete this.map[vt(t)]},St.prototype.get=function(t){return t=vt(t),this.has(t)?this.map[t]:null},St.prototype.has=function(t){return this.map.hasOwnProperty(vt(t))},St.prototype.set=function(t,e){this.map[vt(t)]=gt(e)},St.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},St.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),mt(t)},St.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),mt(t)},St.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),mt(t)},ft&&(St.prototype[Symbol.iterator]=St.prototype.entries);var _t=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Rt(t,e){var n,r,o=(e=e||{}).body;if(t instanceof Rt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new St(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new St(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),_t.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Pt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function Tt(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new St(e.headers),this.url=e.url||"",this._initBody(t)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})},Et.call(Rt.prototype),Et.call(Tt.prototype),Tt.prototype.clone=function(){return new Tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new St(this.headers),url:this.url})},Tt.error=function(){var t=new Tt(null,{status:0,statusText:""});return t.type="error",t};var At=[301,302,303,307,308];Tt.redirect=function(t,e){if(-1===At.indexOf(e))throw new RangeError("Invalid status code");return new Tt(null,{status:e,headers:{location:t}})};var xt=self.DOMException;try{new xt}catch(t){(xt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),xt.prototype.constructor=xt}function Lt(t,e){return new Promise((function(n,r){var o=new Rt(t,e);if(o.signal&&o.signal.aborted)return r(new xt("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,r={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new St,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new Tt(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new xt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&self.location.href?self.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(pt?i.responseType="blob":yt&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Lt.polyfill=!0,self.fetch||(self.fetch=Lt,self.Headers=St,self.Request=Rt,self.Response=Tt);var Dt=n(681),jt=n.n(Dt),Nt=n(682);function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(t,e)||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 Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Bt={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function Mt(t,e,n){var r=It(e.exec(n)||[],1)[0];return r||(r="Unknown"),{name:t,version:r}}function Ut(t,e,n){if(!e)return{name:t,version:"Unknown"};var r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}var Ft=function(){var t=window.navigator.userAgent;return Bt.android.test(t)?Ut("Android",Bt.androidVersion,t):Bt.iphone.test(t)||Bt.ipad.test(t)?Ut("iOS",Bt.iosVersion,t):Bt.linux.test(t)?Ut("Linux",null,t):Bt.unix.test(t)?Ut("Unix",null,t):Bt.mac.test(t)?Ut("Macintosh",Bt.osxVersion,t):Bt.windows.test(t)?function(t,e){var n={name:t,version:null};return Bt.win2000.test(e)&&(n.version="2000"),Bt.winXP.test(e)&&(n.version="XP"),Bt.winVista.test(e)&&(n.version="Vista"),Bt.win7.test(e)&&(n.version="7"),Bt.win8.test(e)&&(n.version="8"),Bt.win81.test(e)&&(n.version="8.1"),Bt.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):Bt.blackberry.test(t)?Ut("BlackBerry",Bt.blackberryVersion,t):Bt.windowsPhone.test(t)?Ut("Windows Phone",Bt.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},Ht=function(){var t=window.navigator.userAgent;return Bt.chrome.test(t)?Mt("Chrome",Bt.generalVersion,t):Bt.firefox.test(t)?Mt("Firefox",Bt.generalVersion,t):Bt.safari.test(t)?Mt("Safari",Bt.generalVersion,t):Bt.ie.test(t)?Mt("Internet Explorer",Bt.ieVersion,t):Bt.edge.test(t)?Mt("Edge",Bt.edgeVersion,t):Bt.opera.test(t)?Mt("Opera",Bt.operaVersion,t):{name:"Unknown",version:"Unknown"}};function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qt,Wt=function(t){var e=zt(t);return"function"===e||"object"===e&&!!t},Yt=function(t){return"function"==typeof t},Gt=function(t,e){if(t){var n=t;return t.endsWith("/")||(n+="/"),e?n+=e.startsWith("/")?e.slice(1):e:n}},Jt=n(224);!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1"}(qt||(qt={}));var Kt,Qt,Zt={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:qt.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:qt.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:qt.CvEuWest1}};function $t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t.AU="au",t.NZ="nz",t.UK="uk"}(Kt||(Kt={}));var Xt=($t(Qt={},Kt.AU,qt.CvApSoutheast1),$t(Qt,Kt.NZ,qt.CvApSoutheast2),$t(Qt,Kt.UK,qt.CvEuWest1),Qt);function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ee=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ne=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"log",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=2;break}return e.abrupt("return",this.logBulk(t));case 2:if(this.shouldLog(t)){e.next=4;break}return e.abrupt("return");case 4:return this.validateEvent(t),e.t0=this,e.next=8,this.formatData(t);case 8:return e.t1=e.sent,e.next=11,e.t0.postData.call(e.t0,e.t1);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"logBulk",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.filter((function(t){return o.shouldLog(t)}))).length){e.next=3;break}return e.abrupt("return");case 3:return n.forEach((function(t){return o.validateEvent(t)})),e.next=6,Promise.all(n.map((function(t){return o.formatData(t)})));case 6:return r=e.sent,e.next=9,this.postData(r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateOptions",value:function(){if(!Yt(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(t){return!Yt(this.options.shouldLog)||this.options.shouldLog(t)}},{key:"postData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=e.sent,r=JSON.stringify(t),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=Gt(n,"/v1/ingest"),Array.isArray(t)&&(i=Gt(i,"/bulk")),e.next=9,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"getSignatureHeader",value:function(t){var e=new jt.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(e.getHash("B64"))}}},{key:"getRegionalUrl",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegion();case 2:n=e.sent,e.t0=n.systemName,e.next=e.t0===qt.CvEuWest1?6:e.t0===qt.CvApSoutheast2?7:(e.t0,qt.CvApSoutheast1,8);break;case 6:return e.abrupt("return",t.cvEuWest1);case 7:return e.abrupt("return",t.cvApSoutheast2);case 8:return e.abrupt("return",t.cvApSoutheast1);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateEvent",value:function(t){if("string"!=typeof t.type)throw new Error("Event type is required.");if(!Wt(t.actionContext))throw new Error("Event actionContext is required.");if(!t.actionContext.entity)throw new Error("Event actionContext entity is required.")}},{key:"formatData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.type,e.next=3,this.getEventData(t);case 3:return e.t1=e.sent,e.t2=this.getEventMetadata(t),e.abrupt("return",{type:e.t0,data:e.t1,metadata:e.t2});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getEventData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.actionContext,e.next=3,this.getUserData();case 3:return r=e.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(t),a=Object.keys(o).map((function(t){return t.toLowerCase()})),c=Object.keys(i).map((function(t){return t.toLowerCase()})),a.forEach((function(t){if(c.includes(t))throw Error("".concat(t," is a reserved key."))})),e.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"extractData",value:function(t){return Yt(this.options.formatData)?this.options.formatData(t):(e={},n=t.actionContext.entity,r=t.data,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);var e,n,r}},{key:"getUserData",value:function(){var t,e;return ee(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:if(null==(r=n.sent)?void 0:r.id){n.next=5;break}return n.abrupt("return");case 5:return n.t0=r.id,n.t1=(null===(t=r.role)||void 0===t?void 0:t.toLowerCase())||"unknown",n.t2=(null===(e=r.userGroup)||void 0===e?void 0:e.toLowerCase())||Jt.a.Unknown,n.t3=this.normalizeYearGroup(r.yearGroup),n.t4=r.customerId,n.t5=r.customerName,n.t6=r.customerGuid,n.t7=r.crmId,n.t8=r.countryCode,n.next=16,this.getRegion();case 16:return n.t9=n.sent,n.t10=!!r.isOpenCustomer,n.t11={id:n.t4,name:n.t5,customerGuid:n.t6,crmId:n.t7,country:n.t8,region:n.t9,openCustomer:n.t10},n.abrupt("return",{id:n.t0,role:n.t1,userGroup:n.t2,yearGroup:n.t3,customer:n.t11});case 20:case"end":return n.stop()}}),n,this)})))}},{key:"getRegion",value:function(){var t;return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.getUser();case 2:return n=e.sent,r=null===(t=null==n?void 0:n.countryCode)||void 0===t?void 0:t.toLowerCase(),o=r?Xt[r]:this.options.regionName,e.abrupt("return",this.getRegionByName(o));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:Ht(),os:Ft(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(t){return{client:{name:"".concat(this.name,".ts"),version:Nt.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}},{key:"getRegionByName",value:function(t){var e;return Object.values(Zt).forEach((function(n){n.systemName===t&&(e=n)})),e}},{key:"normalizeYearGroup",value:function(t){return t?t.toLowerCase().split(" ").join("_"):"unknown"}},{key:"name",get:function(){return"CollectionApiClient"}}])&&te(e.prototype,n),r&&te(e,r),t}(),re=n(683),oe=n(63);function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ue(t,e){return(ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function se(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fe(t);if(e){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return le(this,n)}}function le(t,e){return!e||"object"!==ie(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fe(t){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ue(t,e)}(c,t);var e,n,o,a=se(c);function c(){return ae(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"shouldLog",value:function(){return oe.a.isDevelopment}},{key:"log",value:function(t){var e=i.clone(t);for(var n in t){var o=e[n];(o instanceof r.a.Model||o instanceof r.a.Collection)&&(e[n]=o.toJSON())}console.log("Event Debugger: ",e)}},{key:"name",get:function(){return"DebuggerClient"}}])&&ce(e.prototype,n),o&&ce(e,o),c}(n(233).a),he=n(29),ye=n(186);function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ve(t,e){return(ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function me(t,e){return!e||"object"!==de(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var we=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ve(t,e)}(a,t);var e,n,o,i=ge(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).productName=t.productName,e.productVersion=t.productVersion,e}return e=a,(n=[{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("coreContext",this.getCoreContext()),e(t)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return he.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 t=ye.a.getOperatingSystem(),e=ye.a.getBrowser();return{os:t.os,osVersion:t.version,browser:e.browser,browserVersion:e.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"name",get:function(){return"CoreContextEnricher"}}])&&be(e.prototype,n),o&&be(e,o),a}(et),Oe=n(4),Ce=function(){return!0},ke=function(){return!1};var Ee=function(t){return t};function _e(t){if(t&&t.code)return t.code}function Re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.id){var n={id:t.id};return t.name&&!e.ignoreTitle&&(n.title=t.name),n}}function Pe(t){if(t&&t.length){var e=t[0];return{id:e.id,title:e.name}}}var Te,Ae,xe,Le=function(t){var e=t.model,n={id:e.id.toString(),year:e.productionYear,title:e.name,trackingCode:e.trackingCode},r=_e(e.rating),o=Re(e.series),i=Pe(e.categories),a=Re(e.owner,{ignoreTitle:!0}),c=Re(e.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},De={getUploadData:function(t,e){var n=e.actionContext.entity;if(n===Oe.EntityType.Video)return De.formatVideoUpload(t,e);if(n===Oe.EntityType.Resource||n===Oe.EntityType.Subtitle)return De.formatResourceUpload(t);if(n===Oe.EntityType.Banner||n===Oe.EntityType.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(t,e){var n=e.actionContext.workflowPhase;return n===Oe.WorkflowPhase.Start?De.getStartVideoUploadData(t):n===Oe.WorkflowPhase.Discard?De.getDiscardVideoUploadData(t):n===Oe.WorkflowPhase.Complete?De.getCompleteUploadData(t):void 0},getStartVideoUploadData:function(t){return t&&t.length?(t instanceof FileList&&(t=Array.from(t)),t.map((function(e){return{fileName:e.name,size:e.size,type:e.type,count:t.length}}))):[]},getDiscardVideoUploadData:function(t){var e=function(e){var n=e.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(t)?t.length:1,type:r,status:i};return e.progress&&(c.progress=e.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]},getCompleteUploadData:function(t){return t&&t.length?t.map((function(e){return{fileName:e.fileName,libraryId:e.libraryId,folderId:e.folderId,count:t.length}})):[]},formatResourceUpload:function(t){var e={id:t.id,name:t.name};return Wt(t.metadata)&&(e.type=t.metadata.type),e}};function je(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ne=(je(Te={},Oe.UserAction.Navigate,ke),je(Te,Oe.UserAction.Click,Ce),je(Te,Oe.UserAction.Search,Ce),je(Te,Oe.UserAction.InstantSearch,Ce),je(Te,Oe.UserAction.Play,Ce),je(Te,Oe.UserAction.Stream,Ce),je(Te,Oe.UserAction.StreamRaw,ke),je(Te,Oe.UserAction.StreamProgress,Ce),je(Te,Oe.UserAction.Rename,Ce),je(Te,Oe.UserAction.Move,Ce),je(Te,Oe.UserAction.Create,Ce),je(Te,Oe.UserAction.Delete,Ce),je(Te,Oe.UserAction.Associate,Ce),je(Te,Oe.UserAction.Dissociate,Ce),je(Te,Oe.UserAction.Filter,Ce),je(Te,Oe.UserAction.Sort,Ce),je(Te,Oe.UserAction.Approve,Ce),je(Te,Oe.UserAction.Reject,Ce),je(Te,Oe.UserAction.Disable,Ce),je(Te,Oe.UserAction.Upload,Ce),je(Te,Oe.UserAction.Download,ke),je(Te,Oe.UserAction.SetAccess,Ce),je(Te,Oe.UserAction.AddToLocalCache,ke),je(Te,Oe.UserAction.Share,Ce),je(Te,Oe.UserAction.Edit,Ce),je(Te,Oe.UserAction.Suggest,Ce),je(Te,Oe.UserAction.ResolveWarning,Ce),je(Te,Oe.UserAction.DismissWarning,Ce),je(Te,Oe.UserAction.EditAssoc,Ce),je(Te,Oe.UserAction.Follow,Ce),Te),Ie=(je(Ae={},Oe.UserAction.Search,Ee),je(Ae,Oe.UserAction.InstantSearch,Ee),je(Ae,Oe.UserAction.Play,Ee),je(Ae,Oe.UserAction.Stream,Le),je(Ae,Oe.UserAction.StreamRaw,Ee),je(Ae,Oe.UserAction.StreamProgress,Ee),je(Ae,Oe.UserAction.Click,Ee),je(Ae,Oe.UserAction.Filter,Ee),je(Ae,Oe.UserAction.Sort,Ee),je(Ae,Oe.UserAction.SetAccess,Ee),je(Ae,Oe.UserAction.Approve,Ee),je(Ae,Oe.UserAction.Reject,Ee),je(Ae,Oe.UserAction.Create,Ee),je(Ae,Oe.UserAction.Delete,Ee),je(Ae,Oe.UserAction.Rename,Ee),je(Ae,Oe.UserAction.Move,Ee),je(Ae,Oe.UserAction.Edit,Ee),je(Ae,Oe.UserAction.Share,Ee),je(Ae,Oe.UserAction.Disable,Ee),je(Ae,Oe.UserAction.Suggest,Ee),je(Ae,Oe.UserAction.Upload,De.getUploadData),je(Ae,Oe.UserAction.ResolveWarning,Ee),je(Ae,Oe.UserAction.DismissWarning,Ee),je(Ae,Oe.UserAction.Follow,Ee),Ae),Ve=(je(xe={},Oe.UserAction.Search,(function(){return"search"})),je(xe,Oe.UserAction.InstantSearch,(function(){return"search"})),je(xe,Oe.UserAction.Filter,(function(){return"filter"})),je(xe,Oe.UserAction.StreamRaw,(function(t){return t.actionContext.entity===Oe.EntityType.Interactive?Oe.EntityType.Video:t.actionContext.entity})),xe),Be={user:"target_user"},Me=je({},Oe.UserAction.StreamProgress,!0),Ue={shouldLog:function(t){return!!Ne[t.type](t)},formatData:function(t){var e=Ie[t.type],n=Yt(e)?e(t.data,t):t.data;if(Me[t.type])return n;var r=t.actionContext.entity;return Yt(Ve[t.type])&&(r=Ve[t.type](t)),Be[r]&&(r=Be[r]),je({},r,n)}};var Fe=n(96);function He(t){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function We(t,e,n){return e&&qe(t.prototype,e),n&&qe(t,n),t}function Ye(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ge(t,e)}function Ge(t,e){return(Ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Je(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qe(t);if(e){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){return!e||"object"!==He(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qe(t){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ze=function(t){Ye(n,t);var e=Je(n);function n(){return ze(this,n),e.apply(this,arguments)}return We(n,[{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}},{key:"externalRoutes",get:function(){return{logout:"logOut"}}}]),n}(r.a.AppRouter),$e=function(t){Ye(o,t);var e=Je(o);function o(){return ze(this,o),e.apply(this,arguments)}return We(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Fe.e)}},{key:"notFound",value:function(){var t=this;n.e(51).then(n.bind(null,1595)).then((function(e){var n=e.NotFoundView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var t=this;n.e(50).then(n.bind(null,1596)).then((function(e){var n=e.ErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var t=this;n.e(70).then(n.bind(null,1597)).then((function(e){var n=e.DevErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return a.b.DEFAULT}}],[{key:"router",get:function(){return Ze}}]),o}(r.a.Application),Xe=n(97),tn=n(12),en=n(193),nn=n(69);var rn=n(225);function on(t){return function(e,n){var o=b.a.getInstance(a.g.User),c=b.a.getInstance(a.g.Config);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.contains(t,o.get("role"))?n(e):c.getConfig((function(e){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new rn.a(t,e.get("onlineUrl")))}))}))}}function an(t,e){var n=b.a.getInstance(a.g.User),o=b.a.getInstance(a.g.Config);n.getCurrentUser((function(n){b.a.releaseInstance(a.g.User),n.get("emailVerified")?e(t):o.getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Fe.b(t.get("onlineUrl")))}))}))}var cn=n(61);function un(t,e){if(oe.a.isDevelopment)e(t);else{var n=b.a.getInstance(a.g.Settings);b.a.getInstance(a.g.User).getCurrentUser((function(o){b.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),cn.a.CustomLibrariesBetaAccess,(function(n){(b.a.releaseInstance(a.g.Settings),n.get("value"))?e(t):b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Fe.d(t.get("marketingSiteUrl")))}))}))}))}}var sn=n(49),ln=n(58),fn=n(297);function pn(t,e){var n=b.a.getInstance(a.g.MigrationVideo),o=t.appLink;n.getCustomerMetadata((function(n){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.noPublisher(n))return r.a.ErrorHelper.throw(new Fe.e),void r.a.AppLinkUtility.routingEnded();var c=ln.a.isInitialMigration(n),u=[a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.BACKUP_DOWNLOAD,a.a.MigrationWizard.START_MIGRATION];if(!c&&i.contains(u,o.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new fn.a);var s=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(ln.a.backupNotStarted(n)&&!i.contains(s,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(c&&ln.a.backupProcessing(n)&&!i.contains(l,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var f=[a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.START_MIGRATION,a.a.MigrationWizard.SMART,a.a.MigrationWizard.SEARCH,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.VIDEOS_ADDED,a.a.MigrationWizard.PROGRESS,a.a.MigrationWizard.HOME];if(c&&ln.a.backupComplete(n)&&!i.contains(f,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();e(t)}))}function hn(t,e){if(oe.a.isDevelopment)e(t);else{var n=t.appLink;b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(o){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isCurrentlyMigratingAll(o)&&n.application!==a.b.MIGRATION_WIZARD&&n.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[o.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(ln.a.isInitialMigration(o)&&n.application!==a.b.MIGRATION_WIZARD)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void r.a.AppLinkUtility.routingEnded();var c=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(ln.a.isPublishingLibraries(o)&&!i.contains(c,n.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void r.a.AppLinkUtility.routingEnded();e(t)}))}}var yn=function(){var t=docCookies.getItem("clear-video-cache");t&&(b.a.getInstance(a.g.Video).clearVideoCache(),b.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",t))};function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e,n){return e&&vn(t.prototype,e),n&&vn(t,n),t}function mn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sn(t,e)}function Sn(t,e){return(Sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cn(t);if(e){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return On(this,n)}}function On(t,e){return!e||"object"!==dn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cn(t){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kn=function(t){mn(n,t);var e=wn(n);function n(){return bn(this,n),e.apply(this,arguments)}return gn(n,[{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),En=function(t){mn(o,t);var e=wn(o);function o(){return bn(this,o),e.apply(this,arguments)}return gn(o,[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(g.a.Library,this),b.a.getInstance(g.b.VideoDragDrop,this),b.a.getInstance(g.b.FolderDragDrop,this),this.pageVisibilityService=b.a.getInstance(g.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(t){t||yn()})),yn()}},{key:"index",value:function(){var t=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(e){var o=e.first();o?(t.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:t.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(t.renderLeftNav(),n.e(72).then(n.bind(null,1598)).then((function(e){var n=new(0,e.NoLibraryView);t.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(t){var e=this;this.libraryDataService.deselectAll(),this.renderLeftNav(t),n.e(26).then(n.bind(null,1650)).then((function(n){var r=new(0,n.LibraryView)({libraryId:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(t),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor),analyticsOptions:{entity:Oe.EntityType.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(e){var n=sn.a.getLibrary(t,e);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1599)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Rename,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1600)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Move,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Create,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newSubFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({parentId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Create,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteFolder",value:function(t){var e=this;n.e(65).then(n.bind(null,1602)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(t){var e=new(0,t.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Oe.EntityType.Series}});r.layout.showChildView(a.n.CONTENT,e)})),this.renderLeftNav()}},{key:"moveVideos",value:function(t,e){var r=this,o=t.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1603)).then((function(t){var n=new(0,t.MoveVideoView)({videoIds:o,folderId:e,analyticsOptions:{descriptor:o.length>1?Oe.OperationDescriptor.Bulk:Oe.OperationDescriptor.Single,location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Move,entity:Oe.EntityType.Video,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(t,e,r){var o=this;n.e(66).then(n.bind(null,1604)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:t,videoIds:e.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:e.length>1?Oe.OperationDescriptor.Bulk:Oe.OperationDescriptor.Single,location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Video,workflowPhase:Oe.WorkflowPhase.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(t){var e=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1646)).then((function(n){var r=new(0,n.VideoDetailsView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"editVideo",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1644)).then((function(n){var r=new(0,n.EditVideoView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1605)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoResources),n.e(23).then(n.bind(null,1640)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(t,e){var r=this;n.e(35).then(n.bind(null,1606)).then((function(n){var o=new(0,n.EditResourceView)({videoId:t,resourceId:e,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Edit,entity:Oe.EntityType.Resource,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var t=this;n.e(36).then(n.bind(null,1607)).then((function(e){var n=new(0,e.NewLibraryView)({});t.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(t){var e=this;n.e(64).then(n.bind(null,1608)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Rename,entity:Oe.EntityType.Library,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(t){var e=this;n.e(71).then(n.bind(null,1609)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Library,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1610)).then((function(e){var n=new(0,e.GeneratePdfView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(t){var e=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1611)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(t){var e=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1612)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(t){var e=this;n.e(69).then(n.bind(null,1615)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({masterId:t}))}))}},{key:"editFolderImages",value:function(t){var e=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1651)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(t){var e=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1652)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:t});e.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(t,e){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1645)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:t,metadata:e.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(t,e){var r=this;n.e(34).then(n.bind(null,1617)).then((function(n){var o=new(0,n.EditLinkView)({videoId:t,linkId:e,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Edit,entity:Oe.EntityType.Link,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(t,e){T.a.logUserAction(t,{actionType:Oe.UserAction.Edit,location:e,entity:Oe.EntityType.Video,descriptor:Oe.PageDescriptor.PageLoad,workflowPhase:Oe.WorkflowPhase.Start})}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}}],[{key:"router",get:function(){return kn}}]),o}(r.a.Application),_n=n(119);function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function An(t,e,n){return e&&Tn(t.prototype,e),n&&Tn(t,n),t}function xn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ln(t,e)}function Ln(t,e){return(Ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nn(t);if(e){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(t,e){return!e||"object"!==Rn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var In=function(t){xn(n,t);var e=Dn(n);function n(){return Pn(this,n),e.apply(this,arguments)}return An(n,[{key:"channelName",get:function(){return a.b.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Vn=function(t){xn(r,t);var e=Dn(r);function r(){return Pn(this,r),e.apply(this,arguments)}return An(r,[{key:"index",value:function(t){var e=this;if(Xe.a.fromPageLoad()){var r=t&&t.query;this.logSearch(r)}Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(21)]).then(n.bind(null,1653)).then((function(n){var r=new(0,n.SearchView)({queryParams:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(t){if(t){var e=T.a.buildSearchEvent(t,Oe.PageDescriptor.PageLoad),n=e.data,r=e.action;_n.a.log(Oe.UserAction.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.SEARCH}}}},{key:"channelName",get:function(){return a.b.SEARCH}}],[{key:"router",get:function(){return In}}]),r}(r.a.Application);function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fn(t,e,n){return e&&Un(t.prototype,e),n&&Un(t,n),t}function Hn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}function zn(t,e){return(zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yn(t);if(e){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wn(this,n)}}function Wn(t,e){return!e||"object"!==Bn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yn(t){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gn=function(t){Hn(n,t);var e=qn(n);function n(){return Mn(this,n),e.apply(this,arguments)}return Fn(n,[{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Jn=function(t){Hn(r,t);var e=qn(r);function r(){return Mn(this,r),e.apply(this,arguments)}return Fn(r,[{key:"index",value:function(t){var e=this,r=i.isNaN(+t.page)?"1":t.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1619)).then((function(t){var n=t.RestrictedVideoListView;e.layout.showChildView(d.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(d.a.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.VIDEO_ACCESS,selectedNavItem:{application:a.b.VIDEO_ACCESS,action:a.a.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}}],[{key:"router",get:function(){return Gn}}]),r}(r.a.Application),Kn=n(9);function Qn(t){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xn(t,e,n){return e&&$n(t.prototype,e),n&&$n(t,n),t}function tr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&er(t,e)}function er(t,e){return(er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=or(t);if(e){var o=or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rr(this,n)}}function rr(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function or(t){return(or=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ir=function(t){tr(n,t);var e=nr(n);function n(){return Zn(this,n),e.apply(this,arguments)}return Xn(n,[{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,(t=[{name:cn.a.StaffRequest,value:Kn.k.StaffRequest}],function(e,n){var o=b.a.getInstance(a.g.User),i=b.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){b.a.releaseInstance(a.g.Settings);var i=!1;t.forEach((function(t){var e=o.findWhere({name:t.name});if(!e||e.get("value")!==t.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new Fe.a(t.name))})),i||n(e)}))}))}),hn];var t}}]),n}(r.a.AppRouter),ar=function(t){tr(r,t);var e=nr(r);function r(){return Zn(this,r),e.apply(this,arguments)}return Xn(r,[{key:"index",value:function(){var t=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(e){var n=e.StaffRequestsView;t.layout.showChildView(d.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(t,e){var r=this;e=e||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(d.a.CONTENT,new o({requestId:t,referrer:e.referrer}))}))}},{key:"approveRequest",value:function(t,e,r){var o=this;this.editRequest(t),t&&e&&r&&n.e(68).then(n.bind(null,1620)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(d.a.POPUP,new i({requestId:t,libraryId:e,folderId:r}))}))}},{key:"rejectRequest",value:function(t){var e=this;this.editRequest(t),n.e(60).then(n.bind(null,1621)).then((function(n){var r=n.RejectStaffRequestView;e.layout.showChildView(d.a.POPUP,new r({requestId:t}))}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.STAFF_REQUESTS,selectedNavItem:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}}],[{key:"router",get:function(){return ir}}]),r}(r.a.Application),cr=n(295),ur=n(27);function sr(t){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pr(t,e,n){return e&&fr(t.prototype,e),n&&fr(t,n),t}function hr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vr(t);if(e){var o=vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return br(this,n)}}function br(t,e){return!e||"object"!==sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vr(t){return(vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var gr=function(t){hr(n,t);var e=dr(n);function n(){return lr(this,n),e.apply(this,arguments)}return pr(n,[{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([Kn.m.Admin]),an,hn]}}]),n}(r.a.AppRouter),mr=function(t){hr(o,t);var e=dr(o);function o(){return lr(this,o),e.apply(this,arguments)}return pr(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:this.channelName,action:a.a.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1622)).then((function(e){var n=e.AwaitingReviewView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(t){var e,r,o,c=this,u=t[ur.a.ReleaseDate]||cr.e.queryString,s=(e={},r=ur.a.ReleaseDate,o=u,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e);this.setDefaultQueryParams(s),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1649)).then((function(e){var n=e.PastReleasesView;c.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},t,s)}))}))}},{key:"generatePdf",value:function(t){var e=this;n.e(43).then(n.bind(null,1623)).then((function(n){var r=n.GeneratePastReleasesPdfView;e.layout.showChildView(a.n.POPUP,new r({librariesQueryString:t[ur.a.Libraries],dateQueryString:t[ur.a.ReleaseDate],subjectQueryString:t[ur.a.Subjects]}))}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=n.ShareView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"disableReview",value:function(){var t=this;n.e(63).then(n.bind(null,1624)).then((function(e){var n=e.DisableReviewView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"addToLibrary",value:function(t){var e=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1625)).then((function(n){var r=n.AddToLibraryView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=e.PublishLibraryView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.CONTENT_UPDATES,selectedNavItem:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}}],[{key:"router",get:function(){return gr}}]),o}(r.a.Application);function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cr(t,e,n){return e&&Or(t.prototype,e),n&&Or(t,n),t}function kr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Er(t,e)}function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pr(t);if(e){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}function Rr(t,e){return!e||"object"!==Sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pr(t){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tr=function(t){kr(n,t);var e=_r(n);function n(){return wr(this,n),e.apply(this,arguments)}return Cr(n,[{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Ar=function(t){kr(r,t);var e=_r(r);function r(){return wr(this,r),e.apply(this,arguments)}return Cr(r,[{key:"index",value:function(t){var e=this;n.e(49).then(n.bind(null,1626)).then((function(n){var r=n.NotificationsView;e.layout.showChildView(a.n.CONTENT,new r({params:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.NOTIFICATIONS}}}},{key:"channelName",get:function(){return a.b.NOTIFICATIONS}}],[{key:"router",get:function(){return Tr}}]),r}(r.a.Application);function xr(t){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jr(t,e,n){return e&&Dr(t.prototype,e),n&&Dr(t,n),t}function Nr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ir(t,e)}function Ir(t,e){return(Ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mr(t);if(e){var o=Mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Br(this,n)}}function Br(t,e){return!e||"object"!==xr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mr(t){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ur=function(t){Nr(n,t);var e=Vr(n);function n(){return Lr(this,n),e.apply(this,arguments)}return jr(n,[{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Fr=function(t){Nr(r,t);var e=Vr(r);function r(){return Lr(this,r),e.apply(this,arguments)}return jr(r,[{key:"initialize",value:function(){this.videoUploadService=b.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var t=this;n.e(61).then(n.bind(null,1627)).then((function(e){var n=new(0,e.FileSelectView);t.layout.showChildView(d.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(t){var e=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1642)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:t.folderId,analyticsOptions:{actionType:Oe.UserAction.Upload,entity:Oe.EntityType.Video,location:Oe.LocationContext.VideoUpload}});e.layout.showChildView(d.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var t=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1628)).then((function(e){var n=new(0,e.UploadCompleteView);t.layout.showChildView(d.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.UPLOAD}}}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return a.b.UPLOAD}}],[{key:"router",get:function(){return Ur}}]),r}(r.a.Application),Hr=n(3),zr=/^clickviewactasuser.*/i,qr={handleMismatch:function(){b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(t){(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isInitialMigration(t))&&(t.keyContact&&t.keyContact.get("fullName")&&(zr.test(t.keyContact.get("username"))||b.a.getInstance(a.g.User).getCurrentUser((function(e){b.a.releaseInstance(a.g.User),t.keyContact.get("userId")!==e.get("id")&&qr.showDialog(t)}))))}))},showDialog:function(t){new tn.d({title:Hr.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Hr.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:t.keyContact.get("fullName")}),buttons:[{text:Hr.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Hr.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),window.location=t.get("onlineUrl")}))}))}};function Wr(t){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jr(t,e,n){return e&&Gr(t.prototype,e),n&&Gr(t,n),t}function Kr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qr(t,e)}function Qr(t,e){return(Qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xr(t);if(e){var o=Xr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $r(this,n)}}function $r(t,e){return!e||"object"!==Wr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xr(t){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var to=function(t){Kr(n,t);var e=Zr(n);function n(){return Yr(this,n),e.apply(this,arguments)}return Jr(n,[{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return oe.a.isDevelopment?[an]:[un,an,pn]}}]),n}(r.a.AppRouter),eo=function(t){Kr(o,t);var e=Zr(o);function o(){return Yr(this,o),e.apply(this,arguments)}return Jr(o,[{key:"initialize",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(t){t.folder?this.folder(t.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var t=this;n.e(57).then(n.bind(null,1629)).then((function(e){var n=e.PublisherBackupWelcomeView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var t=this;n.e(58).then(n.bind(null,1630)).then((function(e){var n=e.PublisherBackupView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var t=this;n.e(41).then(n.bind(null,1631)).then((function(e){var n=e.PublisherBackupProgressView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var t=this;n.e(56).then(n.bind(null,1632)).then((function(e){var n=e.PublisherBackupCompleteView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var t=this;n.e(46).then(n.bind(null,1633)).then((function(e){var n=e.StartView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(t){this.migrationVideoDataService.setSelected(t),this.renderSmartMigration(t)}},{key:"search",value:function(t){this.renderSmartMigration(void 0,t.term)}},{key:"progress",value:function(t,e){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1634)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"videosAdded",value:function(t,e){var r=this;n.e(59).then(n.bind(null,1635)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"selected",value:function(t){var e=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1636)).then((function(n){var r=n.SelectedVideosView;e.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:t}))}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({trackingCode:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(t,e,r){var o=this;n.e(67).then(n.bind(null,1637)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:t,masterId:e,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var t=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1656)).then((function(e){var n=new(0,e.PublishLibraryProgressView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var t=this;n.e(54).then(n.bind(null,1638)).then((function(e){var n=new(0,e.PublishLibraryCompleteView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1641)).then((function(e){var n=new(0,e.MigrationErrorView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(t){var e=this;n.e(47).then(n.bind(null,1639)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:t.options});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1654)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:t,searchTerm:e});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var t=this;this.layoutLoaded||qr.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(e){ln.a.isInitialMigration(e)||(ln.a.isCurrentlyMigratingAll(e)?Promise.resolve().then(n.bind(null,736)).then((function(e){var n=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,736)).then((function(e){var r=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,737)).then((function(e){var n=e.TopNavigationView;t.layout.showChildView(a.n.TOP_NAV,new n({selected:{application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.HOME}}))}))})))}))}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}}],[{key:"router",get:function(){return to}}]),o}(r.a.Application);var no=n(121),ro=n(68),oo=n(11);function io(t){return(io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ao(t){return function(t){if(Array.isArray(t))return co(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return co(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(t,e)}(t)||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 co(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e){return(so=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=po(t);if(e){var o=po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(t,e){return!e||"object"!==io(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function po(t){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ho=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&so(t,e)}(a,t);var e,n,r,o=lo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).size=t.size,e.cache={},e.cachedkeys=[],e}return e=a,(n=[{key:"removeCacheKey",value:function(t){this.cachedkeys=i.without(this.cachedkeys,t)}},{key:"has",value:function(t){return!!this.cache[t]}},{key:"get",value:function(t){return this.cache[t]}},{key:"set",value:function(t,e){t&&e||oo.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=e,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(t,e){if(this.has(t))return this.get(t);var n=e();return this.set(t,n),n}},{key:"remove",value:function(t){return!!this.has(t)&&(delete this.cache[t],this.removeCacheKey(t),!0)}},{key:"invalidate",value:function(t,e){var n=this,r=i.object(this.cachedkeys,this.cachedkeys),o=[];i.each(t,(function(t){var e;r[t]&&o.push(t);var n=new RegExp(t,"i"),a=i.filter(r,(function(t){return n.test(t)}));(e=o).push.apply(e,ao(a))})),o.length&&(o=i.uniq(o),i.each(o,(function(t){delete n.cache[t],i.isFunction(e)&&e(t)})),this.cachedkeys=i.without.apply(i,[this.cachedkeys].concat(ao(o))))}},{key:"name",get:function(){return no.a.Fifo}}])&&uo(e.prototype,n),r&&uo(e,r),a}(ro.a);var yo,bo=n(150);!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(yo||(yo={}));var vo=n(115),go=function(t,e,n){if(!n||!n.errorCode)return t[e];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),t[r]||t[e]};function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function So(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wo(t,e){return(wo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ko(t);if(e){var o=ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Co(this,n)}}function Co(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ko(t){return(ko=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Eo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wo(t,e)}(a,t);var e,n,r,o=Oo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),e.successMiddleware={},e.errorMiddleware={},e.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,e.defaultErrorMessageKey=t.defaultErrorMessageKey,e}return e=a,(n=[{key:"parseUrl",value:function(t){var e=document.createElement("a");return e.href=t,""===e.host&&(e.href=e.href),e}},{key:"makeHttps",value:function(t){var e=this.parseUrl(t);return"http:"===e.protocol&&(e.protocol="https:"),e.href}},{key:"base",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=yo.GET);var o=i.defaults(r,{forceHttps:!1}),a={url:t,method:n,type:n};e&&(a.data=n===yo.POST||n===yo.PUT?JSON.stringify(e):e),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);var c=$.ajax(a);return i.keys(this.successMiddleware).length&&c.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&c.fail(i.values(this.errorMiddleware)),c}},{key:"create",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.POST).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"read",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.GET).done((function(t,e,o){n.trigger(r,t,e,o)})).fail((function(t,e,r){n.trigger(o,t,e,r)}))}},{key:"update",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.PUT).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"delete",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.DELETE).done((function(t,e,o){return n.trigger(r,t,e,o)})).fail((function(t,e,r){return n.trigger(o,t,e,r)}))}},{key:"useMiddleware",value:function(t,e){this.successMiddleware[t]||(this.successMiddleware[t]=e)}},{key:"useErrorMiddleware",value:function(t,e){this.errorMiddleware[t]||(this.errorMiddleware[t]=e)}},{key:"parseError",value:function(t){var e=t.responseJSON,n=bo.a;switch(n.code=t.status,n.message=go(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,e),t.status){case 400:n.type=vo.a.BadRequest;break;case 401:n.type=vo.a.Unauthorized;break;case 403:n.type=vo.a.Forbidden;break;case 404:n.type=vo.a.NotFound;break;case 500:n.type=vo.a.InternalServer}return n}},{key:"name",get:function(){return v.a.Ajax}}])&&So(e.prototype,n),r&&So(e,r),a}(V.Object),_o=n(181);var Ro=n(52),Po=n(13),To=n(53),Ao=n(24),xo=n(22);function Lo(t){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Do(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jo(t,e){return(jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function No(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vo(t);if(e){var o=Vo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Io(t,e){return!e||"object"!==Lo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vo(t){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jo(t,e)}(n,t);var e=No(n);function n(){return Do(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Mo(t){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ho(t,e){return(Ho=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wo(t);if(e){var o=Wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qo(this,n)}}function qo(t,e){return!e||"object"!==Mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wo(t){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ho(t,e)}(i,t);var e,n,r,o=zo(i);function i(){return Uo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"receiveLatestNotifications",value:function(t){return this.get({callback:t,formatData:function(t){return new Bo(t)},resource:"notify",eventPrefix:"".concat(To.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(t){return this.get({callback:t,resource:"notifyCount",eventPrefix:"".concat(To.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return xo.a.NotificationSocket}},{key:"channelName",get:function(){return Ao.b.NOTIFICATIONS_SOCKET}}])&&Fo(e.prototype,n),r&&Fo(e,r),i}(Po.a),Go=n(82),Jo=n(123);function Ko(t){return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $o(t,e){return($o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ei(t);if(e){var o=ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ti(this,n)}}function ti(t,e){return!e||"object"!==Ko(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ei(t){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ni=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$o(t,e)}(i,t);var e,n,r,o=Xo(i);function i(){return Qo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return Bo}}])&&Zo(e.prototype,n),r&&Zo(e,r),i}(r.a.Collection),ri=n(98);function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ci(t,e){return(ci=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ui(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=li(t);if(e){var o=li(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return si(this,n)}}function si(t,e){return!e||"object"!==oi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function li(t){return(li=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fi=function(t,e){var n="/api/domain/v2/objects/".concat(t,"/notifications?query={orderbydesc:datecreated}");if(!e)return n;var r=e.limit,o=e.cursor,i=e.before,a=[],c=Go.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},pi=function(t){return"/api/notifications/v1/notifications/".concat(t)},hi="/api/notifications/v1/notifications",yi="/api/domain/v1/notifications",di=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ci(t,e)}(i,t);var e,n,r,o=ui(i);function i(){return ii(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getNotifications",value:function(t,e,n,r){return this.get({resource:fi(t,e),expiryTime:ri.a.STANDARD,eventPrefix:n,formatData:function(t){return new ni(t,{parse:!0})},callback:r})}},{key:"markRead",value:function(t,e){return this.update({callback:e,data:{notificationStatus:Jo.a.Read},resource:pi(t),eventPrefix:"".concat(To.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(t){var e=he().utc().toISOString();return this.update({callback:t,data:{notificationStatus:Jo.a.Seen},resource:"".concat(hi,"?to=").concat(e,"&notificationStatus=").concat(Jo.a.Received),eventPrefix:"".concat(To.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(t){return this.getCursors(t)}},{key:"suggestEdit",value:function(t,e){return this.create({resource:"".concat(yi),eventPrefix:"".concat(To.a.SUGGEST_EDIT),callback:e,data:t,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return xo.a.Notification}},{key:"channelName",get:function(){return Ao.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&ai(e.prototype,n),r&&ai(e,r),i}(Po.a),bi="locale",vi="phrases";function gi(t){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Si(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wi(t,e){return(wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ci(t,e){return!e||"object"!==gi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wi(t,e)}(a,t);var e,n,r,o=Oi(a);function a(){return mi(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"getLanguageConfig",value:function(t){var e={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:To.a.LOCALE,expiryTime:ri.a.STANDARD,bootstrapName:bi,callback:function(n){e.locale=n,e.phrases&&i.isFunction(t)&&t(e)}}),this.get({resource:"/api/phrases",eventPrefix:To.a.PHRASES,expiryTime:ri.a.STANDARD,bootstrapName:vi,callback:function(n){e.phrases=n,e.locale&&i.isFunction(t)&&t(e)}})}},{key:"name",get:function(){return xo.a.Language}},{key:"channelName",get:function(){return Ao.b.LANGUAGE}}])&&Si(e.prototype,n),r&&Si(e,r),a}(Po.a),_i=n(15),Ri=n(106),Pi=n.n(Ri),Ti=n(692),Ai=n.n(Ti);function xi(t){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Li(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Di(t,e){return(Di=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ji(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ii(t);if(e){var o=Ii(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ni(this,n)}}function Ni(t,e){return!e||"object"!==xi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Di(t,e)}(a,t);var e,n,r,i=ji(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(t){return t.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&o.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var t=this;return this.$el.addClass(Pi.a.removing),this.$el.addClass(Pi.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return t.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var t=this,e=this.model.get("timeout")||this.options.timeout;e&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return t.triggerRemoval()}),e))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Pi.a.removing),this.$el.removeClass(Pi.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case Ro.a.Success:return _i.a.getSvg(_i.b.CheckCircleOutline);case Ro.a.Fail:case Ro.a.Warning:return _i.a.getSvg(_i.b.Warning);case Ro.a.Info:default:return _i.a.getSvg(_i.b.Info)}}},{key:"getTypeClass",value:function(){var t=this.model.get("type").toLowerCase();return"text-".concat(t)}},{key:"viewOptions",value:function(){return{styles:Pi.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}},{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(Pi.a.alertItem," show clearfix")}},{key:"template",get:function(){return Ai.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&Li(e.prototype,n),r&&Li(e,r),a}(r.a.Component);function Bi(t){return(Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fi(t,e){return(Fi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(t,e){return!e||"object"!==Bi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wi,Yi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fi(t,e)}(i,t);var e,n,r,o=Hi(i);function i(){return Mi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Pi.a.alertList," alert-list")}},{key:"channelName",get:function(){return C.a.ALERT}},{key:"childView",get:function(){return Vi}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Ui(e.prototype,n),r&&Ui(e,r),i}(r.a.ComponentCollection);function Gi(t){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ji(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ki(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qi(t,e,n){return(Qi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ta(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Zi(t,e){return(Zi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ta(t);if(e){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xi(this,n)}}function Xi(t,e){return!e||"object"!==Gi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ta(t){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.Success="Success! 🙌",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(Wi||(Wi={}));var ea=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zi(t,e)}(i,t);var e,n,r,o=$i(i);function i(){return Ji(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"success",value:function(t){return Qi(ta(i.prototype),"success",this).call(this,t)}},{key:"error",value:function(t){return Qi(ta(i.prototype),"error",this).call(this,t)}},{key:"name",get:function(){return a.x.Alerts}}])&&Ki(e.prototype,n),r&&Ki(e,r),i}(Ro.b),na=n(190),ra=n(136),oa=n(237),ia=n(17);function aa(t){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ca(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ua(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sa(t,e){return(sa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function la(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pa(t);if(e){var o=pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(t,e){return!e||"object"!==aa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pa(t){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ha=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sa(t,e)}(i,t);var e,n,r,o=la(i);function i(){return ca(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getCustomer",value:function(t,e){return this.get({resource:"/api/domain/v2/objects/".concat(t),formatData:function(t){return new oa.a(t)},eventPrefix:a.f.CUSTOMER,expiryTime:ia.a.STANDARD,callback:e})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&ua(e.prototype,n),r&&ua(e,r),i}(Po.a),ya=n(235);function da(t){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ba(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function va(t,e){return(va=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ga(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sa(t);if(e){var o=Sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ma(this,n)}}function ma(t,e){return!e||"object"!==da(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sa(t){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&va(t,e)}(n,t);var e=ga(n);function n(){return ba(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Oa(t){return(Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ca(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ea(t,e){return(Ea=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pa(t);if(e){var o=Pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Ra(t,e){return!e||"object"!==Oa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pa(t){return(Pa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ea(t,e)}(i,t);var e,n,r,o=_a(i);function i(){return Ca(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return wa}}])&&ka(e.prototype,n),r&&ka(e,r),i}(r.a.Collection);function Aa(t){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function La(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Da(t,e){return(Da=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ja(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ia(t);if(e){var o=Ia(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Na(this,n)}}function Na(t,e){return!e||"object"!==Aa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ia(t){return(Ia=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Va=function(t,e){var n="/api/domain/v3/settings/".concat(t);return ya.a[e]&&(n+="?kind=".concat(e)),n},Ba=function(t){return"/api/domain/v3/settings/".concat(t)},Ma=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Da(t,e)}(c,t);var e,n,r,o=ja(c);function c(){return xa(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getSetting",value:function(t,e,n){var r=i.isFunction(n)?function(t){var r=t.findWhere({name:e});i.isFunction(n)&&n(r)}:null,o=this.getSettings(t,null,r);return o?o.findWhere({name:e}):null}},{key:"getSettings",value:function(t,e,n){return this.get({callback:n,resource:Va(t,e),formatData:function(t){return new Ta(t)},eventPrefix:a.f.SETTINGS,expiryTime:ri.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(t,e,n,r){return this.update({callback:r,resource:Ba(t),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(cn.a.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:e,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return g.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&La(e.prototype,n),r&&La(e,r),c}(Po.a),Ua=n(138),Fa=n(100),Ha=n(91);function za(t){return(za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){return(Wa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ya(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ja(t);if(e){var o=Ja(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ga(this,n)}}function Ga(t,e){return!e||"object"!==za(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ja(t){return(Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ka=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wa(t,e)}(n,t);var e=Ya(n);function n(){return qa(this,n),e.apply(this,arguments)}return n}(r.a.Model),Qa=n(180),Za=n(50),$a=n(147),Xa=n(32),tc=n(304);function ec(t){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oc(t,e){return(oc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ic(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cc(t);if(e){var o=cc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ac(this,n)}}function ac(t,e){return!e||"object"!==ec(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cc(t){return(cc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var uc=function(t,e,n){var r=["query={status:[1,5],".concat(e,"}").concat(Qa.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/videos?").concat(r.join("&"))},sc=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(Qa.a.VIDEO)},lc=function(t){return"/api/domain/v2/objects/".concat(t)},fc=function(){return"/api/domain/v2/objects/move"},pc=function(){return"/api/domain/v1/share"},hc=function(t){return"/api/domain/v1/videos?ids=".concat(t.join(","),"&with=categories")},yc=function(t,e,n){var r=n.map((function(t){return"videoIds=".concat(t)}));return"/api/domain/v1/libraries/".concat(t,"/videos?categoryId=").concat(e,"&").concat(r.join("&"))},dc=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},bc=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},vc=function(t,e,n){return"/api/domain/v2/objects/".concat(t,"/").concat(e,"?").concat(Oc.getDissocIds(n))},gc=function(t){return"/api/domain/v2/videos/".concat(t,"/copy")},mc=function(t){return"/api/domain/v2/objects/".concat(t,"/libraries")},Sc=function(){return"/api/domain/v1/staffrequests"},wc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oc(t,e)}(s,t);var e,n,c,u=ic(s);function s(){return nc(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(g.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([Xa.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(t,e){var n=this,r=tn.p.GetFilterFromSort(t.sort),o=uc(t.id,r,t.cursor);return this.get({resource:o,formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString()})}},{key:"getSeriesVideos",value:function(t,e,n){var r=this,o=tn.p.GetFilterFromSort(t.sort),i="libraries.id:[".concat(e.join(","),"]"),a="".concat(o,",").concat(i),c=uc(t.id,a,t.cursor);return this.get({resource:c,formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,t,n)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString()})}},{key:"getVideo",value:function(t,e){var n=this;return this.get({resource:sc(t),formatData:function(t){return new Fa.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoData(t,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS,":").concat(t)})}},{key:"clearCacheAndGetVideo",value:function(t,e,n){var r=this;return this.clearCacheAndGet({resource:sc(t),formatData:function(t){return new Fa.a(t,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoData(t,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS,":").concat(t),errorHandler:n})}},{key:"getVideos",value:function(t,e){var n=this;return this.get({resource:hc(t),formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoCollectionData(t,null,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS_BY_ID,":").concat(t.join(","))})}},{key:"hasPhysicalChapters",value:function(t,e){return this.get({resource:"/legacy/videos/".concat(t,"/hasphysicalchapters"),formatData:function(t){return new r.a.Model(t)},callback:e,expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(t)})}},{key:"updateVideo",value:function(t,e,n,r){var o=["".concat(t)];return e&&o.push("".concat(e)),this.update({resource:lc(t),eventPrefix:"".concat(Xa.a.UPDATE_VIDEO,":").concat(t),data:n,invalidationKeys:o,callback:r})}},{key:"addOrUpdateThumbnail",value:function(t,e,n,r){var o={fileId:e.id.toString(),fileIdType:Kn.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:bc(t,n),eventPrefix:Xa.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:dc(t),eventPrefix:"".concat(Xa.a.UPDATE_VIDEO_THUMBNAIL,":").concat(t),data:o,formatData:function(t){return new Ha.a(t)},invalidationKeys:[Xa.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(t,e,n,r,o){var a=this;this.create({resource:fc(),eventPrefix:"".concat(Xa.a.MOVE_VIDEOS,":").concat(t.join(",")),formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:t},invalidationKeys:["".concat(Xa.a.VIDEOS,":collection:").concat(n),"".concat(Xa.a.VIDEOS,":collection:").concat(e)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(t,e,n,r){var o=this;this.delete({resource:yc(t,e,n),eventPrefix:Xa.a.DELETE_VIDEO,invalidationKeys:[Xa.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(t,e,n){var r={id:t,privacy:e};return this.create({data:r,resource:pc(),formatData:function(t){return new Ka(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(t,e,n,r){var o=tc.a.addVideoToLibraryAlert(e,n);this.create({resource:Sc(),eventPrefix:"add:to:library",callback:r,data:t,invalidationKeys:["".concat(Xa.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(t,e,n){if(t&&e){var r=new w.a(i.keys(e).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(e),(function(n){a.delete({resource:vc(t,n.toLowerCase(),e[n]),eventPrefix:"".concat(Xa.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(t,e,n,r){this.create({resource:gc(t),data:{libraryId:e,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(t,e){this.get({resource:mc(t),eventPrefix:"video:libraries:".concat(t),formatData:function(t){return new $a.a(t.data)},callback:e})}},{key:"invalidateCollectionVideos",value:function(t){this.invalidateCache([t.toString()])}},{key:"name",get:function(){return g.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&rc(e.prototype,n),c&&rc(e,c),s}(Po.a),Oc={videoCollection:function(t){return{dataServiceName:g.a.Video,eventName:"".concat(t.toString,":sync"),getData:function(e){return e.getCollectionVideos(t)},getInstance:function(t){return b.a.getInstance(g.a.Video,t)},beforeOnBeforeRender:!0}},getDissocIds:function(t){return"string"==typeof t?"id=".concat(t):t.map((function(t){return"id=".concat(t)})).join("&")}},Cc=n(102);function kc(t){return(kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rc(t,e){return(Rc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ac(t);if(e){var o=Ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tc(this,n)}}function Tc(t,e){return!e||"object"!==kc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ac(t){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xc,Lc,Dc=function(t){return"/api/domain/v2/search/videos?".concat(t,"&with=").concat(a.A.VIDEO_COLLECTION)},jc=function(t){return"/api/domain/v1/search/nav?".concat(t)},Nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rc(t,e)}(i,t);var e,n,r,o=Pc(i);function i(){return Ec(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(t,e,n){var r=this;return this.clearCacheAndGet({callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,null,n)},resource:Dc(t),formatData:function(t){return new Za.a(t.data)},eventPrefix:e.toString()})}},{key:"getDynamicFilters",value:function(t,e){return this.clearCacheAndGet({callback:e,resource:jc(t),formatData:function(t){return new Cc.a(t,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return xo.a.Search}},{key:"channelName",get:function(){return Ao.b.SEARCH}}])&&_c(e.prototype,n),r&&_c(e,r),i}(Po.a);function Ic(t){return(Ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mc(t,e){return(Mc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Uc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hc(t);if(e){var o=Hc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fc(this,n)}}function Fc(t,e){return!e||"object"!==Ic(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hc(t){return(Hc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t[t.IosApp=1]="IosApp",t[t.AndroidApp=2]="AndroidApp",t[t.WinApp=3]="WinApp",t[t.LibraryPublisher=4]="LibraryPublisher",t[t.ExchangeClient=5]="ExchangeClient",t[t.Online=6]="Online",t[t.Tinder=7]="Tinder",t[t.Cloud247=8]="Cloud247",t[t.Livestream=9]="Livestream",t[t.Curator=10]="Curator",t[t.LibraryEditor=11]="LibraryEditor",t[t.Lite=12]="Lite"}(xc||(xc={})),function(t){t[t.ExternalOnly=0]="ExternalOnly",t[t.EmbeddedOnly=1]="EmbeddedOnly"}(Lc||(Lc={}));var zc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mc(t,e)}(u,t);var e,n,o,c=Uc(u);function u(){return Vc(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"getPendingItem",value:function(t,e){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(t),eventPrefix:"pending:item:".concat(t),formatData:function(t){return new r.a.Model(t)},callback:e})}},{key:"getPendingItems",value:function(t){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:t})}},{key:"clearPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"clear:pending:".concat(t.join(",")),callback:e})}},{key:"cancelPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"cancel:pending:".concat(t.join(",")),callback:e})}},{key:"retryPendingItems",value:function(t,e){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"retry:pending:".concat(t.join(",")),callback:e,data:null})}},{key:"completeVideoUploads",value:function(t,e,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:t,customerId:e,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:xc.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:Lc.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(Hr.a.getPhrase(o.lang,"processingError",{videoName:tn.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(t){var e=this,n=t.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:xc.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return e.setAssoc(r,n,t)})),n}},{key:"setAssoc",value:function(t,e,n){var o=n[t];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;e[t]=o.map((function(t){return t.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;e[t]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}},{key:"name",get:function(){return a.g.VideoUpload}},{key:"channelName",get:function(){return a.e.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}}])&&Bc(e.prototype,n),o&&Bc(e,o),u}(Po.a),qc=n(305);function Wc(t){return(Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jc(t,e){return(Jc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zc(t);if(e){var o=Zc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qc(this,n)}}function Qc(t,e){return!e||"object"!==Wc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zc(t){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jc(t,e)}(i,t);var e,n,r,o=Kc(i);function i(){return Yc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"uploadBase64Image",value:function(t,e,n){return this.create({resource:"/api/image/upload?type=".concat(e),eventPrefix:a.f.UPLOAD_IMAGE,data:t,formatData:function(t){return new qc.a(t)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&Gc(e.prototype,n),r&&Gc(e,r),i}(Po.a),Xc=n(151);function tu(t){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ru(t,e){return(ru=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ou(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=au(t);if(e){var o=au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iu(this,n)}}function iu(t,e){return!e||"object"!==tu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function au(t){return(au=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ru(t,e)}(i,t);var e,n,r,o=ou(i);function i(){return eu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Xc.a}}])&&nu(e.prototype,n),r&&nu(e,r),i}(r.a.Collection);function uu(t){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function su(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fu(t,e){return(fu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yu(t);if(e){var o=yu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(t,e){return!e||"object"!==uu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yu(t){return(yu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var du=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fu(t,e)}(i,t);var e,n,r,o=pu(i);function i(){return su(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Xc.b}}])&&lu(e.prototype,n),r&&lu(e,r),i}(r.a.Collection),bu=n(246);function vu(t){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Su(t,e){return(Su=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cu(t);if(e){var o=Cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ou(this,n)}}function Ou(t,e){return!e||"object"!==vu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cu(t){return(Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ku=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(Kn.g.Video,"&status=").concat(bu.a.Pending)},Eu=function(t){return"/api/domain/v1/staffrequests/".concat(t)},_u=function(){return"/api/domain/v1/staffrequests"},Ru=function(t){return"/api/domain/v1/staffrequests/".concat(t,"/messages")},Pu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Su(t,e)}(c,t);var e,n,r,i=wu(c);function c(){return gu(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([Xa.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(t){return this.get({resource:ku(),formatData:function(t){return new cu(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:Xa.a.STAFF_REQUESTS,callback:t})}},{key:"getStaffRequest",value:function(t,e){return this.get({resource:Eu(t),formatData:function(t){return new Xc.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.STAFF_REQUEST_BY_ID,":").concat(t),callback:e})}},{key:"approveStaffRequest",value:function(t,e,n,r){var o={id:t,status:bu.a.Approved,metadata:{destinationLibraryId:e,destinationCategoryId:n}};return this.update({data:o,resource:_u(),eventPrefix:"".concat(Xa.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Xa.a.VIDEOS,Xa.a.STAFF_REQUESTS,Xa.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(t,e,n){var r={id:t,status:bu.a.Rejected,message:e};return this.update({data:r,resource:_u(),eventPrefix:"".concat(Xa.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Xa.a.STAFF_REQUESTS,Xa.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(t,e){return this.get({resource:Ru(t),formatData:function(t){return new du(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.STAFF_REQUEST_MESSAGES,":").concat(t),callback:e})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&mu(e.prototype,n),r&&mu(e,r),c}(Po.a),Tu=n(227);function Au(t){return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Du(t,e){return(Du=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ju(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Iu(t);if(e){var o=Iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nu(this,n)}}function Nu(t,e){return!e||"object"!==Au(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Iu(t){return(Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vu=function(t){return"/api/domain/v2/objects/".concat(t,"/tags")},Bu=function(t,e){return"/api/domain/v2/objects/".concat(e,"/videos/").concat(t)},Mu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Du(t,e)}(i,t);var e,n,r,o=ju(i);function i(){return xu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createTag",value:function(t,e,n){if(t&&e)return this.create({resource:Vu(e),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(tn.v.slugify(t)),formatData:function(t){return new Tu.a(t)},invalidationKeys:["".concat(e)],data:{name:t},callback:n})}},{key:"dissociateTag",value:function(t,e,n){if(t&&e)return this.delete({resource:Bu(e,t),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(t),invalidationKeys:["".concat(e)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&Lu(e.prototype,n),r&&Lu(e,r),i}(Po.a),Uu=n(187),Fu=n(155);function Hu(t){return(Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wu(t,e){return(Wu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ju(t);if(e){var o=Ju(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gu(this,n)}}function Gu(t,e){return!e||"object"!==Hu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ju(t){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ku=function(){return"/api/domain/v1/series"},Qu=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(a.A.SERIES)},Zu=function(t){return"/api/domain/v2/objects/".concat(t,"/seasons")},$u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wu(t,e)}(i,t);var e,n,r,o=Yu(i);function i(){return zu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createSeries",value:function(t,e){if(t){var n=tn.v.slugify(t);return this.create({resource:Ku(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(t){return new Uu.a(t)},invalidationKeys:["".concat(n)],data:{name:t},callback:e})}}},{key:"getSeries",value:function(t,e){return this.get({callback:e,expiryTime:a.d.STANDARD,resource:Qu(t),formatData:function(t){return new Uu.a(t)},eventPrefix:"".concat(a.f.SERIES,":").concat(t)})}},{key:"createSeason",value:function(t,e,n){if(t.number&&e)return this.create({data:t,resource:Zu(e),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(e),formatData:function(t){return new Fu.a(t)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&qu(e.prototype,n),r&&qu(e,r),i}(Po.a),Xu=n(462);function ts(t){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rs(t,e){return(rs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function os(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=as(t);if(e){var o=as(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return is(this,n)}}function is(t,e){return!e||"object"!==ts(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function as(t){return(as=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cs=function(){return"/api/domain/v2/me/ratings"},us=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rs(t,e)}(i,t);var e,n,r,o=os(i);function i(){return es(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getAllRatings",value:function(t){return this.get({resource:cs(),formatData:function(t){return new Xu.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:t})}},{key:"name",get:function(){return g.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&ns(e.prototype,n),r&&ns(e,r),i}(Po.a),ss=n(311),ls=n(184);function fs(t){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hs(t,e){return(hs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ys(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bs(t);if(e){var o=bs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(t,e){return!e||"object"!==fs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bs(t){return(bs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hs(t,e)}(n,t);var e=ys(n);function n(){return ps(this,n),e.apply(this,arguments)}return n}(r.a.Model),gs=n(294);function ms(t){return(ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ws(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Os(t,e){return(Os=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Es(t);if(e){var o=Es(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ks(this,n)}}function ks(t,e){return!e||"object"!==ms(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Es(t){return(Es=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _s,Rs=function(t){return"/api/domain/v2/objects/".concat(t,"/chapters")},Ps=function(t){return"/api/domain/v2/objects/".concat(t)},Ts=function(t){return"/api/domain/v2/objects/".concat(t)},As=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},xs=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},Ls=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Os(t,e)}(c,t);var e,n,r,o=Cs(c);function c(){return Ss(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"clearVideoCache",value:function(t){this.invalidateCache(["".concat(t)])}},{key:"createChapter",value:function(t,e,n,r){if(t&&e&&i.isNumber(n))return this.create({resource:Rs(t),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(tn.v.slugify(e)),formatData:function(t){return new ls.a(t)},invalidationKeys:["".concat(t)],data:{name:e,startTime:n},callback:r})}},{key:"updateChapter",value:function(t,e,n,r,o){if(t&&e&&i.isNumber(n))return this.update({resource:Ps(t),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(t),formatData:function(t){return new ls.a(t)},invalidationKeys:["".concat(t),"".concat(tn.v.slugify(e))],data:{name:e,startTime:n},successHandler:this.alertService.success(o||Hr.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(t,e){if(t)return this.delete({resource:Ts(t),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(t)],callback:e})}},{key:"getConcatenateRequest",value:function(t,e){var n=this;return this.clearCacheAndGet({resource:As(t),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(t),formatData:function(t){return new vs(t,{parse:!0})},callback:function(r){r.get("status")===gs.a.SingleFile&&n.clearVideoCache(t),i.isFunction(e)&&e(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(t,e){return this.create({resource:xs(t),formatData:function(t){return new vs(t)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(t),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(t)],data:null,callback:e})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ws(e.prototype,n),r&&ws(e,r),c}(Po.a);function Ds(t){return(Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function js(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Is(t,e){return(Is=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ms(t);if(e){var o=Ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bs(this,n)}}function Bs(t,e){return!e||"object"!==Ds(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ms(t){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.CollectionPdf="collection_pdf",t.CustomListPdf="custom_list_pdf"}(_s||(_s={}));var Us=function(t){return"/api/domain/v2/export/formats/pdf/types/".concat(t)},Fs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Is(t,e)}(c,t);var e,n,r,o=Vs(c);function c(){return js(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"generateCollectionPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(n),{libraryId:t,collectionId:e});return r&&(c=i.extend({},c,{sortType:tn.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:Us(_s.CollectionPdf),data:c,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(e),successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(r),{title:t,header:e,videoIds:n});return this.create({callback:o,resource:Us(_s.CustomListPdf),data:c,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(t){return{firstName:t.get("givenName"),lastName:t.get("familyName"),countryCode:t.get("countryCode"),userId:t.id,customerId:t.get("customerId"),userEmail:t.get("email")}}},{key:"name",get:function(){return a.g.Export}},{key:"channelName",get:function(){return a.e.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ns(e.prototype,n),r&&Ns(e,r),c}(Po.a),Hs=n(245),zs=n(244);function qs(t){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ys(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gs(t,e){return(Gs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Js(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qs(t);if(e){var o=Qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ks(this,n)}}function Ks(t,e){return!e||"object"!==qs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qs(t){return(Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zs,$s=function(t){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(t.join("&videoId="))},Xs=function(t){return"".concat("/api/localcache","/v1/customers/").concat(t,"/devices")},tl=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(t){t[t.MasterObject=0]="MasterObject",t[t.TrackingCode=1]="TrackingCode"}(Zs||(Zs={}));var el=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gs(t,e)}(i,t);var e,n,r,o=Js(i);function i(){return Ws(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getDownloadsForVideos",value:function(t,e){return this.get({resource:$s(t),formatData:function(t){return new zs.a(t)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(t.join(",")),expiryTime:ia.a.STANDARD,callback:e})}},{key:"getDevices",value:function(t,e){return this.get({resource:Xs(t),formatData:function(t){return new Hs.a(t)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:ia.a.STANDARD,callback:e})}},{key:"downloadVideoToLocalCache",value:function(t,e,n){this.create({resource:tl(),data:this.getDownloadVideoData(t,e),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(t,e){return{deviceId:t,videoId:e,videoIdType:Zs.MasterObject,expiresOn:he().add(14,"days")}}},{key:"name",get:function(){return a.g.LocalCache}},{key:"channelName",get:function(){return a.e.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}}])&&Ys(e.prototype,n),r&&Ys(e,r),i}(Po.a);function nl(t){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ol(t,e){return(ol=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function il(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cl(t);if(e){var o=cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return al(this,n)}}function al(t,e){return!e||"object"!==nl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cl(t){return(cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ul=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ol(t,e)}(n,t);var e=il(n);function n(){return rl(this,n),e.apply(this,arguments)}return n}(r.a.Model);function sl(t){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ll(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pl(t,e){return(pl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dl(t);if(e){var o=dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(t,e){return!e||"object"!==sl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dl(t){return(dl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pl(t,e)}(i,t);var e,n,r,o=hl(i);function i(){return ll(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ul}}])&&fl(e.prototype,n),r&&fl(e,r),i}(r.a.Collection);function vl(t){return(vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ml(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sl(t,e){return(Sl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cl(t);if(e){var o=Cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ol(this,n)}}function Ol(t,e){return!e||"object"!==vl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cl(t){return(Cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kl=function(t){var e=["type=".concat(Kn.i.RestrictedByAdmin),"objectTypeId=".concat(Kn.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return t&&e.push("page=".concat(t)),"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},El=function(t){var e=["type=".concat(Kn.i.RestrictedByAdmin),"objectTypeId=".concat(Kn.g.Video)],n="";return t&&t.forEach((function(t){return n+="&objectId=".concat(t)})),"/api/domain/v1/restrictedobjects?".concat(e.join("&")).concat(n)},_l=function(){return"/api/domain/v1/restrictedobjects"},Rl=function(t){return"/api/domain/v1/restrictedobjects?objectId=".concat(t,"&objectTypeId=").concat(Kn.g.Video)},Pl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sl(t,e)}(i,t);var e,n,r,o=wl(i);function i(){return gl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getPaginationCursors",value:function(t){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(t))}},{key:"getRestrictedVideos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",e=arguments.length>1?arguments[1]:void 0;return this.get({callback:e,resource:kl(t),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(t)})}},{key:"getVideoRestrictions",value:function(t,e,n){var r=e?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.join(","));return this.get({callback:n,resource:El(t),formatData:function(t){return new bl(t)},expiryTime:ia.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(t,e,n,r,o){var i={groupId:e,objectId:t,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:_l(),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[a.f.RESTRICTED_VIDEOS,a.f.VIDEOS_TO_REVIEW,a.f.RESTRICTED_OBJECTS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(t,e){this.delete({callback:e,resource:Rl(t),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(a.f.VIDEOS,":restricted"),a.f.RESTRICTED_VIDEOS,a.f.RESTRICTED_OBJECTS,a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionRemoved"))})}},{key:"name",get:function(){return a.g.RestrictedVideo}},{key:"channelName",get:function(){return a.e.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}}])&&ml(e.prototype,n),r&&ml(e,r),i}(Po.a),Tl=n(228);function Al(t){return(Al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ll(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dl(t,e){return(Dl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Il(t);if(e){var o=Il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nl(this,n)}}function Nl(t,e){return!e||"object"!==Al(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Il(t){return(Il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vl(t){return function(t){if(Array.isArray(t))return Bl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Bl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bl(t,e)}(t)||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 Bl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ml=function(t,e,n,r,o){var i=t.map((function(t){return"libraryId=".concat(t)})),c=[].concat(Vl(i),["from=".concat(e),"to=".concat(n)]);o&&c.push("offset=".concat(o));var u=a.A.HOSTED_VIDEO_COLLECTION;return r&&c.push.apply(c,Vl(r.map((function(t){return"categoryId=".concat(t)})))),"/api/domain/v2/videos/recent?query=".concat(u,"&").concat(c.join("&"))},Ul=function(t,e,n){var r=t.map((function(t){return"libraryId=".concat(t)})),o=[].concat(Vl(r),["from=".concat(e),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Fl=function(){var t=["type=".concat(Kn.i.TermUpdate),"objectTypeId=".concat(Kn.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(t.join("&"))},Hl=function(){var t=["type=".concat(Kn.i.TermUpdate),"objectTypeId=".concat(Kn.g.Video)];return"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},zl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dl(t,e)}(c,t);var e,n,r,o=jl(c);function c(){return xl(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"getRecentVideos",value:function(t,e){var n=this,r=t.toParams();return this.get({resource:Ml(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:t.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)}})}},{key:"getRecentVideosAllPages",value:function(t,e){var n,r=this,o=t.toParams(),c=new Za.a;this.get({resource:Ml(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString()),callback:function u(s){c.add(s.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Ml(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString(),":").concat(n.next),callback:u}):i.isFunction(e)&&e(c)}})}},{key:"getRecentVideoSubjects",value:function(t,e){var n=t.toParams();return this.get({resource:Ul(n.libraryIds,n.from,n.to),formatData:function(t){return new Tl.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"getVideosToReview",value:function(t){return this.get({callback:t,resource:Fl(),formatData:function(t){return new Za.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(t){return this.delete({callback:t,resource:Hl(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveAllVideosSuccess"))})}},{key:"name",get:function(){return a.g.ContentUpdates}},{key:"channelName",get:function(){return a.e.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}}])&&Ll(e.prototype,n),r&&Ll(e,r),c}(Po.a);function ql(t){return(ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gl(t,e){return(Gl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ql(t);if(e){var o=Ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kl(this,n)}}function Kl(t,e){return!e||"object"!==ql(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ql(t){return(Ql=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gl(t,e)}(c,t);var e,n,o,i=Jl(c);function c(){return Wl(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"createDownloadToken",value:function(t,e){this.create({data:{objectId:t},resource:"/api/downloadproxy/api/tokens",formatData:function(t){return new r.a.Model(t)},eventPrefix:"token:".concat(t),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRetrievalError")),callback:e})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&Yl(e.prototype,n),o&&Yl(e,o),c}(Po.a),$l=n(178);function Xl(t){return(Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ef(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nf(t,e){return(nf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=af(t);if(e){var o=af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return of(this,n)}}function of(t,e){return!e||"object"!==Xl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function af(t){return(af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cf=function(t){return"/api/domain/v2/objects/".concat(t,"/resources")},uf=function(t){return"/api/domain/v2/objects/".concat(t)},sf=function(t){return"/api/domain/v2/objects/".concat(t)},lf=function(t){return"/api/domain/v2/objects/".concat(t)},ff=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nf(t,e)}(c,t);var e,n,r,o=rf(c);function c(){return tf(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"addResource",value:function(t,e,n){var r=this,o=this.chain();i.each(e,(function(i,c){o.create({resource:cf(t),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(t){return new $l.a(t)},callback:n,data:i,successHandler:c+1===e.length&&r.alertService.success(Hr.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(t,e){return this.get({resource:uf(t),formatData:function(t){return new $l.a(t)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(t),callback:e})}},{key:"updateResource",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:sf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(t,e,n){var r=this;this.delete({resource:lf(e),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Resource}},{key:"channelName",get:function(){return a.e.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ef(e.prototype,n),r&&ef(e,r),c}(Po.a),pf=n(236);function hf(t){return(hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bf(t,e){return(bf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mf(t);if(e){var o=mf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gf(this,n)}}function gf(t,e){return!e||"object"!==hf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mf(t){return(mf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sf=function(t){return"/api/domain/v2/objects/".concat(t,"/subtitles")},wf=function(t){return"/api/domain/v2/objects/".concat(t)},Of=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bf(t,e)}(i,t);var e,n,r,o=vf(i);function i(){return yf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addSubtitle",value:function(t,e,n){this.create({resource:Sf(t),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(t){return new pf.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(t,e,n){var r=this;this.delete({resource:wf(e),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Subtitle}},{key:"channelName",get:function(){return a.e.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&df(e.prototype,n),r&&df(e,r),i}(Po.a),Cf=n(185);function kf(t){return(kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ef(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rf(t,e){return(Rf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Af(t);if(e){var o=Af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tf(this,n)}}function Tf(t,e){return!e||"object"!==kf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Af(t){return(Af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xf=function(t){return"/api/domain/v2/objects/".concat(t,"/links")},Lf=function(t){return"/api/domain/v2/objects/".concat(t)},Df=function(t){return"/api/domain/v2/objects/".concat(t)},jf=function(t){return"/api/domain/v2/objects/".concat(t)},Nf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rf(t,e)}(i,t);var e,n,r,o=Pf(i);function i(){return Ef(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addLink",value:function(t,e,n){this.create({resource:xf(t),eventPrefix:a.f.CREATE_LINK,formatData:function(t){return new Cf.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(t,e){return this.get({resource:Lf(t),formatData:function(t){return new Cf.a(t)},eventPrefix:"".concat(a.f.LINK,":").concat(t),callback:e})}},{key:"updateLink",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:Df(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(t,e,n){var r=this;this.delete({resource:jf(e),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRemoveError"))})}},{key:"name",get:function(){return a.g.Link}},{key:"channelName",get:function(){return a.e.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&_f(e.prototype,n),r&&_f(e,r),i}(Po.a);function If(t){return(If="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bf(t,e){return(Bf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ff(t);if(e){var o=Ff(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(t,e){return!e||"object"!==If(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ff(t){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bf(t,e)}(n,t);var e=Mf(n);function n(){return Vf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function zf(t){return(zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yf(t,e){return(Yf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kf(t);if(e){var o=Kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jf(this,n)}}function Jf(t,e){return!e||"object"!==zf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kf(t){return(Kf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qf=function(){return"/api/domain/v2/people"},Zf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yf(t,e)}(i,t);var e,n,r,o=Gf(i);function i(){return qf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createPerson",value:function(t,e){if(t)return this.create({resource:Qf(),eventPrefix:a.f.CREATE_PERSON,formatData:function(t){return new Hf(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Wf(e.prototype,n),r&&Wf(e,r),i}(Po.a);function $f(t){return($f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tp(t,e){return(tp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ep(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rp(t);if(e){var o=rp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return np(this,n)}}function np(t,e){return!e||"object"!==$f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rp(t){return(rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var op=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tp(t,e)}(n,t);var e=ep(n);function n(){return Xf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function ip(t){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function up(t,e){return(up=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fp(t);if(e){var o=fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){return!e||"object"!==ip(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fp(t){return(fp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pp=function(){return"/api/domain/v2/companies"},hp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&up(t,e)}(i,t);var e,n,r,o=sp(i);function i(){return ap(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createCompany",value:function(t,e){if(t)return this.create({resource:pp(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(t){return new op(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&cp(e.prototype,n),r&&cp(e,r),i}(Po.a);function yp(t){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vp(t,e){return(vp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sp(t);if(e){var o=Sp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mp(this,n)}}function mp(t,e){return!e||"object"!==yp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sp(t){return(Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wp=function(t){return"/api/domain/v2/objects/".concat(t)},Op=function(t){return"/api/domain/v2/objects/".concat(t,"/fields")},Cp=function(t){return"/api/domain/v2/objects/".concat(t)},kp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vp(t,e)}(c,t);var e,n,r,o=gp(c);function c(){return dp(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"updateField",value:function(t,e){this.update({resource:wp(t.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(t.id),data:t,callback:e})}},{key:"addField",value:function(t,e,n){var r=i.omit(e,"id");this.create({resource:Op(t),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(t,e){this.delete({resource:Cp(t),eventPrefix:a.f.DELETE_FIELD,callback:e})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&bp(e.prototype,n),r&&bp(e,r),c}(Po.a);var Ep=n(221),_p=n(693),Rp=n.n(_p),Pp=n(160),Tp=n(694),Ap=n.n(Tp);function xp(t){return(xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dp(t,e){return(Dp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ip(t);if(e){var o=Ip(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Np(this,n)}}function Np(t,e){return!e||"object"!==xp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ip(t){return(Ip=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dp(t,e)}(i,t);var e,n,r,o=jp(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Ap.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Lp(e.prototype,n),r&&Lp(e,r),i}(r.a.Component),Bp=n(628),Mp=n(240),Up=n(44),Fp=n(161),Hp=n.n(Fp),zp=n(695),qp=n.n(zp);function Wp(t){return(Wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jp(t,e){return(Jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zp(t);if(e){var o=Zp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qp(this,n)}}function Qp(t,e){return!e||"object"!==Wp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zp(t){return(Zp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jp(t,e)}(i,t);var e,n,r,o=Kp(i);function i(){return Yp(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,Up.a.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(Hp.a.dragOver)}},{key:"onDragOver",value:function(t){this.locked||Mp.a.isFileDrag(t)&&(this.$el.addClass(Hp.a.dragOver),t.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(Hp.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(qp()({styles:Hp.a,fileDropText:Hr.a.getPhrase(this.lang,"fileDrop")}))}},{key:"events",get:function(){var t,e,n,r="dragleave .".concat(Hp.a.dropArea);return n="onDragLeave",(e=r)in(t={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}}])&&Gp(e.prototype,n),r&&Gp(e,r),i}(r.a.Behavior),Xp=n(736),th=n(737),eh=n(135),nh=n(99),rh=n(309),oh=n(732),ih=n.n(oh),ah=n(733),ch=n.n(ah);function uh(t){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lh(t,e){return(lh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=hh(t);if(e){var o=hh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ph(this,n)}}function ph(t,e){return!e||"object"!==uh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hh(t){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lh(t,e)}(u,t);var e,n,o,c=fh(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(a.e.LIBRARY,"library:created",this.render),this.listenTo(a.e.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(rh.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"onRoute",value:function(){r.a.AppLinkHelper.getCurrentAppLink().application===a.b.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink();if(t.application!==a.b.MIGRATION_WIZARD)return!1;var e=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.REMIGRATE_VIDEO,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.MIGRATION_ERRORS];return!i.contains(e,t.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var t=this.getUI("makeAvailable");t instanceof jQuery&&t.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(t){return t.get("status")!==nh.a.Draft}))||ln.a.isPublishingLibraries(this.customerMetadata)||ln.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var t=this.isDisabled();return{styles:ih.a,disabled:t}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return ch.a}},{key:"behaviors",get:function(){return[{behaviorClass:eh.a,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:a.a.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"requiredResources",get:function(){return{libraries:Ua.b.libraries}}}])&&sh(e.prototype,n),o&&sh(e,o),u}(r.a.View),dh=n(47);function bh(t){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mh(t,e,n){return(mh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ch(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Sh(t,e){return(Sh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ch(t);if(e){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function Oh(t,e){return!e||"object"!==bh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ch(t){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sh(t,e)}(u,t);var e,n,o,c=wh(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,o=[{key:"getCacheKey",value:function(t){var e="".concat(this.name),n=i.omit(t,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(t){r.push("".concat(t,":").concat(n[t]))})),r.length&&(r.sort(),e+=":".concat(r.join(":"))),e}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,Up.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,Up.a.FILES_ADDED,this.onFilesAdded),this.configDataService=b.a.getInstance(g.a.Config,this),this.videoUploadService=b.a.getInstance(g.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=b.a.getInstance(g.a.MigrationVideo,this)}},{key:"regions",value:function(){var t;return vh(t={},a.n.TOP_BANNER,".top-banner-region"),vh(t,a.n.POPUP,".popup-region"),vh(t,a.n.TOP_NAV,".top-nav-region"),vh(t,a.n.CONTENT,".content-region"),vh(t,a.n.LEFT_NAV,".left-nav-region"),vh(t,a.n.PAGE_HEADER,".page-header-region"),vh(t,a.n.ALERT,".alert-region"),vh(t,a.n.PAGE_FOOTER,".page-footer-region"),vh(t,a.n.HIDDEN,".hidden-region"),t}},{key:"onFilesSelected",value:function(t,e){this.videoUploadService.addFiles(t),this.logAction(t,e)}},{key:"logAction",value:function(t,e){var n={actionType:Oe.UserAction.Upload,entity:Oe.EntityType.Video,location:Oe.LocationContext.VideoUpload,workflowPhase:Oe.WorkflowPhase.Start,descriptor:T.a.mapInteractionType(e)};T.a.logUserAction(t,n)}},{key:"onFilesAdded",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=t.application===a.b.LIBRARY_EDITOR&&t.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};e&&(n.params={folderId:t.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var t=Pp.contentBox;return this.options.showLeftNav&&(t+=" ".concat(Pp.leftNavContentBox)),t}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(t){this.options=i.extend({},this.defaults,t),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var t=this.getRegion(a.n.CONTENT).currentView;t?t.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new yh({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new Xp.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new th.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var t=this.configDataService.getVersion();t&&this.showChildView(a.n.PAGE_FOOTER,new Vp({version:t}))}},{key:"showChildView",value:function(t,e,n){t===a.n.CONTENT&&$(window).scrollTop(0),mh(Ch(u.prototype),"showChildView",this).call(this,t,e,n)}},{key:"handleNoIntercom",value:function(){var t=this.migrationVideoDataService.getCustomerMetadata();t&&t.get("customerMeta")!==dh.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Pp.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Pp,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(a.n.POPUP),"empty",this.onPopupRegionEmpty)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Rp.a}},{key:"className",get:function(){return Pp.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Bp.a,channelName:this.channelName},{behaviorClass:$p,channelName:this.channelName}]}}])&&gh(e.prototype,n),o&&gh(e,o),u}(r.a.LayoutView);var Eh=n(43);function _h(t){return(_h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Th(t,e){return(Th=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ah(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lh(t);if(e){var o=Lh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xh(this,n)}}function xh(t,e){return!e||"object"!==_h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lh(t){return(Lh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Th(t,e)}(u,t);var e,n,a,c=Ah(u);function u(){return Rh(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Ao.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Ao.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(t,e){e.isAppRoute&&this.setSearchContext(t)}},{key:"onTypeaheadToggle",value:function(t){if(!t.open&&!this.searchContext.get("filterValue")){var e=Xe.a.getCurrentContext().appLink;this.setSearchContext(e)}}},{key:"setSearchContext",value:function(t){var e=this.isValidSearchContext(t);e?this.updateSearchContext(e,t.args):this.inSearchView(t)||o.Radio.channel(Ao.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(t,e){t.appLink.args=e,this.searchContext.set(t),t.setFilterValue(t,this)}},{key:"setFilterValue",value:function(t){var e={filterValue:t,title:t};this.searchContext.set(e)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(t){return this.appVariables||(this.appVariables=b.a.getInstance(Eh.a.SEARCH,this)),i.find((e=this.lang,n=this.appVariables.appLinks,o=[],n.folder&&o.push({appLink:n.folder,searchTag:Hr.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:function(t,e){b.a.getInstance(xo.a.Library,e).getFolder(i.first(t.appLink.args).toString(),(function(t){e.setFilterValue(t.get("name")),b.a.releaseInstance(xo.a.Library)}))}}),n.series&&o.push({appLink:n.series,searchTag:Hr.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:function(t,e){b.a.getInstance(xo.a.Series,e).getSeries(i.first(t.appLink.args).toString(),(function(t){var n=t instanceof r.a.Model?t.get("name"):t.name;e.setFilterValue(n),b.a.releaseInstance(xo.a.Series)}))}}),o),(function(e){return t.application===e.appLink.application&&t.action===e.appLink.action}));var e,n,o}},{key:"inSearchView",value:function(t){var e=this.appVariables.appLinks.searchResults;return t.application===e.application&&t.action===e.action}},{key:"name",get:function(){return xo.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Ph(e.prototype,n),a&&Ph(e,a),u}(r.a.Service),jh=n(241);function Nh(t){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ih(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vh(t,e){return(Vh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uh(t);if(e){var o=Uh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mh(this,n)}}function Mh(t,e){return!e||"object"!==Nh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uh(t){return(Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fh,Hh,zh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vh(t,e)}(i,t);var e,n,r,o=Bh(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return e=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=b.a.getInstance(xo.a.Notification,this),this.notificationSocketService=b.a.getInstance(xo.a.NotificationSocket,this),this.userDataService=b.a.getInstance(xo.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var t=To.a.NOTIFICATIONS;this.listenTo(Ao.b.NOTIFICATIONS_SOCKET,"".concat(t,":new:sync"),this.addNewNotification),this.listenTo(Ao.b.NOTIFICATIONS_SOCKET,"".concat(t,":count:sync"),this.updateUnreadCount),this.listenTo(Ao.b.NOTIFICATIONS,"".concat(t,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Ao.a.NOTIFICATIONS,jh.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(t){var e=this;this.userDataService.getCurrentUser((function(n){e.notificationDataService.getNotifications(n.id,null,To.a.NOTIFICATIONS,(function(e){e.add(t,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=k.a.get(To.a.NOTIFICATIONS);e.set("unreadCount",t)}},{key:"getNotifications",value:function(t,e,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,t,e.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),k.a.get(To.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(t){this.notificationDataService.markRead(t)}},{key:"getNotificationsCursors",value:function(t){return this.notificationDataService.getNotificationsCursors(t.toString())}},{key:"name",get:function(){return xo.b.Notification}}])&&Ih(e.prototype,n),r&&Ih(e,r),i}(r.a.Service),qh=n(54),Wh=n(87),Yh=n(734),Gh=n(8),Jh=(Fh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}Fh(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Kh=function(t){function e(e){var n=t.call(this)||this;return n.logger=e,n}return Jh(e,t),e.prototype.send=function(t){var e=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new qh.a):t.method?t.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(t.method,t.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=t.headers;i&&Object.keys(i).forEach((function(t){o.setRequestHeader(t,i[t])})),t.responseType&&(o.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){o.abort(),r(new qh.a)}),t.timeout&&(o.timeout=t.timeout),o.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Wh.b(o.status,o.statusText,o.response||o.responseText)):r(new qh.b(o.statusText,o.status))},o.onerror=function(){e.logger.log(Gh.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new qh.b(o.statusText,o.status))},o.ontimeout=function(){e.logger.log(Gh.a.Warning,"Timeout from HTTP request."),r(new qh.c)},o.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e}(Wh.a),Qh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zh=function(t){function e(e){var n=t.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Kh(e):n.httpClient=new Yh.a(e),n}return Qh(e,t),e.prototype.send=function(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new qh.a):t.method?t.url?this.httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e.prototype.getCookieString=function(t){return this.httpClient.getCookieString(t)},e}(Wh.a),$h=n(735);!function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(Hh||(Hh={}));var Xh,ty=n(21),ey=function(){function t(){this.observers=[]}return t.prototype.next=function(t){for(var e=0,n=this.observers;e<n.length;e++){n[e].next(t)}},t.prototype.error=function(t){for(var e=0,n=this.observers;e<n.length;e++){var r=n[e];r.error&&r.error(t)}},t.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var n=e[t];n.complete&&n.complete()}},t.prototype.subscribe=function(t){return this.observers.push(t),new ty.d(this,t)},t}(),ny=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ry=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"}(Xh||(Xh={}));var oy,iy,ay=function(){function t(t,e,n,r){var o=this;ty.a.isRequired(t,"connection"),ty.a.isRequired(e,"logger"),ty.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=e,this.protocol=n,this.connection=t,this.reconnectPolicy=r,this.handshakeProtocol=new $h.a,this.connection.onreceive=function(t){return o.processIncomingData(t)},this.connection.onclose=function(t){return o.connectionClosed(t)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Xh.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Hh.Ping})}return t.create=function(e,n,r,o){return new t(e,n,r,o)},Object.defineProperty(t.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(t){if(this.connectionState!==Xh.Disconnected&&this.connectionState!==Xh.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t},enumerable:!0,configurable:!0}),t.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},t.prototype.startWithStateTransitions=function(){return ny(this,void 0,void 0,(function(){var t;return ry(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Xh.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Xh.Connecting,this.logger.log(Gh.a.Debug,"Starting HubConnection."),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return e.sent(),this.connectionState=Xh.Connected,this.connectionStarted=!0,this.logger.log(Gh.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return t=e.sent(),this.connectionState=Xh.Disconnected,this.logger.log(Gh.a.Debug,"HubConnection failed to start successfully because of error '"+t+"'."),[2,Promise.reject(t)];case 4:return[2]}}))}))},t.prototype.startInternal=function(){return ny(this,void 0,void 0,(function(){var t,e,n,r=this;return ry(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,t=new Promise((function(t,e){r.handshakeResolver=t,r.handshakeRejecter=e})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),e={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Gh.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(e))];case 3:return o.sent(),this.logger.log(Gh.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,t];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Gh.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},t.prototype.stop=function(){return ny(this,void 0,void 0,(function(){var t;return ry(this,(function(e){switch(e.label){case 0:return t=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t];case 3:return e.sent(),[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))},t.prototype.stopInternal=function(t){return this.connectionState===Xh.Disconnected?(this.logger.log(Gh.a.Debug,"Call to HubConnection.stop("+t+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Xh.Disconnecting?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Xh.Disconnecting,this.logger.log(Gh.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Gh.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=t||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(t)))},t.prototype.stream=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],c=i[1],u=this.createStreamInvocation(t,n,c),s=new ey;return s.cancelCallback=function(){var t=e.createCancelInvocation(u.invocationId);return delete e.callbacks[u.invocationId],o.then((function(){return e.sendWithProtocol(t)}))},this.callbacks[u.invocationId]=function(t,e){e?s.error(e):t&&(t.type===Hh.Completion?t.error?s.error(new Error(t.error)):s.complete():s.next(t.item))},o=this.sendWithProtocol(u).catch((function(t){s.error(t),delete e.callbacks[u.invocationId]})),this.launchStreams(a,o),s},t.prototype.sendMessage=function(t){return this.resetKeepAliveInterval(),this.connection.send(t)},t.prototype.sendWithProtocol=function(t){return this.sendMessage(this.protocol.writeMessage(t))},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.replaceStreamingParams(e),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(t,e,!0,i));return this.launchStreams(o,a),a},t.prototype.invoke=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],c=this.createInvocation(t,n,!1,a),u=new Promise((function(t,n){e.callbacks[c.invocationId]=function(e,r){r?n(r):e&&(e.type===Hh.Completion?e.error?n(new Error(e.error)):t(e.result):n(new Error("Unexpected message type: "+e.type)))};var r=e.sendWithProtocol(c).catch((function(t){n(t),delete e.callbacks[c.invocationId]}));e.launchStreams(i,r)}));return u},t.prototype.on=function(t,e){t&&e&&(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},t.prototype.off=function(t,e){if(t){t=t.toLowerCase();var n=this.methods[t];if(n)if(e){var r=n.indexOf(e);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[t])}else delete this.methods[t]}},t.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},t.prototype.onreconnecting=function(t){t&&this.reconnectingCallbacks.push(t)},t.prototype.onreconnected=function(t){t&&this.reconnectedCallbacks.push(t)},t.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var e=0,n=this.protocol.parseMessages(t,this.logger);e<n.length;e++){var r=n[e];switch(r.type){case Hh.Invocation:this.invokeClientMethod(r);break;case Hh.StreamItem:case Hh.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===Hh.Completion&&delete this.callbacks[r.invocationId],o(r));break;case Hh.Ping:break;case Hh.Close:this.logger.log(Gh.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Gh.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},t.prototype.processHandshakeResponse=function(t){var e,n,r;try{r=(e=this.handshakeProtocol.parseHandshakeResponse(t))[0],n=e[1]}catch(t){var o="Error parsing handshake response: "+t;this.logger.log(Gh.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Gh.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Gh.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},t.prototype.resetKeepAliveInterval=function(){var t=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return ny(t,void 0,void 0,(function(){return ry(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Xh.Connected)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return t.sent(),[3,4];case 3:return t.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},t.prototype.resetTimeoutPeriod=function(){var t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return t.serverTimeout()}),this.serverTimeoutInMilliseconds))},t.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},t.prototype.invokeClientMethod=function(t){var e=this,n=this.methods[t.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(e,t.arguments)}))}catch(e){this.logger.log(Gh.a.Error,"A callback for the method "+t.target.toLowerCase()+" threw error '"+e+"'.")}if(t.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Gh.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Gh.a.Warning,"No client method with the name '"+t.target+"' found.")},t.prototype.connectionClosed=function(t){this.logger.log(Gh.a.Debug,"HubConnection.connectionClosed("+t+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||t||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Xh.Disconnecting?this.completeClose(t):this.connectionState===Xh.Connected&&this.reconnectPolicy?this.reconnect(t):this.connectionState===Xh.Connected&&this.completeClose(t)},t.prototype.completeClose=function(t){var e=this;if(this.connectionStarted){this.connectionState=Xh.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(e,[t])}))}catch(e){this.logger.log(Gh.a.Error,"An onclose callback called with error '"+t+"' threw error '"+e+"'.")}}},t.prototype.reconnect=function(t){return ny(this,void 0,void 0,(function(){var e,n,r,o,i,a=this;return ry(this,(function(c){switch(c.label){case 0:if(e=Date.now(),n=0,r=void 0!==t?t:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Gh.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(t),[2];if(this.connectionState=Xh.Reconnecting,t?this.logger.log(Gh.a.Information,"Connection reconnecting because of error '"+t+"'."):this.logger.log(Gh.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(e){return e.apply(a,[t])}))}catch(e){this.logger.log(Gh.a.Error,"An onreconnecting callback called with error '"+t+"' threw error '"+e+"'.")}if(this.connectionState!==Xh.Reconnecting)return this.logger.log(Gh.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}c.label=1;case 1:return null===o?[3,7]:(this.logger.log(Gh.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(t){a.reconnectDelayHandle=setTimeout(t,o)}))]);case 2:if(c.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Xh.Reconnecting)return this.logger.log(Gh.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(c.sent(),this.connectionState=Xh.Connected,this.logger.log(Gh.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(t){return t.apply(a,[a.connection.connectionId])}))}catch(t){this.logger.log(Gh.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+t+"'.")}return[2];case 5:return i=c.sent(),this.logger.log(Gh.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Xh.Reconnecting?(this.logger.log(Gh.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-e,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Gh.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-e)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},t.prototype.getNextRetryDelay=function(t,e,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:t,retryReason:n})}catch(n){return this.logger.log(Gh.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+t+", "+e+") threw error '"+n+"'."),null}},t.prototype.cancelCallbacksWithError=function(t){var e=this.callbacks;this.callbacks={},Object.keys(e).forEach((function(n){(0,e[n])(null,t)}))},t.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},t.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},t.prototype.createInvocation=function(t,e,n,r){if(n)return{arguments:e,streamIds:r,target:t,type:Hh.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:e,invocationId:o.toString(),streamIds:r,target:t,type:Hh.Invocation}},t.prototype.launchStreams=function(t,e){var n=this;if(0!==t.length){e||(e=Promise.resolve());var r=function(r){t[r].subscribe({complete:function(){e=e.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(t){var o;o=t instanceof Error?t.message:t&&t.toString?t.toString():"Unknown error",e=e.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(t){e=e.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,t))}))}})};for(var o in t)r(o)}},t.prototype.replaceStreamingParams=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var o=t[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,e[i]=o,n.push(i.toString()),t.splice(r,1)}}return[e,n]},t.prototype.isObservable=function(t){return t&&t.subscribe&&"function"==typeof t.subscribe},t.prototype.createStreamInvocation=function(t,e,n){var r=this.invocationId;return this.invocationId++,{arguments:e,invocationId:r.toString(),streamIds:n,target:t,type:Hh.StreamInvocation}},t.prototype.createCancelInvocation=function(t){return{invocationId:t,type:Hh.CancelInvocation}},t.prototype.createStreamItemMessage=function(t,e){return{invocationId:t,item:e,type:Hh.StreamItem}},t.prototype.createCompletionMessage=function(t,e,n){return e?{error:e,invocationId:t,type:Hh.Completion}:{invocationId:t,result:n,type:Hh.Completion}},t}(),cy=[0,2e3,1e4,3e4,null],uy=function(){function t(t){this.retryDelays=void 0!==t?t.concat([null]):cy}return t.prototype.nextRetryDelayInMilliseconds=function(t){return this.retryDelays[t.previousRetryCount]},t}();!function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(oy||(oy={})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(iy||(iy={}));var sy=function(){function t(){this.isAborted=!1,this.onabort=null}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),ly=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},fy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},py=function(){function t(t,e,n,r){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.pollAbort=new sy,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(t.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),t.prototype.connect=function(t,e){return ly(this,void 0,void 0,(function(){var n,r,o,i;return fy(this,(function(a){switch(a.label){case 0:if(ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.url=t,this.logger.log(Gh.a.Trace,"(LongPolling transport) Connecting."),e===iy.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},e===iy.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=t+"&_="+Date.now(),this.logger.log(Gh.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Gh.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new qh.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},t.prototype.getAccessToken=function(){return ly(this,void 0,void 0,(function(){return fy(this,(function(t){switch(t.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,null]}}))}))},t.prototype.updateHeaderToken=function(t,e){t.headers||(t.headers={}),e?t.headers.Authorization="Bearer "+e:t.headers.Authorization&&delete t.headers.Authorization},t.prototype.poll=function(t,e){return ly(this,void 0,void 0,(function(){var n,r,o,i;return fy(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(e,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=t+"&_="+Date.now(),this.logger.log(Gh.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,e)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Gh.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Gh.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new qh.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Gh.a.Trace,"(LongPolling transport) data received. "+Object(ty.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof qh.c?this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Gh.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},t.prototype.send=function(t){return ly(this,void 0,void 0,(function(){return fy(this,(function(e){return this.running?[2,Object(ty.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return ly(this,void 0,void 0,(function(){var t,e;return fy(this,(function(n){switch(n.label){case 0:this.logger.log(Gh.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Gh.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.getAccessToken()];case 3:return e=n.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 4:return n.sent(),this.logger.log(Gh.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Gh.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},t.prototype.raiseOnClose=function(){if(this.onclose){var t="(LongPolling transport) Firing onclose event.";this.closeError&&(t+=" Error: "+this.closeError),this.logger.log(Gh.a.Trace,t),this.onclose(this.closeError)}},t}(),hy=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},yy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},dy=function(){function t(t,e,n,r,o){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return hy(this,void 0,void 0,(function(){var n,r=this;return yy(this,(function(o){switch(o.label){case 0:return ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.logger.log(Gh.a.Trace,"(SSE transport) Connecting."),this.url=t,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(e===iy.Text){var a;if(ty.c.isBrowser||ty.c.isWebWorker)a=new r.eventSourceConstructor(t,{withCredentials:!0});else{var c=r.httpClient.getCookieString(t);a=new r.eventSourceConstructor(t,{withCredentials:!0,headers:{Cookie:c}})}try{a.onmessage=function(t){if(r.onreceive)try{r.logger.log(Gh.a.Trace,"(SSE transport) data received. "+Object(ty.f)(t.data,r.logMessageContent)+"."),r.onreceive(t.data)}catch(t){return void r.close(t)}},a.onerror=function(t){var e=new Error(t.data||"Error occurred");i?r.close(e):o(e)},a.onopen=function(){r.logger.log(Gh.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(t){return void o(t)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},t.prototype.send=function(t){return hy(this,void 0,void 0,(function(){return yy(this,(function(e){return this.eventSource?[2,Object(ty.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return this.close(),Promise.resolve()},t.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(t))},t}(),by=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},vy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},gy=function(){function t(t,e,n,r,o){this.logger=n,this.accessTokenFactory=e,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=t,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return by(this,void 0,void 0,(function(){var n,r=this;return vy(this,(function(o){switch(o.label){case 0:return ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.logger.log(Gh.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;t=t.replace(/^http/,"ws");var a=r.httpClient.getCookieString(t),c=!1;ty.c.isNode&&a&&(i=new r.webSocketConstructor(t,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(t)),e===iy.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(e){r.logger.log(Gh.a.Information,"WebSocket connected to "+t+"."),r.webSocket=i,c=!0,n()},i.onerror=function(t){var e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:new Error("There was an error with the transport."),o(e)},i.onmessage=function(t){r.logger.log(Gh.a.Trace,"(WebSockets transport) data received. "+Object(ty.f)(t.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(t.data)},i.onclose=function(t){if(c)r.close(t);else{var e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:new Error("There was an error with the transport."),o(e)}}}))]}}))}))},t.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Gh.a.Trace,"(WebSockets transport) sending data. "+Object(ty.f)(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},t.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},t.prototype.close=function(t){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Gh.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!t||!1!==t.wasClean&&1e3===t.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+t.code+" ("+t.reason+").")))},t}(),my=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Sy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},wy=null,Oy=null;if(ty.c.isNode){var Cy=require;wy=Cy("ws"),Oy=Cy("eventsource")}var ky=function(){function t(t,e){void 0===e&&(e={}),this.features={},this.negotiateVersion=1,ty.a.isRequired(t,"url"),this.logger=Object(ty.e)(e.logger),this.baseUrl=this.resolveUrl(t),(e=e||{}).logMessageContent=e.logMessageContent||!1,ty.c.isNode||"undefined"==typeof WebSocket||e.WebSocket?ty.c.isNode&&!e.WebSocket&&wy&&(e.WebSocket=wy):e.WebSocket=WebSocket,ty.c.isNode||"undefined"==typeof EventSource||e.EventSource?ty.c.isNode&&!e.EventSource&&void 0!==Oy&&(e.EventSource=Oy):e.EventSource=EventSource,this.httpClient=e.httpClient||new Zh(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=e,this.onreceive=null,this.onclose=null}return t.prototype.start=function(t){return my(this,void 0,void 0,(function(){var e;return Sy(this,(function(n){switch(n.label){case 0:return t=t||iy.Binary,ty.a.isIn(t,iy,"transferFormat"),this.logger.log(Gh.a.Debug,"Starting connection with transfer format '"+iy[t]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(t),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(e="Failed to start the HttpConnection before stop() was called.",this.logger.log(Gh.a.Error,e),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(e))];case 3:if("Connected"!==this.connectionState)return e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Gh.a.Error,e),[2,Promise.reject(new Error(e))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},t.prototype.send=function(t){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Ey(this.transport)),this.sendQueue.send(t))},t.prototype.stop=function(t){return my(this,void 0,void 0,(function(){var e=this;return Sy(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(t){e.stopPromiseResolver=t})),[4,this.stopInternal(t)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},t.prototype.stopInternal=function(t){return my(this,void 0,void 0,(function(){var e;return Sy(this,(function(n){switch(n.label){case 0:this.stopError=t,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return e=n.sent(),this.logger.log(Gh.a.Error,"HttpConnection.transport.stop() threw error '"+e+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Gh.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},t.prototype.startInternal=function(t){return my(this,void 0,void 0,(function(){var e,n,r,o,i,a;return Sy(this,(function(c){switch(c.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==oy.WebSockets?[3,3]:(this.transport=this.constructTransport(oy.WebSockets),[4,this.startTransport(e,t)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var t;return Sy(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(e)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(e=n.url),n.accessToken&&(t=n.accessToken,i.accessTokenFactory=function(){return t}),r++,[2]}}))},i=this,c.label=6;case 6:return[5,o()];case 7:c.sent(),c.label=8;case 8:if(n.url&&r<100)return[3,6];c.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,n,t)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof py&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Gh.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=c.sent(),this.logger.log(Gh.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},t.prototype.getNegotiationResponse=function(t){return my(this,void 0,void 0,(function(){var e,n,r,o,i,a,c;return Sy(this,(function(u){switch(u.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=u.sent())&&((e={}).Authorization="Bearer "+r,n=e),u.label=2;case 2:o=this.resolveNegotiateUrl(t),this.logger.log(Gh.a.Debug,"Sending negotiation request: "+o+"."),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=u.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return c=u.sent(),this.logger.log(Gh.a.Error,"Failed to complete negotiation with the server: "+c),[2,Promise.reject(c)];case 6:return[2]}}))}))},t.prototype.createConnectUrl=function(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+"id="+e:t},t.prototype.createTransport=function(t,e,n,r){return my(this,void 0,void 0,(function(){var o,i,a,c,u,s,l,f,p,h,y;return Sy(this,(function(d){switch(d.label){case 0:return o=this.createConnectUrl(t,n.connectionToken),this.isITransport(e)?(this.logger.log(Gh.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.startTransport(o,r)]):[3,2];case 1:return d.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],c=n,u=0,s=a,d.label=3;case 3:return u<s.length?(l=s[u],(f=this.resolveTransportOrError(l,e,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,c)return[3,9];d.label=5;case 5:return d.trys.push([5,7,,8]),[4,this.getNegotiationResponse(t)];case 6:return c=d.sent(),[3,8];case 7:return p=d.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(t,c.connectionToken),d.label=9;case 9:return d.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return d.sent(),this.connectionId=c.connectionId,[2];case 11:return h=d.sent(),this.logger.log(Gh.a.Error,"Failed to start the transport '"+l.transport+"': "+h),c=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(y="Failed to select transport before stop() was called.",this.logger.log(Gh.a.Debug,y),[2,Promise.reject(new Error(y))]):[3,12];case 12:return u++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},t.prototype.constructTransport=function(t){switch(t){case oy.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new gy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case oy.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new dy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case oy.LongPolling:return new py(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.startTransport=function(t,e){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return n.stopConnection(t)},this.transport.connect(t,e)},t.prototype.resolveTransportOrError=function(t,e,n){var r=oy[t.transport];if(null==r)return this.logger.log(Gh.a.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+t.transport+"' because it is not supported by this client.");if(!function(t,e){return!t||0!=(e&t)}(e,r))return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it was disabled by the client."),new Error("'"+oy[r]+"' is disabled by the client.");if(!(t.transferFormats.map((function(t){return iy[t]})).indexOf(n)>=0))return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it does not support the requested transfer format '"+iy[n]+"'."),new Error("'"+oy[r]+"' does not support "+iy[n]+".");if(r===oy.WebSockets&&!this.options.WebSocket||r===oy.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it is not supported in your environment.'"),new Error("'"+oy[r]+"' is not supported in your environment.");this.logger.log(Gh.a.Debug,"Selecting transport '"+oy[r]+"'.");try{return this.constructTransport(r)}catch(t){return t}},t.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},t.prototype.stopConnection=function(t){var e=this;if(this.logger.log(Gh.a.Debug,"HttpConnection.stopConnection("+t+") called while in state "+this.connectionState+"."),this.transport=void 0,t=this.stopError||t,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),t?this.logger.log(Gh.a.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(Gh.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(t){e.logger.log(Gh.a.Error,"TransportSendQueue.stop() threw error '"+t+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(e){this.logger.log(Gh.a.Error,"HttpConnection.onclose("+t+") threw error '"+e+"'.")}}}else this.logger.log(Gh.a.Warning,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Gh.a.Debug,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is already in the disconnected state.")},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!ty.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(Gh.a.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),n=t.substring(0,-1===e?t.length:e);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===e?"":t.substring(e)).indexOf("negotiateVersion")&&(n+=-1===e?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},t}();var Ey=function(){function t(t){this.transport=t,this.buffer=[],this.executing=!0,this.sendBufferedData=new _y,this.transportResult=new _y,this.sendLoopPromise=this.sendLoop()}return t.prototype.send=function(t){return this.bufferData(t),this.transportResult||(this.transportResult=new _y),this.transportResult.promise},t.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},t.prototype.bufferData=function(t){if(this.buffer.length&&typeof this.buffer[0]!=typeof t)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof t);this.buffer.push(t),this.sendBufferedData.resolve()},t.prototype.sendLoop=function(){return my(this,void 0,void 0,(function(){var e,n,r;return Sy(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new _y,e=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):t.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),e.resolve(),[3,5];case 4:return r=o.sent(),e.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},t.concatBuffers=function(t){for(var e=t.map((function(t){return t.byteLength})).reduce((function(t,e){return t+e})),n=new Uint8Array(e),r=0,o=0,i=t;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},t}(),_y=function(){function t(){var t=this;this.promise=new Promise((function(e,n){var r;return r=[e,n],t.resolver=r[0],t.rejecter=r[1],r}))}return t.prototype.resolve=function(){this.resolver()},t.prototype.reject=function(t){this.rejecter(t)},t}(),Ry=n(116),Py=n(125),Ty=function(){function t(){this.name="json",this.version=1,this.transferFormat=iy.Text}return t.prototype.parseMessages=function(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=Ry.a.instance);for(var n=[],r=0,o=Py.a.parse(t);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case Hh.Invocation:this.isInvocationMessage(a);break;case Hh.StreamItem:this.isStreamItemMessage(a);break;case Hh.Completion:this.isCompletionMessage(a);break;case Hh.Ping:case Hh.Close:break;default:e.log(Gh.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},t.prototype.writeMessage=function(t){return Py.a.write(JSON.stringify(t))},t.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},t.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},t.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},t.prototype.assertNotEmptyString=function(t,e){if("string"!=typeof t||""===t)throw new Error(e)},t}(),Ay=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xy={trace:Gh.a.Trace,debug:Gh.a.Debug,info:Gh.a.Information,information:Gh.a.Information,warn:Gh.a.Warning,warning:Gh.a.Warning,error:Gh.a.Error,critical:Gh.a.Critical,none:Gh.a.None};var Ly=function(){function t(){}return t.prototype.configureLogging=function(t){if(ty.a.isRequired(t,"logging"),void 0!==t.log)this.logger=t;else if("string"==typeof t){var e=function(t){var e=xy[t.toLowerCase()];if(void 0!==e)return e;throw new Error("Unknown log level: "+t)}(t);this.logger=new ty.b(e)}else this.logger=new ty.b(t);return this},t.prototype.withUrl=function(t,e){return ty.a.isRequired(t,"url"),this.url=t,this.httpConnectionOptions=Ay({},this.httpConnectionOptions,"object"==typeof e?e:{transport:e}),this},t.prototype.withHubProtocol=function(t){return ty.a.isRequired(t,"protocol"),this.protocol=t,this},t.prototype.withAutomaticReconnect=function(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new uy(t):this.reconnectPolicy=t:this.reconnectPolicy=new uy,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new ky(this.url,t);return ay.create(e,this.logger||Ry.a.instance,this.protocol||new Ty,this.reconnectPolicy)},t}();function Dy(t){return(Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jy(t){return function(t){if(Array.isArray(t))return Ny(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(t,e)}(t)||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 Ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vy(t,e){return(Vy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function By(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uy(t);if(e){var o=Uy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return My(this,n)}}function My(t,e){return!e||"object"!==Dy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uy(t){return(Uy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fy(t){return(Fy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qy(t,e){return(qy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gy(t);if(e){var o=Gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yy(this,n)}}function Yy(t,e){return!e||"object"!==Fy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gy(t){return(Gy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qy(t,e)}(i,t);var e,n,r,o=Wy(i);function i(){return Hy(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return v.a.Notifications}}])&&zy(e.prototype,n),r&&zy(e,r),i}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vy(t,e)}(i,t);var e,n,r,o=By(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).subscribeEvent="subscribe",e.reconnectTimeout=5e3,e.reconnectAttempts=100,e.reconnectTries=0,e.connection=e.createConnection(t),e.authEndpoint=t.authEndpoint,e.setProviderOptions(t),e.attachSocketEvents(),!1===t.lazy&&e.openConnection(),e}return e=i,(n=[{key:"setProviderOptions",value:function(t){t.subscribeEvent&&(this.subscribeEvent=t.subscribeEvent),t.reconnectTimeout&&(this.reconnectTimeout=t.reconnectTimeout),t.reconnectAttempts&&(this.reconnectAttempts=t.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Xh.Connecting),this.connect()}},{key:"connect",value:function(){var t=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(e){return t.start.apply(t,e)}),(function(e){return t.onConnectionError.apply(t,e)}))}},{key:"start",value:function(t){var e=this;return this.connection.invoke(this.subscribeEvent,t.token).then((function(){return e.setConnectionState(Xh.Connected)})).catch((function(t){return e.onConnectionError(t)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var t=this;this.connection.onclose((function(){return t.onConnectionError})),this.connection.onreconnected((function(){return t.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(t){var e=this;t?console.log("Connection Error. Reason: ".concat(t)):console.log("Connection Error."),this.setConnectionState(Xh.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return e.reconnectTries++,e.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(t){var e=new Ly,n=Go.a.removeTrailingSlash(t.endpoint),r="".concat(n,"/hubs/").concat(t.hubName),o={logger:Gh.a.Error};return t.logging&&(o.logger=Gh.a.Debug),e.withUrl(r,o).build()}},{key:"getConnectionToken",value:function(){var t={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(t)}},{key:"setConnectionState",value:function(t){t===Xh.Connected&&console.log("Connected!"),t===Xh.Disconnected&&console.log("Disconnected!"),this.connectionState=t}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===Xh.Connecting||this.connectionState===Xh.Connected||this.connectionState===Xh.Reconnecting}},{key:"create",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"read",value:function(t,e){this.openConnection(),this.subscribe(t,e)}},{key:"update",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"delete",value:function(t,e){this.openConnection(),this.rpc(t,null,e)}},{key:"parseError",value:function(){return bo.a}},{key:"rpc",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.connection.invoke(t,e).then((function(t){return r.trigger.apply(r,[o].concat(jy(t)))})).catch((function(t){return r.trigger.apply(r,[i].concat(jy(t)))}))}},{key:"subscribe",value:function(t,e){var n=e.channel,r=e.successEvent;this.connection.on(t,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n.trigger.apply(n,[r].concat(e))}))}}])&&Iy(e.prototype,n),r&&Iy(e,r),i}(V.Object)),Ky=n(310),Qy=n(36);function Zy(t){return(Zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xy(t,e){return(Xy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function td(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nd(t);if(e){var o=nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ed(this,n)}}function ed(t,e){return!e||"object"!==Zy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nd(t){return(nd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xy(t,e)}(i,t);var e,n,r,o=td(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Hr.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return e=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Hr.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&$y(e.prototype,n),r&&$y(e,r),i}(Qy.a);function od(t){return(od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function id(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cd(t,e,n){return(cd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=fd(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ud(t,e){return(ud=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fd(t);if(e){var o=fd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ld(this,n)}}function ld(t,e){return!e||"object"!==od(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fd(t){return(fd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ud(t,e)}(c,t);var e,n,o,i=sd(c);function c(){return id(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"addFiles",value:function(t){var e=this;b.a.getInstance(a.g.Library).getLibraries((function(n){b.a.releaseInstance(a.g.Library),n&&n.length?cd(fd(c.prototype),"addFiles",e).call(e,t):r.a.ErrorHelper.throw(new rd)}))}}])&&ad(e.prototype,n),o&&ad(e,o),c}(Ky.a);function hd(t){return(hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bd(t,e,n){return e&&dd(t.prototype,e),n&&dd(t,n),t}function vd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gd(t,e)}function gd(t,e){return(gd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function md(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wd(t);if(e){var o=wd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sd(this,n)}}function Sd(t,e){return!e||"object"!==hd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wd(t){return(wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Od=function(t){vd(n,t);var e=md(n);function n(){return yd(this,n),e.apply(this,arguments)}return bd(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Cd=function(t){vd(n,t);var e=md(n);function n(){return yd(this,n),e.apply(this,arguments)}return bd(n,[{key:"model",get:function(){return Od}}]),n}(r.a.Collection),kd=n(124);function Ed(t){return(Ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pd(t,e){return(Pd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Td(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xd(t);if(e){var o=xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ad(this,n)}}function Ad(t,e){return!e||"object"!==Ed(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xd(t){return(xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ld=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pd(t,e)}(u,t);var e,n,a,c=Td(u);function u(){return _d(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.videoDataService=b.a.getInstance(xo.a.Video,this),this.videoUploadDataService=b.a.getInstance(xo.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(t,e){var n=this;switch(t.get("pendingProcessStatus")){case kd.a.Completed:case kd.a.Error:this.videoUploadDataService.clearPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.updateViewModel(),n.videoDataService.clearVideoCache(),i.isFunction(e)&&e()}));break;case kd.a.Processing:this.videoUploadDataService.cancelPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.videoDataService.clearVideoCache(),n.updateViewModel(),i.isFunction(e)&&e()}))}}},{key:"forceFetchPendingItems",value:function(t){this.fetchPendingItems(t)}},{key:"retryPendingItem",value:function(t,e){var n=this;this.videoUploadDataService.retryPendingItems([t.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:e})}))}},{key:"itemStatusChanged",value:function(){o.Radio.channel(this.channelName).trigger(Up.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var t=this;return this.pendingItems||(this.pendingItems=new Cd,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(e){e.get("foregroundComplete")&&(t.itemStatusChanged(),e.get("video")&&o.Radio.channel(t.channelName).trigger(Up.a.PENDING_ITEM_READY_TO_WATCH,e))})),this.listenTo(this.pendingItems,"remove",(function(e){e.get("clearing")||t.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),(function(e){e.get("status")===kd.a.Completed&&t.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=i.map(n,(function(t){return t.masterVideoId.toString()})),a=function(r){i.each(n,(function(t){var e=r.get(t.masterVideoId);e&&(t.video=e,t.foregroundProgress>=100&&e.get("status")===nh.a.Processing&&e.set("status",nh.a.Published))})),t.pendingItems.set(n),t.updateViewModel(),e.resetTimeout&&window.setTimeout(i.bind(t.fetchPendingItems,t),t.getTimeoutLength()),i.isFunction(e.callback)&&e.callback()};o.length?t.videoDataService.getVideos(o,a):a(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var t=k.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var e=this.pendingItems.where((function(t){return t.get("pendingProcessStatus")>=0})),n=0;i.each(e,(function(t){return n+=t.get("foregroundProgress")}));var r=100*e.length;t.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==e.length})}else t.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(t){return t.get("pendingProcessStatus")===kd.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return xo.b.PendingItems}},{key:"channelName",get:function(){return Ao.c.PENDING_ITEMS}}])&&Rd(e.prototype,n),a&&Rd(e,a),u}(r.a.Service),Dd=n(101);function jd(t){return(jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vd(t,e,n){return(Vd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Fd(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Bd(t,e){return(Bd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Md(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fd(t);if(e){var o=Fd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ud(this,n)}}function Ud(t,e){return!e||"object"!==jd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fd(t){return(Fd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bd(t,e)}(i,t);var e,n,r,o=Md(i);function i(){return Nd(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){Vd(Fd(i.prototype),"initialize",this).call(this),this.alertService=b.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,Up.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(t){var e=t.get("video");if(e){var n=Hr.a.getPhrase(this.lang,"readyToWatch",{videoName:tn.v.escapeExpression(e.get("name"))});Dd.a.isDone(t)||(n+=Hr.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Hr.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:e.get("name")}),message:n,type:Ro.a.Success,appLinkText:Hr.a.getPhrase(this.lang,"goToVideo",{videoName:e.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[e.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&Id(e.prototype,n),r&&Id(e,r),i}(Ld),zd=n(148),qd=n.n(zd),Wd=n(229);function Yd(t){return(Yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kd(t,e){return(Kd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$d(t);if(e){var o=$d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zd(this,n)}}function Zd(t,e){return!e||"object"!==Yd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $d(t){return($d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kd(t,e)}(u,t);var e,n,r,c=Qd(u);function u(){var t;return Gd(this,u),(t=c.apply(this,arguments)).disabledLibraryIds=[],t}return e=u,(n=[{key:"initialize",value:function(){var t=this;this.videoDataService=b.a.getInstance(a.g.Video,this),this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(e){return t.customLibraries=e}))}},{key:"onDragStart",value:function(t,e){var n;this.videos=t,this.collectionIdentifier=e,$("body").addClass(qd.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(t){return!!this.videos&&!i.any(this.videos,(function(e){return e.categories.any((function(e){return e.id===t.id}))}))}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(t){r||(r=t.categories.find((function(t){return t.get("id")===+n.collectionIdentifier.id})),o=t)}));var a=this.videos,c=this.videos.map((function(t){return t.get("id")})),u=1===c.length?o.get("name"):"",s=Wd.a.moveVideoAlert(r.get("name"),t.get("name"),t.get("id"),c.length,u);this.videoDataService.moveVideos(c,t.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(t){return t.collection.remove(t)})),n.logAction(i.map(c,(function(e){return{id:e,newParentId:t.get("id"),oldParentId:r.get("id"),count:c.length}})),e)}),s),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(qd.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var t=this,e=this.customLibraries.find((function(e){return!!tn.f.getModelFromCollection(t.collectionIdentifier.id,e.get("children"))})),n=[];this.videos.forEach((function(t){t.get("libraries").forEach((function(t){t.get("id").toString()!==e.get("id").toString()&&n.push(t.get("id"))}))})),this.disabledLibraryIds=i.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){o.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:Oe.UserAction.Move,entity:Oe.EntityType.Video,descriptor:Oe.InteractionTypeDescriptor.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.VideoDragDrop}},{key:"channelName",get:function(){return a.w.VIDEO_DRAG_DROP}}])&&Jd(e.prototype,n),r&&Jd(e,r),u}(r.a.Service),tb=n(162),eb=n(92),nb=n(195);function rb(t){return(rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ob(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ib(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ab(t,e){return(ab=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=sb(t);if(e){var o=sb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ub(this,n)}}function ub(t,e){return!e||"object"!==rb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sb(t){return(sb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ab(t,e)}(u,t);var e,n,i,c=cb(u);function u(){return ob(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"onLibrarySync",value:function(t){this.libraries=t}},{key:"accept",value:function(t){return!(!this.folder||this.isSameFolder(t)||!this.isSameLibrary(t)||this.isParentFolder(t)||this.isChildFolder(t))}},{key:"isSameFolder",value:function(t){return this.folder.id===t.id}},{key:"isSameLibrary",value:function(t){var e=tn.f.getLibrary(this.folder.id,this.libraries),n=tn.f.getLibrary(t.id,this.libraries);return!(!e||!n)&&e.id===n.id}},{key:"isParentFolder",value:function(t){var e=tn.f.getParent(this.folder.id,this.libraries);return!!e&&e.id===t.id}},{key:"isChildFolder",value:function(t){for(var e=tn.f.getModelFromCollection(t.id,this.libraries);e&&e.collection&&e.collection.parent;)if((e=e.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(t){return tn.f.calculateDestinationFolderDepth(this.folder,t.id,this.libraries)>tb.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(t){this.folder=t,$("body").addClass(qd.a.dragging)}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(t))window.setTimeout((function(){r.a.ErrorHelper.throw(new nb.b)}),tb.a.POPUP_FADE_TIMEOUT);else{var a=tn.f.getSelected(eb.a.LIBRARY_EDITOR,i),c=tn.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,t.id,c.id,(function(){a&&tn.f.setSelected(eb.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:t.id,oldParentId:c.id},e)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(qd.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){o.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:Oe.UserAction.Move,entity:Oe.EntityType.Folder,descriptor:Oe.InteractionTypeDescriptor.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.FolderDragDrop}},{key:"channelName",get:function(){return a.w.FOLDER_DRAG_DROP}}])&&ib(e.prototype,n),i&&ib(e,i),u}(r.a.Service),fb=n(90);function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function db(t,e){return(db=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gb(t);if(e){var o=gb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vb(this,n)}}function vb(t,e){return!e||"object"!==pb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gb(t){return(gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&db(t,e)}(u,t);var e,n,r,c=bb(u);function u(){return hb(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=k.a.get(this.viewModelName,{videos:{}},{ctor:Fa.a,storage:{type:fb.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n={};t.forEach((function(t){return n["".concat(t.id,":").concat(e)]={id:t.id.toString(),folderChord:e}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(t){var e={};t.each((function(t){return e["".concat(t.id,":").concat(t.get("chord"))]={id:t.id.toString(),folderChord:t.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),e);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n=t.map((function(t){return"".concat(t.id,":").concat(e)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(t,e){return i.contains(n,e)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var t=this.getSelectedVideos();return i.map(i.keys(t),(function(e){return t[e]&&t[e].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){o.Radio.channel(a.e.MIGRATION).trigger(a.i.MigrationWizard.SELECTED_CHANGED)}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return a.w.SELECTED_VIDEO}}])&&yb(e.prototype,n),r&&yb(e,r),u}(r.a.Service);function Sb(t){return(Sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ob(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cb(t,e){return(Cb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_b(t);if(e){var o=_b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eb(this,n)}}function Eb(t,e){return!e||"object"!==Sb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _b(t){return(_b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Rb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cb(t,e)}(i,t);var e,n,r,o=kb(i);function i(){return wb(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(t,e){this.options[t]=e}},{key:"getOption",value:function(t){return this.options[t]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ob(e.prototype,n),r&&Ob(e,r),i}(r.a.Service);function Pb(t){return(Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ab(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xb(t,e){return(xb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Lb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jb(t);if(e){var o=jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Db(this,n)}}function Db(t,e){return!e||"object"!==Pb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jb(t){return(jb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xb(t,e)}(c,t);var e,n,r,o=Lb(c);function c(){return Tb(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(t,e){return this.folderChordMap&&!this.collectionUpdated(e)||this.buildFolderChordMap(e),this.folderChordMap[t]}},{key:"buildFolderChordMap",value:function(t){var e=this;this.folderChordMap={},t.each((function t(n){e.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(t)}))}},{key:"collectionUpdated",value:function(t){return!(this.cachedFolderCollectionCid&&t.customCid&&this.cachedFolderCollectionCid===t.customCid||(t.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&Ab(e.prototype,n),r&&Ab(e,r),c}(r.a.Service);function Ib(t){return(Ib="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mb(t,e){return(Mb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ub(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hb(t);if(e){var o=Hb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fb(this,n)}}function Fb(t,e){return!e||"object"!==Ib(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hb(t){return(Hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mb(t,e)}(c,t);var e,n,r,o=Ub(c);function c(){return Vb(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=b.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(t,e,n){this.getAndMixinVideoCollectionRestrictions(t,e,n)}},{key:"mixinVideoData",value:function(t,e){this.getAndMixinVideoRestriction(t,e)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(t,e,n){var r=this;if(t&&t.length){var o=t.map((function(t){return t.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,e,(function(e){t.forEach((function(t){return r.mixinVideoRestriction(t,e)})),i.isFunction(n)&&n(t)}))}else i.isFunction(n)&&n(t)}},{key:"getAndMixinVideoRestriction",value:function(t,e){var n=this;this.restrictedVideoDataService.getVideoRestrictions([t.id],null,(function(r){n.mixinVideoRestriction(t,r),i.isFunction(e)&&e(t)}))}},{key:"mixinLocalCacheDownloads",value:function(t,e){t.unset("localCacheDownloads"),e&&e.findWhere({objectId:t.get("id").toString()})&&t.set("localCacheDownloads",e)}},{key:"mixinVideoRestriction",value:function(t,e){if(t.unset("restrictions"),e){var n=e.findWhere({objectId:t.get("id")});n&&t.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Bb(e.prototype,n),r&&Bb(e,r),c}(r.a.Service),qb=n(25);function Wb(t){return(Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gb(t,e){return(Gb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qb(t);if(e){var o=Qb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kb(this,n)}}function Kb(t,e){return!e||"object"!==Wb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qb(t){return(Qb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gb(t,e)}(i,t);var e,n,r,o=Jb(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return this.options.viewOptions}},{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}}])&&Yb(e.prototype,n),r&&Yb(e,r),i}(r.a.Component);function $b(t){return($b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tv(t,e){return(tv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ev(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rv(t);if(e){var o=rv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nv(this,n)}}function nv(t,e){return!e||"object"!==$b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rv(t){return(rv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ov=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tv(t,e)}(i,t);var e,n,r,o=ev(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){var t=b.a.getInstance(a.x.PartialLoading,this);this.collection=t.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var t=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(t+=this.options.className),t}},{key:"childView",get:function(){return Zb}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&Xb(e.prototype,n),r&&Xb(e,r),i}(r.a.ComponentCollection);function iv(t){return(iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function av(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uv(t,e){return(uv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fv(t);if(e){var o=fv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lv(this,n)}}function lv(t,e){return!e||"object"!==iv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fv(t){return(fv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uv(t,e)}(u,t);var e,n,o,c=sv(u);function u(){return av(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(t,e){var n=this,r=this.getPartialLoadingRegions(t);i.each(i.keys(r),(function(o){if(!e||o===e){var i=r[o],a=n.getComponent(i.partialLoading);t.showChildView(o,a)}}))}},{key:"getComponent",value:function(t){var e="number"==typeof t?a.u[t]:t;return"number"!=typeof t&&(t=Kn.h.Unselected),e||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat(Kn.h[t],"."))),e.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat(Kn.h[t],"."))),e.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat(Kn.h[t],"."))),new(this.getCtor(e.component))(e.options)}},{key:"getCtor",value:function(t){switch(t){case qb.a.ComponentCollection:return ov;case qb.a.Component:default:return Zb}}},{key:"getPartialLoadingRegions",value:function(t){return i.pick(t.regions,(function(t){return i.has(t,"partialLoading")}))}},{key:"getCollection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,e=new Array(t);return new r.a.Collection(e)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&cv(e.prototype,n),o&&cv(e,o),u}(r.a.Service);function hv(t){return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bv(t,e){return(bv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mv(t);if(e){var o=mv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gv(this,n)}}function gv(t,e){return!e||"object"!==hv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mv(t){return(mv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bv(t,e)}(c,t);var e,n,o,i=vv(c);function c(){return yv(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&dv(e.prototype,n),o&&dv(e,o),c}(r.a.Service);function wv(t){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ov(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kv(t,e){return(kv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ev(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rv(t);if(e){var o=Rv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _v(this,n)}}function _v(t,e){return!e||"object"!==wv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rv(t){return(Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kv(t,e)}(u,t);var e,n,i,c=Ev(u);function u(){return Ov(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.text;this.lockOptions=t,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(t){return t.returnValue=e,e}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(t){var e=this;new tn.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),e.unlock(),r.a.AppLinkHelper.trigger(t)}))}},{key:"getNavLockOptions",value:function(){var t=this.lockOptions,e=t.title,n=t.text;return{title:e||Hr.a.getPhrase(this.lang,"discardChanges"),text:n||Hr.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Hr.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Hr.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}},{key:"name",get:function(){return a.x.NavLock}},{key:"lang",get:function(){return"shared.services"}}])&&Cv(e.prototype,n),i&&Cv(e,i),u}(r.a.Service);function Tv(t){return(Tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Av(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lv(t,e){return(Lv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nv(t);if(e){var o=Nv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jv(this,n)}}function jv(t,e){return!e||"object"!==Tv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nv(t){return(Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Iv=" - ClickView",Vv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lv(t,e)}(c,t);var e,n,o,i=Dv(c);function c(){return Av(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(t){t&&r.a.LocationUtils.SetPageTitle(this.trimTitle(t))}},{key:"trimTitle",value:function(t){return t?t.length+Iv.length<=60?t+Iv:t.substring(0,57)+"..."+Iv:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&xv(e.prototype,n),o&&xv(e,o),c}(r.a.Service);function Bv(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Uv(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zv(t);if(e){var o=zv(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Hv(this,n)}}function Hv(t,e){return!e||"object"!==Bv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function zv(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}oo.a;var qv=n(242),Wv=n(40),Yv=n(196),Gv=n(140),Jv=n(146),Kv=n(226);function Qv(t){var e=k.a.get("informational:error:handler");e.get("rendered")||(e.set("rendered",!0),new Yv.a(Object.assign(Object.assign({},t.dialogOptions),{channelName:"informational:error"})).render().done((function(){return t.onDone()})).fail((function(){return t.onFail()})).always((function(){return e.clear()})))}function Zv(t){b.a.getInstance(g.b.Alerts).createAlert({heading:Ro.c.Fail,type:Ro.a.Fail,message:t.message})}function $v(){r.a.AppLinkHelper.trigger({application:Gv.a.DEFAULT,action:Jv.a.Default.NOT_FOUND})}function Xv(t){o.Radio.channel("error:view").replyOnce("current:error",(function(){return t})),r.a.AppLinkHelper.trigger({application:Gv.a.DEFAULT,action:Jv.a.Default.ERROR})}var tg=n(10);function eg(t){return(eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ng={register:function(){var t=this;tg.registerHelper("lang",(function(e,n){if(t.isValid(e,n)){var r=n.data.root.languageNamespace;return Hr.a.getPhrase(r,e,n.hash)}}))},isValid:function(t,e){return"string"!=typeof t?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!==eg(e)?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(e.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)}};var rg=n(243);function og(t){return(og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ig(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ag(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cg(t,e){return(cg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ug(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lg(t);if(e){var o=lg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}function sg(t,e){return!e||"object"!==og(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lg(t){return(lg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cg(t,e)}(i,t);var e,n,r,o=ug(i);function i(){return ig(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:a.b.SEARCH,action:a.a.Search.HOME},videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},series:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.SERIES},tagSearch:{application:a.b.SEARCH,action:a.a.Search.HOME},newLibrary:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY},folder:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.FOLDER}}}},{key:"addSlugs",get:function(){return!1}},{key:"searchBarPlaceholder",get:function(){return null}},{key:"showSearchTips",get:function(){return!0}}])&&ag(e.prototype,n),r&&ag(e,r),i}(rg.BaseSearchAppVariables),pg=n(62);function hg(t){return(hg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bg(t,e){return(bg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mg(t);if(e){var o=mg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gg(this,n)}}function gg(t,e){return!e||"object"!==hg(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mg(t){return(mg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bg(t,e)}(i,t);var e,n,r,o=vg(i);function i(){return yg(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},notifications:{application:a.b.NOTIFICATIONS,action:a.a.Notifications.HOME},pastReleases:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.PAST_RELEASES},awaitingReview:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[pg.a.VideoReviewReminder,pg.a.VideoReviewAddedToLibrary,pg.a.CustomLibraryVideoAvailable,pg.a.StaffRequest,pg.a.StaffRequestFulfilled,pg.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&dg(e.prototype,n),r&&dg(e,r),i}(rg.BaseNotificationsAppVariables);new y,o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(t,e){var n=t.$("[name="+e+"]"),r=n.closest(".form-group");n.removeClass("is-invalid"),r.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(t,e,n){var r=t.$("[name="+e+"]"),o=r.closest(".form-group");r.addClass("is-invalid"),o.find(".form-feedback").addClass("invalid-feedback").html(n)}});var wg=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[d.a.ALERT,d.a.POPUP,d.a.HIDDEN]})});wg.addInitializationStep((function(t,e){t.registerLayout(Ep.a.ManageLayout,kh),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(ho,{size:100}),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(fg).registerInstance(Sg),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(Eo,{dataServiceErrorMessageMappings:_o.a,defaultErrorMessageKey:_o.b}),e(t)})).addInitializationStep((function(t,e){var n={maxAlerts:3,defaultSuccessAlert:{heading:Ro.c.Success,type:Ro.a.Success},defaultErrorAlert:{heading:Ro.c.Fail,type:Ro.a.Fail},alertViewCtor:Yi};b.a.registerSingleton(new ea(n));var r=b.a.getInstance(g.b.Alerts),o={cache:no.a.Fifo,dataProvider:v.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,b.a.registerDataService(na.a,o).registerDataService(ra.a,o).registerDataService(ha,o).registerDataService(Ma,o).registerDataService(Ua.a,o).registerDataService(wc,o).registerDataService(Nc,o).registerDataService(zc,o).registerDataService($c,o).registerDataService(di,o).registerDataService(Pu,o).registerDataService(Mu,o).registerDataService($u,o).registerDataService(us,o).registerDataService(ss.a,o).registerDataService(Ls,o).registerDataService(Fs,o).registerDataService(el,o).registerDataService(Pl,o).registerDataService(Ei,o).registerDataService(zl,o).registerDataService(Zl,o).registerDataService(ff,o).registerDataService(Of,o).registerDataService(Nf,o).registerDataService(Zf,o).registerDataService(hp,o).registerDataService(kp,o);var i={cache:no.a.Fifo,dataProvider:v.a.Notifications,alertService:r};b.a.registerDataService(Yo,i),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(pd).registerInstance(Hd).registerInstance(Xd).registerInstance(lb).registerInstance(zh).registerInstance(mb).registerInstance(Rb).registerInstance(Nb).registerInstance(zb).registerInstance(y),b.a.registerSingleton(new Dh).registerSingleton(new pv).registerSingleton(new Sv).registerSingleton(new Pv).registerSingleton(new Vv),b.a.getInstance(g.a.Config).getConfig((function(n){b.a.registerInstance(Jy,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),b.a.getInstance(g.a.Language).getLanguageConfig((function(t){Hr.a.setConfig(t),b.a.releaseInstance(g.a.Language)})),e(t),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(t,e){var n,r,o,i=b.a.getInstance(g.a.Config),a=b.a.getInstance(g.a.User);function c(){return new Promise((function(t,e){a.getCurrentUser((function(e){t(e.toJSON())}),(function(){e()}))}))}var u=new w.a(3),s=function(){if(u.decrement(),!(u.getValue()>0)){var i=new I({user:r.toJSON(),config:n.toJSON()});b.a.registerSingleton(i),i.registerTransport(Y),i.registerClient(pe);var a=n.get("countryCode").toLowerCase();i.registerClient(ne,{productName:"cloud.web",productVersion:o,regionName:Xt[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:c,shouldLog:Ue.shouldLog,formatData:Ue.formatData}),i.registerEnricher(we,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(st),i.registerClient(re.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),b.a.releaseInstance(g.a.Config),b.a.releaseInstance(g.a.User),e(t)}};i.getVersion((function(t){o=t,s()})),i.getConfig((function(t){n=t,s()})),a.getCurrentUser((function(t){r=t,s()}))})).addInitializationStep((function(t,e){t.registerApplication($e).registerApplication(En).registerApplication(Vn).registerApplication(Jn).registerApplication(ar).registerApplication(mr).registerApplication(Ar).registerApplication(Fr).registerApplication(eo),e(t)})).addInitializationStep((function(t,e){b.a.getInstance(g.a.Config).getVersion((function(n){var o=b.a.getInstance(v.a.Ajax);o.useMiddleware("versionInvalidation",(function(t,e,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new m.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(t){401===t.status&&r.a.ErrorHelper.throw(new S.a)})),e(t),b.a.releaseInstance(v.a.Ajax),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(t,e){r.a.View.AddViewDataExtension((function(t){return{languageNamespace:i.result(t,"lang")}})),e(t)})).addInitializationStep((function(t,e){ng.register(),e(t)})).addInitializationStep((function(t,e){t.registerErrorHandler(Wv.a,Xv).registerErrorHandler(Qy.a,Qv).registerErrorHandler(qv.a,Zv).registerErrorHandler(Kv.a,$v),e()})),wg.addStartUpStep((function(t,e,n){var r=b.a.getInstance(g.a.Config);r.getConfig((function(){r.getVersion((function(r){e.environment="DEVELOPMENT",e.version=r,oe.a.setUpVariables({isDevelopment:!1}),n(t,e),b.a.releaseInstance(g.a.Config)}))}))})).addStartUpStep((function(t,e,n){b.a.getInstance(g.a.Config).getConfig((function(r){console.log("%cWelcome to the new %c▶%cClick%cView%c! 🔥🎉🙏","color: grey; font-size:24px","color:#f8981d; font-size:24px","color:#f8981d; font-size:24px","color:black; font-size:24px","color: grey; font-size:24px"),console.log("%cIf you have any issues or need any help with anything, please contact our friendly product support team. ".concat(r.get("supportSiteUrl")),"color: black; font-size:14px"),n(t,e),b.a.releaseInstance(g.a.Config)}))})),wg.start()},function(t,e){t.exports=s},function(t,e){t.exports=l}])}));
8
+ var r=n(994),o=n(995),i=n(996);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=p(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n),o=(t=c(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|h(e.length);return 0===(t=c(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?c(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=c(t,e<0?0:0|h(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|h(e.length);t=c(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function d(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return _(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,o){var i,a=1,c=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(t,i)===s(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(t,i+p)!==s(e,p)){f=!1;break}if(f)return i}return-1}function m(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))return a;t[n+a]=c}return a}function S(t,e,n,r){return H(U(e,t.length-n),t,n,r)}function w(t,e,n,r){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function O(t,e,n,r){return w(t,e,n,r)}function C(t,e,n,r){return H(F(e),t,n,r)}function k(t,e,n,r){return H(function(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function _(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,c,u,s=t[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return s(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?c(t,e):void 0!==n?"string"==typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?_(this,0,t):d.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=t.slice(e,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return O(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=M(t[i]);return o}function A(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function x(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function N(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,r,i){return i||N(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function V(t,e,n,r,i){return i||N(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var o=e-t;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||x(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||x(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||x(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=0,a=1,c=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return V(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return V(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var a=u.isBuffer(t)?t:U(new u(t,r).toString()),c=a.length;for(i=0;i<n-e;++i)this[i+e]=a[i%c]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function M(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(257))},function(t,e,n){"use strict";var r=n(477);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(479);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(480);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(481);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(482);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(483);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(198);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(484);n.o(l,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));var f=n(485);n.o(f,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(486);n.o(p,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(487);n.o(h,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(488);n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(489);n.o(d,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var b=n(490);n.o(b,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(491);n.o(v,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(492);n.o(g,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(493);n.o(m,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var S=n(494);n.o(S,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(495);n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(496);n.o(O,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables}));var C=n(497);n.o(C,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var k=n(498);n.o(k,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(499);n.o(E,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(500);n.o(_,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(501);n.o(R,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}))},function(t,e,n){"use strict";var r=n(478);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(503);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(506);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(513);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(514);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(515);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(516);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(517);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}));var l=n(518);n.o(l,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables}));n(519);var f=n(520);n.o(f,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables}));var p=n(521);n.o(p,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables}));var h=n(522);n.o(h,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables}));var y=n(199);n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var d=n(523);n.o(d,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables}));var b=n(524);n.o(b,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables}));var v=n(525);n.o(v,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables}));var g=n(526);n.o(g,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables}));var m=n(527);n.o(m,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables}));var S=n(528);n.o(S,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables}));var w=n(200);n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var O=n(529);n.o(O,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(w,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables}));var C=n(530);n.o(C,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables}));var k=n(531);n.o(k,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables}));var E=n(532);n.o(E,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables}));var _=n(533);n.o(_,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables}));var R=n(534);n.o(R,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return R.BaseNotificationsAppVariables})),n.o(R,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return R.BaseSearchAppVariables}));var P=n(201);n.o(P,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));n(535);var T=n(536);n.o(T,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables}));var A=n(537);n.o(A,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables}));var x=n(538);n.o(x,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables}));var L=n(539);n.o(L,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables}));var D=n(540);n.o(D,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables}));var j=n(541);n.o(j,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables}));var N=n(542);n.o(N,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables}));var I=n(543);n.o(I,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables}));var V=n(544);n.o(V,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables}));var B=n(545);n.o(B,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables}));var M=n(546);n.o(M,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables}));var U=n(547);n.o(U,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables}));var F=n(548);n.o(F,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables}));var H=n(549);n.o(H,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables}));var z=n(550);n.o(z,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables}));var q=n(551);n.o(q,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables}));var W=n(552);n.o(W,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(P,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables}));var Y=n(553);n.o(Y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables}));var G=n(554);n.o(G,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables}));var J=n(555);n.o(J,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables}));var K=n(556);n.o(K,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(y,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables}));var Q=n(557);n.o(Q,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables}));var Z=n(558);n.o(Z,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables}));var $=n(559);n.o($,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables}));var X=n(560);n.o(X,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables}));var tt=n(561);n.o(tt,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return tt.BaseNotificationsAppVariables})),n.o(tt,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return tt.BaseSearchAppVariables}))},function(t,e,n){"use strict";var r=n(504);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(505);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(507);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(508);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(509);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));n(510);var a=n(511);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(512);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t[t.MultipleChoice=1]="MultipleChoice",t[t.ShortAnswer=2]="ShortAnswer",t[t.TrueOrFalse=3]="TrueOrFalse",t[t.Annotation=4]="Annotation",t[t.Image=5]="Image",t[t.MissingWord=6]="MissingWord"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t.Pink="colour:0",t.Pizazz="colour:1",t.Emerald="colour:2",t.PictonBlue="colour:3",t.EastSide="colour:4",t.Portage="colour:5"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero",t[t.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(563);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}))},function(t,e){},function(t,e,n){"use strict";var r=n(565);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(566);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(567);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(568);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(569);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(570);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(571);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(573);n.o(r,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables}));var o=n(574);n.o(o,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables}));var i=n(575);n.o(i,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables}));var a=n(576);n.o(a,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables}));var c=n(577);n.o(c,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables}));var u=n(578);n.o(u,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables}));var s=n(579);n.o(s,"BaseNotificationsAppVariables")&&n.d(e,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(e,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(43);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,i;return e=t,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&o(e.prototype,n),i&&o(e,i),t}();function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(e.prototype,n),o&&a(e,o),t}();n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return c}))},function(t,e,n){"use strict";var r=n(2),o=n(6),i=n(36),a=n(3);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h="shared.tooManyFiles",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(i,t);var e,n,r,o=l(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,a.a.getPhrase(h,"title"))}return e=i,(n=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:a.a.getPhrase(h,"heading"),text:a.a.getPhrase(h,"body"),buttons:[{text:a.a.getPhrase(h,"okay"),className:"btn btn-primary",success:!0}]}}}])&&u(e.prototype,n),r&&u(e,r),i}(i.a),d=n(240),b=n(234),v=n(44);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return E}));var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(c,t);var e,n,i,a=O(c);function c(){return m(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(t){if(!this.locked){t.preventDefault();var e=t.originalEvent;if(d.a.isFileDrag(t)){var n=[];if(e.dataTransfer.items)for(var i=0;i<e.dataTransfer.items.length;i++)"file"===e.dataTransfer.items[i].kind&&n.push(e.dataTransfer.items[i].getAsFile());else for(var a=0;a<e.dataTransfer.files.length;a++){var c=e.dataTransfer.files[a];n.push(c)}n.length>1&&!this.options.acceptMultiple?r.a.ErrorHelper.throw(new y):(o.Radio.channel(this.options.channelName).trigger(v.a.FILES_SELECTED,n,b.a.DragDrop),e.dataTransfer.items?e.dataTransfer.items.clear():e.dataTransfer.clearData())}}}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}}])&&S(e.prototype,n),i&&S(e,i),c}(r.a.Behavior)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return g}));var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=d(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){t.exports={videoGroupList:"_38Usa"}},function(t,e,n){t.exports={partialSubFolder:"_1ltue"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.title:i,e))+'"></h6>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.requestedBy:i,e))+'"></p>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.date:i,e))+'"></p>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.badge:i,e))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selectButton:i,e))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={content:"_3_8yg"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={button:"_3owCz"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.video:i,e))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' partial-loading-background"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+' partial-loading-background mt-1"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subSubText:i,e))+' partial-loading-background mt-1"></div>'},useData:!0})},function(t,e,n){t.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"z4_PP",subText:"_1CvDv"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.back:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.detailsTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.chaptersTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learningTab:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background">&nbsp</button>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textbox:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.player:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={player:"H6oUk"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return' <div class="col-12 pr-3 py-1 '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.videoRow:c,e))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n <div class="partial-loading-background d-inline-block '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.text:c,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.views:c,e))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortingRow:c,e))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.bulkCheckbox:c,e))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label">&nbsp;</label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+s(u(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.videoList:c,e))+'">\r\n'+(null!=(c=n.each.call(null!=e?e:t.nullContext||{},null!=(c=null!=e?e.options:e)?c.videoItems:c,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</div>"},useData:!0,useDepths:!0})},function(t,e,n){t.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.toggle:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={row:"rShIv"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled>&nbsp</button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled>&nbsp</button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button">&nbsp</button>'},useData:!0})},function(t,e,n){t.exports={button:"_1CETN"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.multilineSubText:i,e))+'"></div>\r\n <div class="my-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_2x-al",item:"hFvEo"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth1:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth3:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background">&nbsp;</div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e,n){t.exports=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,e,n,r){var o,i,a,c=e||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<t.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=t[o]<<8*(s+r*(a%4));return{value:c,binLen:8*t.length+n}}function r(t,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,e,n){return function(t,e,n,r){var o,i,a,c;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<t.length;o+=2){if(i=parseInt(t.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*t.length+n}}(t,e,n,o)};case"TEXT":return function(t,e,n){return function(t,e,n,r,o){var i,a,c,u,s,l,f,p,h=0,y=n||[0],d=(r=r||0)>>>3;if("UTF8"===e)for(f=-1===o?3:0,c=0;c<t.length;c+=1)for(a=[],128>(i=t.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===e&&1!==o||"UTF16LE"!==e&&1===o,c=0;c<t.length;c+=1){for(i=t.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+d)>>>2;y.length<=s;)y.push(0);y[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:y,binLen:8*h+r}}(t,r,e,n,o)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,y=-1===o?3:0,d=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==d&&d<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(u=t.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=e.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(y+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(t,n,r,o)};case"BYTES":return function(t,e,n){return function(t,e,n,r){var o,i,a,c,u=e||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<t.length;i+=1)o=t.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*t.length+n}}(t,e,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,e,r){return function(t,e,r,o){return n(new Uint8Array(t),e,r,o)}(t,e,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,e,r){return n(t,e,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t,n,r,o){switch(t){case"HEX":return function(t){return function(t,e,n,r){var o,i,a="",c=e/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=t[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(t,n,r,o)};case"B64":return function(t){return function(t,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?t[i+1>>>2]:0,s=i+2<f?t[i+2>>>2]:0,c=(t[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?e.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(t,n,r,o)};case"BYTES":return function(t){return function(t,e,n){var r,o,i="",a=e/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=t[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(t,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(c+n*(r%4))&255;return i}(t,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(i+n*(r%4))&255;return a}(t,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(t){var e={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},r="Output length must be a multiple of 8";if(e.outputUpper=n.outputUpper||!1,n.b64Pad&&(e.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);e.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);e.outputLen=n.shakeLen}if("boolean"!=typeof e.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof e.b64Pad)throw new Error("Invalid b64Pad formatting option");return e}function a(t,e){return t<<e|t>>>32-e}function c(t,e,n){return t^e^n}function u(t,e,n){return t&e^t&n^e&n}function s(t,e){var n=(65535&t)+(65535&e);return(65535&(t>>>16)+(e>>>16)+(n>>>16))<<16|65535&n}function l(t,e,n,r,o){var i=(65535&t)+(65535&e)+(65535&n)+(65535&r)+(65535&o);return(65535&(t>>>16)+(e>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(t,e){var n,r,o,i,f,p,h,y,d=[];for(n=e[0],r=e[1],o=e[2],i=e[3],f=e[4],h=0;h<80;h+=1)d[h]=h<16?t[h]:a(d[h-3]^d[h-8]^d[h-14]^d[h-16],1),p=h<20?l(a(n,5),(y=r)&o^~y&i,f,1518500249,d[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,d[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,d[h]):l(a(n,5),c(r,o,i),f,3395469782,d[h]),f=i,i=o,o=a(r,30),r=n,n=p;return e[0]=s(n,e[0]),e[1]=s(r,e[1]),e[2]=s(o,e[2]),e[3]=s(i,e[3]),e[4]=s(f,e[4]),e}function h(t,e,n,r){for(var o,i=15+(e+65>>>9<<4),a=e+n;t.length<=i;)t.push(0);for(t[e>>>5]|=128<<24-e%32,t[i]=4294967295&a,t[i-1]=a/4294967296|0,o=0;o<t.length;o+=16)r=p(t.slice(o,o+16),r);return r}return function(e){function n(t,n,o){var i=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=e.call(this,t,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(t){return t.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(t,e,n,o){var i="hmacKey must include a value and format";if(!e)throw new Error(i);if(void 0===e.value||!e.format)throw new Error(i);return r(e.format,e.encoding||"UTF8",n)(e.value)}(0,a.hmacKey,i.u)),i}return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,e),n}(function(){function t(t,e,n){var r=n||{};if(this.h=e,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=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var e,n=0,r=this.T>>>5,o=this.s(t,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(e=0;e<c;e+=r)n+this.T<=i&&(this.U=this.A(a.slice(e,e+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},t.prototype.getHash=function(t,e){var n,r,a=this.m,c=i(e);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(t,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));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 u(r)},t.prototype.setHMACKey=function(t,e,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 o=r(e,(n||{}).encoding||"UTF8",this.u);this.B(o(t))},t.prototype.B=function(t){var e,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<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=r;)t.value.push(0);for(e=0;e<=r;e+=1)this.N[e]=909522486^t.value[e],this.S[e]=1549556828^t.value[e];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,e){var n=i(e);return o(t,this.m,this.u,n)(this.o())},t.prototype.o=function(){var t;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var e=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),this.R(e,this.m,this.T,t,this.m)},t}())}()},function(t){t.exports=JSON.parse('{"a":"1.0.19"}')},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=n(1),o=n(4),i=n(233);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],h=["sort"],y=["release-date","subjects"],d=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(f,e);var n,i,a,l=s(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,t)}return n=f,a=[{key:"queryParamWhitelist",get:function(){return[].concat(p,y,h)}},{key:"eventWhitelist",get:function(){return t={},e=o.UserAction.Navigate,n=function(t){return!r.isArray(t.data)&&t.data.currentLocation},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}}],(i=[{key:"initialize",value:function(){this.bootstrap(this.options.trackingId,this.options.userId)}},{key:"shouldLog",value:function(t){var e=f.eventWhitelist[t.type];return r.isBoolean(e)?e:!!r.isFunction(e)&&e(t)}},{key:"log",value:function(t){this.logPageView(t)}},{key:"logPageView",value:function(t){if(t&&!r.isArray(t.data)){var e=t.data.currentLocation;e&&this.ga("set","page",e),this.ga("send","pageview")}}},{key:"bootstrap",value:function(e,n){this.ga||(t.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:e,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:f.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}},{key:"name",get:function(){return"GoogleAnalyticsClient"}}])&&c(n.prototype,i),a&&c(n,a),f}(i.a)}).call(this,n(984))},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"multiple"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'accept="'+t.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=e?e.mimeType:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=e?e.acceptMultiple:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=e?e.mimeType:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" />"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.buttonText:i,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.spinnerEl:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return(null!=(i=n.each.call(a,null!=e?e.buttons:e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=e?e.spinnerButton:e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return' <button type="'+s("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:u)?a.call(c,{name:"type",hash:{},data:o}):a)+'" class="'+s("function"==typeof(a=null!=(a=n.className||(null!=e?e.className:e))?a:u)?a.call(c,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(c,null!=e?e.close:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+s("function"==typeof(a=null!=(a=n.text||(null!=e?e.text:e))?a:u)?a.call(c,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(t,e,n,r,o){return'data-dismiss="modal"'},5:function(t,e,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,s=t.escapeExpression;return'<div class="modal-dialog '+s("function"==typeof(a=null!=(a=n.size||(null!=e?e.size:e))?a:u)?a.call(c,{name:"size",hash:{},data:o}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:u)?a.call(c,{name:"title",hash:{},data:o}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">&times;</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=e?e.content:e))?a:u)?a.call(c,{name:"content",hash:{},data:o}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(c,null!=e?e.buttons:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))?i:""},useData:!0})},function(t,e,n){t.exports=n(985).default},function(t,e,n){t.exports={svgContainer:"_1nWzn"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</span> "+u(c(null!=(i=null!=e?e.options:e)?i.createText:i,e))+" "+u("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:l)?a.call(s,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)?a.call(s,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(t,e,n){"use strict";var r=n(453);n.d(e,"BaseCollectionIdentifier",(function(){return r.a}));n(454),n(455),n(456),n(150),n(457),n(458),n(459),n(460)},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.link:i,e))+'">'+c("function"==typeof(a=null!=(a=n.appLinkText||(null!=e?e.appLinkText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">\r\n <span class=" d-inline-block '+u(c(null!=(i=null!=e?e.options:e)?i.svgClass:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.typeSvg:i,e))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertContent:i,e))+'">\r\n <p class="p-0 m-0 pb-1 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'">'+u("function"==typeof(a=null!=(a=n.heading||(null!=e?e.heading:e))?a:l)?a.call(s,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.message:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=e?e.message:e))?a:l)?a.call(s,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(s,null!=e?e.appLink:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">&times;</div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return' <div class="left-nav-region '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.leftNav:i,e))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.topNav:i,e))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sizingBox:i,e))+'">\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showLeftNav:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=e?e.options:e)?i.contentBoxClassName:i,e))+'">\r\n <div class="content-region container px-0 '+c(a(null!=(i=null!=e?e.options:e)?i.contentContainerClassName:i,e))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBox:i,e))+" "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBoxWithIntercom:i,e))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return"ClickView "+a(t.lambda(null!=(i=null!=e?e.options:e)?i.currentYear:i,e))+" | "+a((n.lang||e&&e.lang||u).call(c,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||e&&e.lang||u).call(c,"version",{name:"lang",hash:{version:null!=(i=null!=e?e.options:e)?i.version:i},data:o}))},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropMask:i,e))+'"></div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropContent:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.border:i,e))+'">\r\n <h1>'+u("function"==typeof(a=null!=(a=n.fileDropText||(null!=e?e.fileDropText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=e?e.styles:e)?i.dropArea:i,e))+'"></div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.unreadCount:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.unreadCount:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.unreadCount:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.heading:i,e))+"</h4>\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"<p>"+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<img src="'+c(a(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+c(a(null!=(i=null!=e?e.options:e)?i.imageClass:i,e))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.heading:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.description:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.actionText:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+" "+c(a(null!=(i=null!=e?e.options:e)?i.iconClass:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.icon:i,e))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.content:i,e))+"</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showActionText:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.notificationTime:i,e))+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasNotifications:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.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 '+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.notificationsContainer:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={notificationsContainer:"_3BMCf"}},function(t,e,n){t.exports=n(993).default},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.confirmSelectionText:i,e))?i:"")+"\r\n</span> "},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="cursor-pointer svg-container '+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.searchInfoSvg:i,e))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u=t.lambda,s=t.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,e))+'">'+s(u(e,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,u,s=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<span class="d-inline-block '+s(t.lambda(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.termContainer:c,e))+'">\r\n'+(null!=(c=n.each.call(l,null!=e?e.term:e,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=e?e.description:e))?u:t.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchContextTag:i,e))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=e?e.searchTag:e))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n</span>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=t.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.removeRecent:i,e))+'">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){t.exports={removeRecent:"d1QVW"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.playIcon:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){return"data-"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.playSvgContainer:i,e))+'" '+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"},5:function(t,e,n,r,o){return'style="display: none;"'},7:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.durationOverlay:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.duration:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.url:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+t.escapeExpression(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.duration:i,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"aligned"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.type:i,e))+": "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,e))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<a class="row" href="'+c(t.lambda(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=e?e.options:e)?i.collection:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.coverContainer:i,e))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textContainer:i,e))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="w-100 h-100 d-flex align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchInput:i,e))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=e?e.options:e)?i.libraryText:i,e))+'" aria-label="Search">\r\n</div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchIcons:i,e))+'">\r\n <span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+' search-btn">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n <button type="submit" tabindex="-1" style="display:none"></button>\r\n <span class="search-tips-region"></span>\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showCloseButton:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+"</div>\r\n"},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+' close-btn">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n"},4:function(t,e,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showPartial:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){t.exports={searchBar:"_2oChq"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.avatar:i,e))+'" style="background-image: url(\''+c(a(null!=(i=null!=e?e.options:e)?i.avatar:i,e))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block svg-container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.arrow:i,e))+'">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.arrowSvg:i,e))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.iconSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return(null!=(i=a(null!=(i=null!=e?e.options:e)?i.prefix:i,e))?i:"")+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.title:i,e))+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.iconSvg:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){t.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="dropdown-item '+u(c(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'">\r\n <div class="m-0 '+u(c(null!=(i=null!=e?e.options:e)?i.displayName:i,e))+'"><strong>'+u("function"==typeof(a=null!=(a=n.displayName||(null!=e?e.displayName:e))?a:l)?a.call(s,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+u("function"==typeof(a=null!=(a=n.customerName||(null!=e?e.customerName:e))?a:l)?a.call(s,{name:"customerName",hash:{},data:o}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"text-danger "+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.errorMargin:i,e))},3:function(t,e,n,r,o){return"mr-3"},5:function(t,e,n,r,o){return"text-danger"},7:function(t,e,n,r,o){return"text-muted"},9:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'%" aria-valuenow="'+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.isDone:i,{name:"unless",hash:{},fn:t.program(12,o,0),inverse:t.noop,data:o}))?i:"")+' <span class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+" "+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.hiddenCancel:i,e))+'" title="'+u((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},12:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},14:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+u((n.lang||e&&e.lang||c).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+u((n.lang||e&&e.lang||c).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+u(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+' align-middle" title="'+u((n.lang||e&&e.lang||c).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+'">\r\n '+u(c(null!=(i=null!=e?e.options:e)?i.name:i,e))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.program(7,o,0),data:o}))?i:"")+' progress-text">'+u(c(null!=(i=null!=e?e.options:e)?i.status:i,e))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actions:i,e))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(11,o,0),inverse:t.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressDropdown:i,e))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"><span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.uploadButtonSvg:i,e))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.uploadSvg:i,e))?i:"")+"</span>"+c((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasLibraries:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.itemCount:i,e))+'">'+c("function"==typeof(a=null!=(a=n.items||(null!=e?e.items:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hasErrors:e,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<a class="navbar-brand text-hide align-top '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.logoContainer:i,e))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" d="M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"/>\r\n <path fill="#F8981D" d="M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBarContainer:i,e))+'">\r\n <div class="search-bar-region container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionButtons:i,e))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(t,e,n){t.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(t,e,n){t.exports={topNav:"_3xqNh"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i,a;t.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=e?e.icon:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.count:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{};return(null!=(i=n.if.call(c,null!=e?e.icon:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+t.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.count:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+t.escapeExpression(t.lambda(e,e))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(t,e,n){t.exports={banner:"_1kvBB"}},function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"disabled"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return'title="'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div class="py-2 '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.banner:i,e))+'">\r\n '+a((n.lang||e&&e.lang||u).call(c,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+a((n.lang||e&&e.lang||u).call(c,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r,o,i=n(54),a=n(87),c=n(8),u=n(21),s=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(e){function n(t){var n=e.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=t,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return s(n,e),n.prototype.send=function(e){var n=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var s;s=Object(u.g)(e.content)?t.from(e.content):e.content||"";var f=n.request(e.url,{body:s,encoding:"arraybuffer"===e.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},e.headers),method:e.method,timeout:e.timeout},(function(t,u,s){if(e.abortSignal&&(e.abortSignal.onabort=null),t)return"ETIMEDOUT"===t.code&&(n.logger.log(c.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(c.a.Warning,"Error from HTTP request. "+t),void o(t);u.statusCode>=200&&u.statusCode<300?r(new a.b(u.statusCode,u.statusMessage||"",s)):o(new i.b(u.statusMessage||"",u.statusCode||0))}));e.abortSignal&&(e.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(t){return this.cookieJar.getCookieString(t)},n}(a.a)}).call(this,n(475).Buffer)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(125),o=n(21),i=function(){function e(){}return e.prototype.writeHandshakeRequest=function(t){return r.a.write(JSON.stringify(t))},e.prototype.parseHandshakeResponse=function(e){var n,i;if(Object(o.g)(e)||void 0!==t&&e instanceof t){var a=new Uint8Array(e);if(-1===(u=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var c=u+1;n=String.fromCharCode.apply(null,a.slice(0,c)),i=a.byteLength>c?a.slice(c).buffer:null}else{var u,s=e;if(-1===(u=s.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");c=u+1;n=s.substring(0,c),i=s.length>c?s.substring(c):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[i,f]},e}()}).call(this,n(475).Buffer)},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(30),i=n(5),a=n(22),c=n(43),u=n(15),s=n(696),l=n.n(s),f=n(249),p=n.n(f);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=b(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:p.a,svg:u.a.getSvg(u.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(p.a.notificationIcon," ").concat(p.a[this.options.color])}},{key:"template",get:function(){return l.a}}])&&y(e.prototype,n),r&&y(e,r),i}(r.a.Component),S=n(230),w=n(53),O=n(25),C=n(191),k=n(700),E=n.n(k),_=n(465),R=n.n(_),P=n(466),T=n.n(P);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(u,t);var e,n,r,o=D(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,t)}return e=u,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:O.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:R.a,className:"px-1 py-2",viewOptions:{styles:T.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new C.a({collectionPrefix:w.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var t=new S.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",t)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(e){return t.onData(e)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{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 E.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&x(e.prototype,n),r&&x(e,r),u}(r.a.View),V=n(701),B=n.n(V),M=n(702),U=n.n(M);function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(t,e){return!e||"object"!==F(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&q(t,e)}(u,t);var e,n,r,o=W(u);function u(){return H(this,u),o.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS)}},{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 t=new I({childType:S.a.Popover});this.showChildView("notifications",t)}},{key:"renderNotificationStatus",value:function(){var t=i.a.getInstance(a.b.Notification),e=new m({model:t.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",e)}},{key:"viewOptions",value:function(){return U.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return B.a}}])&&z(e.prototype,n),r&&z(e,r),u}(r.a.View),K=n(1),Q=n(6),Z=n(4),X=n(42),tt=n(119),et=n(90),nt=n(3),rt=(n(703),/&/g),ot=/[\W]+/g,it=/\s+/g,at=function(t){if(t)return t.toLowerCase().replace(rt,"and").replace(ot," ").trim().replace(it,"-").substr(0,80)},ct=n(24),ut=n(13),st=n(98);function lt(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function yt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bt(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ut.a;var vt={dataServiceName:a.a.User,dataChannelName:ct.b.USER},gt={getCurrentUserFetchOptions:function(t,e){return Object.assign(Object.assign({},vt),{eventPrefix:w.a.CURRENT_USER,fetchData:function(t){return t.getCurrentUser()},setData:t,onError:e})},currentUser:{dataServiceName:a.a.User,eventName:"".concat(w.a.CURRENT_USER,":sync"),getData:function(t){return t.getCurrentUser()},getInstance:function(t){return i.a.getInstance(a.a.User,t)},beforeOnBeforeRender:!0}},mt={showMask:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetSelector,n=t.additionalClasses,r=t.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(mt.getTarget(e)),$(mt.getTarget(e)).addClass("mask-lock"),a}},hideMask:function(t){var e=t||$(".".concat("mask"));e.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),e.remove())},getTarget:function(t){var e=$(t||"#app");if(e.length)return e}},St=n(238),wt=n(75),Ot=n(23);var Ct,kt=function(t){return t&&t.get("filterParam")?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t.get("filterParam"),t.get("filterValue")):{}};!function(t){t[t.HostedLibrary=0]="HostedLibrary",t[t.Exchange=1]="Exchange",t[t.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(Ct||(Ct={}));var Et,_t=n(122),Rt=_t.a.SuggestionLimit,Pt={prepareQuery:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(t+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(e.url,"?q=").concat(t);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(t,e){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:K.partial(Pt.prepareQuery,K,K,e),transform:K.partial(Pt.handleResult,K,t)}}},handleResult:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e===Ot.a.Subjects?Pt.processSubjectResult(t[e]):e===Ot.a.Video?Pt.processVideoResult(t[e]):n.showFolder&&e===Ot.a.Folder?Pt.processFolderResult(t[e]):e===Ot.a.Series?Pt.processSeriesResult(t[e]):e===Ot.a.Tags?Pt.processTagsResult(t[e]):[]},processSubjectResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.thumbnail={url:t.coverUrl},t.cached=!0),t}))):[]},processVideoResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.topics=K.map(t.topics,(function(t){return{name:t}})),t.series={id:t.seriesId,name:t.seriesName},t.thumbnail={url:t.thumbnailUrl},t.cached=!0),t}))):[]},processTagsResult:function(t){if(!t)return[];var e=i.a.getInstance(c.a.SEARCH,this);return t=Pt.processCollection(t),K.map(t,(function(t){return t.cached||(t.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},e.appLinks.searchResults),{params:{tag:t.name}})),t.cached=!0),t}))},processSeriesResult:function(t){return t?(t=Pt.processCollection(t),K.map(t,(function(t){var e;return t.series?e=t.series:t.folder&&t.folder.length&&(e=K.first(t.folder)),K.extend({},t,{collectionType:void 0,collection:e})}))):[]},processFolderResult:function(t){return t?(t=Pt.processCollection(t,{limit:Rt.Folder}),K.map(t,(function(t){var e=t.library,n=void 0===e?{}:e;return n.type===Ct.Exchange&&(n.name="Exchange"),K.extend({},t,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.limit,r=void 0===n?Rt.Default:n;return t.slice(0,r)}},Tt={getRecentSearches:function(t,e){var n=e.cacheGet(t);return K.isArray(n)||(n=[]),n},setRecentSearches:function(t,e,n){K.isArray(e)&&n.cacheSet(t,e)},updateRecentSearches:function(t,e,n){var r=n.add,o=n.remove,i=n.query,a=n.limit,c=void 0===a?5:a,u=Tt.getRecentSearches(t,e),s=K.indexOf(u,i);return r&&-1===s&&u.unshift(i),o&&s>-1&&u.splice(s,1),u.length>c&&(u=u.slice(0,c)),Tt.setRecentSearches(t,u,e),u}},At=n(95);function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e){return(jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vt(t);if(e){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(t,e){return!e||"object"!==xt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.auto="auto",t.top="top",t.bottom="bottom",t.left="left",t.right="right"}(Et||(Et={}));var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(i,t);var e,n,r,o=Nt(i);function i(){return Lt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(t){t.stopPropagation()}},{key:"onClickOutside",value:function(){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:Et.bottom,size:"popover-md"}},set:function(t){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(t){var e={};this.view.ui&&(e=K.result(this.view,"ui")),this.view._ui=K.extend({},e,t)}}])&&Dt(e.prototype,n),r&&Dt(e,r),i}(r.a.Behavior),Mt=n(705),Ut=n.n(Mt),Ft=n(706),Ht=n.n(Ft),zt=n(252),qt=n.n(zt);function Wt(t){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jt(t,e,n){return e&&Gt(t.prototype,e),n&&Gt(t,n),t}function Kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qt(t,e)}function Qt(t,e){return(Qt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xt(t);if(e){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $t(this,n)}}function $t(t,e){return!e||"object"!==Wt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xt(t){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var te=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"viewOptions",value:function(){return{styles:qt.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return Ht.a}},{key:"className",get:function(){return"py-2 ".concat(qt.a.tip)}}]),n}(r.a.Component),ee=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return te}}]),n}(r.a.ComponentCollection),ne=function(t){Kt(n,t);var e=Zt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"initialize",value:function(){this.collection=new r.a.Collection([{term:["".concat(nt.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fourthTerm1")),"".concat(nt.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(nt.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(nt.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(nt.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(t){this.showChildView(t,new ee({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:qt.a,searchInfoSvg:u.a.getSvg(u.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return Ut.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:Bt,containerSelector:".popover-container",title:nt.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(e){return t.renderTips(e)}}]}}]),n}(r.a.Component),re=n(135),oe=n(707),ie=n.n(oe),ae=n(133),ce=n.n(ae);function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fe(t,e){return(fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==ue(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fe(t,e)}(i,t);var e,n,r,o=pe(i);function i(){return se(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(ct.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(t){var e=this.getUI("contextTag");e&&e.get&&(t.open?e.addClass(ce.a.tagFocus):e.removeClass(ce.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:ce.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return ie.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return ce.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:re.a,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(ce.a.searchContextTag),clearSvg:".".concat(ce.a.svgContainer)}}}])&&le(e.prototype,n),r&&le(e,r),i}(r.a.Component),be=n(708),ve=n.n(be),ge=n(709),me=n.n(ge);function Se(t){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oe(t,e){return(Oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ee(t);if(e){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(t,e){return!e||"object"!==Se(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ee(t){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oe(t,e)}(i,t);var e,n,r,o=Ce(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:me.a,closeSvg:u.a.getSvg(u.b.Close)}}},{key:"onClick",value:function(t){var e=this;return t.stopPropagation(),setTimeout((function(){Q.Radio.channel(e.options.channelName).trigger("remove:recent",e.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return ve.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&we(e.prototype,n),r&&we(e,r),i}(r.a.Component),Re=n(710),Pe=n.n(Re);function Te(t){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Le(t,e){return(Le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function De(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ne(t);if(e){var o=Ne(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return je(this,n)}}function je(t,e){return!e||"object"!==Te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ne(t){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ie=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Le(t,e)}(u,t);var e,n,o,a=De(u);function u(){return Ae(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getUrl",value:function(){var t=[this.model.get("id")];return this.appVariables.addSlugs&&t.push(at(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t}))}},{key:"viewOptions",value:function(){return{url:this.getUrl(),name:this.model.get("name")}}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Pe.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&xe(e.prototype,n),o&&xe(e,o),u}(r.a.Component),Ve=n(711),Be=n.n(Ve);function Me(t){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function He(t,e){return(He=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=We(t);if(e){var o=We(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qe(this,n)}}function qe(t,e){return!e||"object"!==Me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function We(t){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ye=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&He(t,e)}(i,t);var e,n,r,o=ze(i);function i(){return Ue(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return Be.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&Fe(e.prototype,n),r&&Fe(e,r),i}(r.a.Component),Ge=n(192),Je=n(713),Ke=n.n(Je);function Qe(t){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t,e){return(Xe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nn(t);if(e){var o=nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return en(this,n)}}function en(t,e){return!e||"object"!==Qe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nn(t){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xe(t,e)}(u,t);var e,n,o,a=tn(u);function u(){return Ze(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getCollection",value:function(){var t=this.model,e=t.categories,n=t.series;return e&&e.length?{name:e.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){var t=[this.model.get("id")];return this.appVariables.addSlugs&&t.push(at(this.model.get("name"))),r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:t}))}},{key:"renderThumbnail",value:function(){var t=new Ge.a({model:this.model});this.showChildView("thumbnail",t)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return Ke.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&$e(e.prototype,n),o&&$e(e,o),u}(r.a.Component),on=n(286),an=n(714),cn=n.n(an);function un(t){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fn(t,e){return(fn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yn(t);if(e){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hn(this,n)}}function hn(t,e){return!e||"object"!==un(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yn(t){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var dn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fn(t,e)}(u,t);var e,n,o,a=pn(u);function u(){return sn(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(t){return t.preventDefault(),!0}},{key:"getUrl",value:function(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id"),at(this.model.get("name"))]}))}},{key:"renderThumbnail",value:function(){var t=new Ge.a({model:this.model,classNameOverride:"".concat(on.coverImage," responsive-img")});this.showChildView("cover",t)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:on}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return cn.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&ln(e.prototype,n),o&&ln(e,o),u}(r.a.Component),bn=n(467),vn=n.n(bn),gn=n(468),mn=n.n(gn),Sn=n(469),wn=n.n(Sn),On=n(470),Cn=n.n(On),kn=n(471),En=n.n(kn),_n=n(472),Rn=n.n(_n),Pn=n(473),Tn=n.n(Pn),An=n(474),xn=n.n(An),Ln=n(715),Dn=n.n(Ln),jn=n(287),Nn=n.n(jn),In=n(716),Vn=n.n(In),Bn=n(717),Mn=n.n(Bn),Un=n(139);function Fn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t)||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 Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zn(t){return(zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wn(t,e){return(Wn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jn(t);if(e){var o=Jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gn(this,n)}}function Gn(t,e){return!e||"object"!==zn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jn(t){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kn=_t.a.SuggestionLimit,Qn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wn(t,e)}(l,t);var e,n,o,s=Yn(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,t)).viewCache={},e}return e=l,(n=[{key:"initialize",value:function(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(c.a.SEARCH,this),this.storageHelper=et.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){return{submit:"onSubmit","click .search-btn":"onClickSearch","click .close-btn":"onClickClose","click a":"onTypeaheadSelect",keydown:"onKeydown"}}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:O.a.Component,options:{template:Mn.a,className:"w-100",viewOptions:{styles:Vn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(ct.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(ct.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(t,e){var n=e.ctor,r=e.viewOptions;return this.viewCache[t]?this.viewCache[t]:this.viewCache[t]=new n(r)}},{key:"clearViewCache",value:function(){K.each(this.viewCache,(function(t){return t.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(t){var e=this;return t===wt.b.Recent?function(t){return e.getOrCacheView("recent:".concat(t),{ctor:_e,viewOptions:{model:new r.a.Model({name:t}),channelName:e.channelName}}).render().el}:t===Ot.a.Subjects?function(t){return e.getOrCacheView(t.id,{ctor:dn,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Video?function(t){return e.getOrCacheView(t.id,{ctor:rn,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Folder?vn.a:t===Ot.a.Series?function(t){return e.getOrCacheView(t.id,{ctor:Ie,viewOptions:{model:new r.a.Model(t)}}).render().el}:t===Ot.a.Tags?function(t){return e.getOrCacheView(t.id,{ctor:Ye,viewOptions:{model:new r.a.Model(t)}}).render().el}:void 0}},{key:"getLimits",value:function(t){return Ot.a.Folder,Kn.Folder}},{key:"updateSearchHistory",value:function(t){var e=t.add,n=t.remove,r=t.query;r=r.trim();var o=Tt.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:e,remove:n,query:r,limit:Kn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch)if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(Tt.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}},{key:"onDeleteRecentSearch",value:function(t){return this.updateSearchHistory({remove:!0,query:t}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(t,e){if(e===Ot.a.Series){var n=[t.id];return this.appVariables.addSlugs&&n.push(at(t.name)),Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:n})}if(e===Ot.a.Video){var r=[t.id];return this.appVariables.addSlugs&&r.push(at(t.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:r})}return e===Ot.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:t.name}}):e===Ot.a.Subjects?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[t.id,at(t.name)]}):void 0}},{key:"onTypeaheadSelect",value:function(t,e,n){if(t.preventDefault(),t.stopImmediatePropagation(),this.clearViewCache(),n="topics"===n?Ot.a.Subjects:n,"object"===zn(e)&&e.id){var o=this.getInstantSearchAppLink(e,n);if(!o)return!1;var i=X.a.buildInstantSearchEvent(this.model.get("query"),e,n),a=i.data,c=i.action;return tt.a.log(Z.UserAction.InstantSearch,a,c),this.model.clear(),this.getUI("input").typeahead("close"),Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(o),!1}var u="string"==typeof e?e:e.query;this.model.set({query:u});var s=n===wt.b.Recent?Z.DirectSearchDescriptor.Recent:Z.DirectSearchDescriptor.ShowAll;return this.submitQuery(s),!1}},{key:"onClickSearch",value:function(t){return t.stopPropagation(),this.submitQuery(Z.DirectSearchDescriptor.SearchIcon),!1}},{key:"onClickClose",value:function(){Un.a.isFunction(this.options.onClickClose)&&this.options.onClickClose()}},{key:"onSubmit",value:function(t){return t.preventDefault(),this.submitQuery(Z.DirectSearchDescriptor.Submit),!1}},{key:"submitQuery",value:function(t){this.updateInitialQuery();var e=this.model.get("query");if(e){this.logSearch(e,t),this.updateSearchHistory({add:!0,query:e}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=kt(this.searchContext);Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:e},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(t,e){var n=X.a.buildSearchEvent(t,e),r=n.data,o=n.action;tt.a.log(Z.UserAction.Search,r,o)}},{key:"onTypeaheadOpen",value:function(){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=_t.a.ActivationLength&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(t){this.searchContext.get("preventTypeaheadClose")&&(t.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),mt.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||mt.hideMask()}},{key:"alignTypeahead",value:function(){var t=$(".tt-menu");this.searchContext.get("title")?t.addClass("typeahead-shift"):t.hasClass("typeahead-shift")&&t.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(t,e,n,r){r===wt.b.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var t=this.getUI("input");t.on("typeahead:select",K.bind(this.onTypeaheadSelect,this)),t.on("typeahead:render",K.bind(this.onTypeaheadRender,this)),t.on("typeahead:beforeclose",K.bind(this.onBeforeTypeaheadClose,this)),t.on("typeahead:close",K.bind(this.onTypeaheadClose,this)),t.on("typeahead:open",K.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var t=this,e=this.getUI("input");e.on("typeahead:open",K.bind(this.showMask,this)),e.on("typeahead:close",K.bind(this.hideMask,this)),e.on("typeahead:select",K.bind((function(){r.a.AppLinkHelper.trigger(t.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(t){8!==t.keyCode||this.model.get("query")||Q.Radio.channel(ct.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(t){t&&t.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var t=Tt.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:t})}},{key:"getDynamicBloodhoundConfig",value:function(){return Pt.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var t=this,e=At.a.getTemplate(Rn.a,{fallbackTemplate:Cn.a}),n=At.a.getTemplate(wn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"findingResults")});return function(r,o){return{name:t.getConfigName(r.name),source:At.a.handleQuery(r.bloodhound,{fetchType:wt.a.Remote}),limit:t.getLimits(r.name),display:function(t){return t.name},async:!0,templates:{header:e,pending:0===o?n:Cn.a,notFound:Cn.a,suggestion:t.getDynamicTemplate(r.name),footer:En.a}}}}},{key:"getConfigName",value:function(t){switch(t){case Ot.a.Subjects:return nt.a.getPhrase(this.lang,"classifications");case Ot.a.Video:return nt.a.getPhrase(this.lang,"videos");case Ot.a.Tags:return nt.a.getPhrase(this.lang,"tags");case Ot.a.Series:return nt.a.getPhrase(this.lang,"series")}return t}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var t=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:wt.b.Recent,source:At.a.handleQuery(this.recentSearchEngine,{fetchType:wt.a.Local,ignoreOnQuery:!0}),limit:Kn.Default,templates:{header:function(){return Tn.a({templateText:nt.a.getPhrase(t.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(wt.b.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:wt.b.Direct,source:At.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:At.a.getTemplate(mn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"allResults")}),footer:En.a}}]}},{key:"getDynamicSearchSources",value:function(){var t=this.getDynamicBloodhoundConfig(),e=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return At.a.getSearchSources([{name:Ot.a.Subjects,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Series,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Folder,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Video,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:Ot.a.Tags,bloodhoundConfig:t,typeaheadConfig:e,options:n}])}},{key:"getSources",value:function(){var t=[].concat(Fn(this.getDirectSearchSources()),Fn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&t.push.apply(t,Fn(this.getRecentSearchSources())),t}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:At.a.handleQuery(),display:function(t){return t.query},templates:{suggestion:At.a.getTemplate(xn.a,{fallbackTemplate:Cn.a,templateText:nt.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(t){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},t)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(t){return t.id}))}},{key:"viewOptions",value:function(){return{styles:Nn.a,svg:u.a.getSvg(u.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,showCloseButton:this.options.showCloseButton,closeSvg:u.a.getSvg(u.b.Close),libraryText:this.appVariables.searchBarPlaceholder||nt.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.appVariables.showSearchTips&&this.showChildView("searchTips",new ne)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),Q.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new de({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),Q.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return Dn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(Nn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:gt.currentUser,libraryCollection:St.a.libraries}}}])&&qn(e.prototype,n),o&&qn(e,o),l}(r.a.View),Zn=n(137),$n=n(82),Xn=n(0),tr=n(718),er=n.n(tr),nr=n(288),rr=n.n(nr),or=n(190),ir=n(136),ar=n(12),cr=n(298),ur=n(720),sr=n.n(ur),lr=n(721),fr=n.n(lr);function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dr(t,e,n){return e&&yr(t.prototype,e),n&&yr(t,n),t}function br(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vr(t,e)}function vr(t,e){return(vr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sr(t);if(e){var o=Sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(t,e){return!e||"object"!==pr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sr(t){return(Sr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wr=function(t){br(n,t);var e=gr(n);function n(t){return hr(this,n),e.call(this,t)}return dr(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return sr.a}},{key:"onRender",value:function(){this.showChildView("items",new Or({collection:this.collection,childOptions:this.options.childOptions}))}},{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return fr.a}}]),n}(r.a.Component),Or=function(t){br(n,t);var e=gr(n);function n(t){return hr(this,n),e.call(this,t)}return dr(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return cr.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function Cr(t){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _r(t,e){return(_r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Tr(t);if(e){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pr(this,n)}}function Pr(t,e){return!e||"object"!==Cr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_r(t,e)}(a,t);var e,n,o,i=Rr(a);function a(){return kr(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new wr({model:this.currentUser,collection:new r.a.Collection([{title:nt.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"settings"),href:$n.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{title:nt.a.getPhrase(this.lang,"helpCentre"),href:$n.a.safeUrlConcat(this.config.get("supportSiteUrl"),Xn.y.LIBRARY_EDITOR),external:!0,icon:u.a.getSvg(u.b.NewWindow)},{divider:!0},{title:nt.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(t=ar.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:rr.a,avatar:t,arrowSvg:u.a.getSvg(u.b.ChevronDown)}):{};var t}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return er.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(rr.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:or.b.config,currentUser:ir.b.currentUser}}}])&&Er(e.prototype,n),o&&Er(e,o),a}(r.a.View),xr=n(44),Lr=n(9),Dr=n(307),jr=n(723),Nr=n.n(jr);function Ir(t){return(Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mr(t,e){return(Mr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ur(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hr(t);if(e){var o=Hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fr(this,n)}}function Fr(t,e){return!e||"object"!==Ir(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hr(t){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mr(t,e)}(a,t);var e,n,r,o=Ur(a);function a(){return Vr(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(Xn.x.PendingItems,this),this.listenTo(ct.c.PENDING_ITEMS,xr.a.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:Lr.h.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(t){var e=this;this.pendingItemsService.clearPendingItem(t,(function(){e.render()}))}},{key:"onRetryPendingItem",value:function(t){var e=this;this.pendingItemsService.retryPendingItem(t,(function(){e.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Dr.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Nr.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Br(e.prototype,n),r&&Br(e,r),a}(r.a.View),qr=n(289),Wr=n.n(qr),Yr=n(724),Gr=n.n(Yr),Jr=n(308),Kr=n(138);function Qr(t){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $r(t,e){return($r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=eo(t);if(e){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return to(this,n)}}function to(t,e){return!e||"object"!==Qr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function eo(t){return(eo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var no=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$r(t,e)}(c,t);var e,n,r,a=Xr(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"initialize",value:function(){var t=this;this.pendingItemsService=i.a.getInstance(Xn.x.PendingItems,this),this.listenTo(Xn.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){t.model.get("items")||t.render()}))}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new Jr.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new zr)}},{key:"viewOptions",value:function(){return{styles:Wr.a,uploadSvg:u.a.getSvg(u.b.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return t={},e=".".concat(Wr.a.upload),n={application:Xn.b.UPLOAD,action:Xn.a.Upload.FILE_SELECTION},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"channelName",get:function(){return Xn.w.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return Gr.a}},{key:"requiredResources",get:function(){return{libraries:Kr.b.libraries}}}])&&Zr(e.prototype,n),r&&Zr(e,r),c}(r.a.View),ro=n(726),oo=n.n(ro),io=n(727),ao=n.n(io);function co(t){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e){return(so=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=po(t);if(e){var o=po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(t,e){return!e||"object"!==co(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function po(t){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"PageHeaderComponent",(function(){return ho}));var ho=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&so(t,e)}(a,t);var e,n,r,i=lo(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t={actionType:Z.UserAction.Click,descriptor:Z.ClickDescriptor.NavigateHome,location:Z.LocationContext.TopNav,entity:Z.EntityType.Logo},e={currentLocation:X.a.buildCurrentLocation()};X.a.logUserAction(e,t)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:Zn.c})}},{key:"renderSearchBar",value:function(){var t=new Qn({model:this.getSearchModel()});this.showChildView("search",t)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var t=new no;this.showChildView("upload",t)}}},{key:"renderNotificationsStatus",value:function(){var t=new J;this.showChildView("notifications",t)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new Ar)}},{key:"viewOptions",value:function(){return{styles:ao.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}},{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return oo.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&uo(e.prototype,n),r&&uo(e,r),a}(r.a.Component)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(3),a=n(15),c=n(61),u=n(728),s=n.n(u),l=n(729),f=n.n(l),p=n(9),h=n(730),y=n.n(h),d=n(291),b=n.n(d);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),t}function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){w(n,t);var e=C(n);function n(t){return g(this,n),e.call(this,t)}return S(n,[{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"getCount",value:function(){var t=this.model.get("getCount");if(r.isFunction(t))return t()}},{key:"viewOptions",value:function(){return{styles:b.a,count:this.getCount()}}},{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(b.a.active):"nav-link"}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return y.a}}]),n}(o.a.Component),R=function(t){w(n,t);var e=C(n);function n(t){return g(this,n),e.call(this,t)}return S(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return _}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),P=n(58),T=n(0),A=n(136),x=n(5),L={warningPublisherArchive:n(731)};function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,e){return(N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"TopNavigationView",(function(){return M}));var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N(t,e)}(h,t);var e,n,u,l=I(h);function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,t)}return e=h,(n=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=x.a.getInstance(T.g.ContentUpdates,this),this.settingsDataService=x.a.getInstance(T.g.Settings,this),this.migrationVideoDataService=x.a.getInstance(T.g.MigrationVideo,this),this.staffRequestDataService=x.a.getInstance(T.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(T.e.SETTINGS,"".concat(T.f.SETTINGS,":sync"),this.render),this.listenTo(T.e.VIDEO,"".concat(T.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(T.e.STAFF_REQUEST,"".concat(T.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(T.e.MIGRATION,"".concat(T.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(T.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var t=this,e=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:T.b.LIBRARY_EDITOR,action:T.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:T.b.STAFF_REQUESTS,action:T.a.StaffRequests.HOME,getCount:function(){return t.staffRequestCollection&&t.staffRequestCollection.length},requiredSetting:{name:c.a.StaffRequest,value:p.k.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:T.b.CONTENT_UPDATES,action:T.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return t.contentUpdatesCollection&&t.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:T.b.VIDEO_ACCESS,action:T.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(e)),P.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:T.b.MIGRATION_WIZARD,action:T.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?L.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(t){var e=this;return t.filter((function(t){if(!r.has(t,"requiredSetting"))return!0;var n=e.settings.findWhere({name:t.requiredSetting.name});return!!n&&n.get("value")===t.requiredSetting.value}))}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new R({collection:this.collection,selected:this.options.selected}))}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(f.a.topNav," container")}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"requiredResources",get:function(){return{currentUser:A.b.currentUser}}}])&&j(e.prototype,n),u&&j(e,u),h}(o.a.View)},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t,e,n){},function(t,e,n){},function(t,e){t.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],a=[];for(n=new u(n),e=0;e<r.length;e++){var p=r[e];if("StartTag"!==p.type)if("Chars"===p.type){var h=s(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var y=p.tagName.toUpperCase(),d="A"===y||c.contains(n.ignoreTags,y);if(!d)continue;var b=o.length;l(y,r,++e,o),e+=o.length-b-1}}for(e=0;e<o.length;e++){var v=o[e];switch(v.type){case"StartTag":var g="<"+v.tagName;if(v.attributes.length>0){var m=f(v.attributes);g+=" "+m.join(" ")}g+=">",a.push(g);break;case"EndTag":a.push("</"+v.tagName+">");break;case"Chars":a.push(v.chars);break;case"Comment":a.push("\x3c!--"+v.chars+"--\x3e")}}return a.join("")};var r,o=n(986),i=(r=o)&&r.__esModule?r:{default:r},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(348));var c=a.options,u=c.Options;function s(t,e){for(var n=a.tokenize(t),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&e.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&e.check(i)){var c=e.resolve(i),u=c.formatted,s=c.formattedHref,l=c.tagName,f=c.className,p=c.target,h=c.attributes,y=[["href",s]];for(var d in f&&y.push(["class",f]),p&&y.push(["target",p]),h)y.push([d,h[d]]);r.push({type:"StartTag",tagName:l,attributes:y,selfClosing:!1}),r.push({type:"Chars",chars:u}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(t,e,n,r){for(var o=1;n<e.length&&o>0;){var i=e[n];"StartTag"===i.type&&i.tagName.toUpperCase()===t?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===t&&o--,r.push(i),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1];e.push(o+'="'+(i.replace(/"/g,"&quot;")+'"'))}return e}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(344)),o=u(n(345)),i=u(n(346)),a=u(n(347)),c=u(n(988));function u(t){return t&&t.__esModule?t:{default:t}}var s={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:c.default};e.default=s},function(t,e,n){"use strict";e.__esModule=!0,e.isSpace=function(t){return r.test(t)},e.isAlpha=function(t){return o.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new o.default(i.default),e).tokenize(t)};var r=a(n(347)),o=a(n(345)),i=a(n(344));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:o.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:o.events,this.format=t.hasOwnProperty("format")?t.format:o.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:o.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:o.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:o.tagName,this.target=t.hasOwnProperty("target")?t.target:o.target,this.validate=t.hasOwnProperty("validate")?t.validate:o.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||o.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||o.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:o.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=o,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var i=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[t])?i(e,n.type):i}return a},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(349),o=n(256),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(t){return new r.CharacterState(t)},p=f(),h=f(o.NUM),y=f(o.DOMAIN),d=f(),b=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,b),b.on(s,b);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,o.TLD,o.DOMAIN);l.push.apply(l,g)}var m=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,m),l.push.apply(l,S),l.push.apply(l,w),l.push.apply(l,O);var C=m.pop(),k=S.pop(),E=w.pop(),_=O.pop(),R=f(o.DOMAIN),P=f(o.PROTOCOL),T=f(o.MAILTO);k.on("s",R).on(":",P),E.on("s",R).on(":",P),l.push(R),C.on(":",P),R.on(":",P),_.on(":",T);var A=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,A),p.on(c,h),h.on("-",d).on(c,h).on(u,y),y.on("-",d).on(u,y);for(var x=0;x<l.length;x++)l[x].on("-",d).on(u,y);d.on("-",d).on(c,y).on(u,y),p.defaultTransition=f(o.SYM);var L=p;e.State=r.CharacterState,e.TOKENS=i,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(e[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(t.substr(o-c,c)))}}return r},e.start=L},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(349),o=n(992),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o),a=n(256);var c=function(t){return new r.TokenState(t)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),y=c(),d=c(o.URL),b=c(),v=c(o.URL),g=c(o.URL),m=c(),S=c(),w=c(),O=c(),C=c(),k=c(o.URL),E=c(o.URL),_=c(o.URL),R=c(o.URL),P=c(),T=c(),A=c(),x=c(),L=c(),D=c(),j=c(o.EMAIL),N=c(),I=c(o.EMAIL),V=c(o.MAILTOEMAIL),B=c(),M=c(),U=c(),F=c(),H=c(o.NL);u.on(a.NL,H).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,d).on(a.NUM,h),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),h.on(a.DOT,y),L.on(a.DOT,D),y.on(a.TLD,d).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),D.on(a.TLD,j).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),d.on(a.DOT,y),j.on(a.DOT,D),d.on(a.COLON,b).on(a.SLASH,g),b.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,I);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],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),m.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,C),S.on(a.CLOSEBRACE,g),w.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),k.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),_.on(a.CLOSEANGLEBRACKET,g),R.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),T.on(a.CLOSEBRACKET,g),A.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),S.on(z,k),w.on(z,E),O.on(z,_),C.on(z,R),S.on(q,P),w.on(q,T),O.on(q,A),C.on(q,x),k.on(z,k),E.on(z,E),_.on(z,_),R.on(z,R),k.on(q,k),E.on(q,E),_.on(q,_),R.on(q,R),P.on(z,k),T.on(z,E),A.on(z,_),x.on(z,R),P.on(q,P),T.on(q,T),A.on(q,A),x.on(q,x),g.on(z,g),m.on(z,g),g.on(q,m),m.on(q,m),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(z,V).on(q,B),B.on(z,V).on(q,B);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,M).on(a.AT,U),d.on(W,M).on(a.AT,U),y.on(W,M),M.on(W,M).on(a.AT,U).on(a.DOT,F),F.on(W,M),U.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,j);e.State=r.TokenState,e.TOKENS=i,e.run=function(t){for(var e=t.length,n=0,r=[],i=[];n<e;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<e&&!(c=a.next(t[n]));)i.push(t[n++]);for(;n<e&&(s=c||a.next(t[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(t[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var y=f.emit();r.push(new y(t.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},e.start=u},function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(350),o=n(197),i=n(256);function a(t){return t instanceof i.DOMAIN||t instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)e=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),e||n||(o=t+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});e.Base=c,e.MAILTOEMAIL=u,e.EMAIL=s,e.NL=f,e.TEXT=l,e.URL=p},function(t,e,n){"use strict";e.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(348));var o=r.tokenize,i=r.options.Options;function a(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(t){return t.replace(/"/g,"&quot;")}function u(t){if(!t)return"";var e=[];for(var n in t){var r=t[n]+"";e.push(n+'="'+c(r)+'"')}return e.join(" ")}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=new i(e);for(var n=o(t),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&e.nl2br)r.push("<br>\n");else if(l.isLink&&e.check(l)){var f=e.resolve(l),p=f.formatted,h=f.formattedHref,y=f.tagName,d=f.className,b=f.target,v=f.attributes,g="<"+y+' href="'+c(h)+'"';d&&(g+=' class="'+c(d)+'"'),b&&(g+=' target="'+c(b)+'"'),v&&(g+=" "+u(v)),g+=">"+a(p)+"</"+y+">",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(t){return s(this,t)}}})}catch(t){String.prototype.linkify||(String.prototype.linkify=function(t){return s(this,t)})}e.default=s},function(t,e,n){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=s(t),a=r[0],c=r[1],u=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(t,a,a+16383>c?c:a+16383));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var o,i,a=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(255&t[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,y=r?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*u-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&c,h+=y,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;t[n+h]=255&a,h+=y,a/=256,s-=8);t[n+h-y]|=128*d}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(847),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(873),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931),n(932),n(933),n(934),n(935),n(936),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),n(954),n(955),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983);var r=n(2),o=n(6),i=n(1),a=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,r,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var t=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==t.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==t.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=i.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){o.Radio.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(t){this.listenTo(this.channelName,"visbility:change",t)}},{key:"removeVisibilityChangeListener",value:function(t){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",t)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}},{key:"name",get:function(){return a.x.PageVisibility}},{key:"channelName",get:function(){return a.w.PAGE_VISIBILITY}}])&&s(e.prototype,n),r&&s(e,r),p}(r.a.Service),d=n(48),b=n(5),v=n(74),g=n(16),m=n(222),S=n(223);var w=n(153),O=n(19),C=n(14),k=n(30),E=n(139),_=n(120),R=n(231),P=n(232),T=n(42);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(c,t);var e,n,o,a=D(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this)).clients={},e.enrichers={},k.a.get("application:options").set(t),e.bindNavigationListener(),e}return e=c,(n=[{key:"registerTransport",value:function(t,e){return this.transport=new t(e),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(R.a.ANALYTICS,_.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(t,e){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(e)),this}},{key:"registerEnricher",value:function(t,e){this.validateConstructor(t);var n=new t(e);return this.enrichers[t.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}},{key:"onEvent",value:function(t){var e=this;this.executeMiddleware(t,(function(t){e.transport.publish(t)}))}},{key:"validateConstructor",value:function(t){var e=t.prototype.name;e||r.a.ErrorHelper.throw(new O.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(e){return E.a.isFunction(t.prototype.isType)&&t.prototype.isType(e)};(n("BaseAnalyticsClient")||"CollectionApiClient"===e)&&this.clients[e]&&r.a.ErrorHelper.throw(new O.a("A client class with the name: ".concat(e," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[e]&&r.a.ErrorHelper.throw(new O.a("An enricher class named: ".concat(e," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(t){var e;this.executeMiddleware=(e=this.executeMiddleware,function(n,r){return e(n,(function(){return t(n,r)}))})}},{key:"executeMiddleware",value:function(t,e){e(t)}},{key:"bindNavigationListener",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(t,e){T.a.logNavigate(t,e)}},{key:"name",get:function(){return P.a.Analytics}}])&&x(e.prototype,n),o&&x(e,o),c}(r.a.Service),V=n(51);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H(t,e)}function H(t,e){return(H=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=W(t);if(e){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==B(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Y=function(t){F(a,t);var e,n,r,o=z(a);function a(){return U(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"publish",value:function(t){this.getChannel().trigger(_.a.Outlet,t)}},{key:"subscribe",value:function(t){var e=t,n=function(n){E.a.isFunction(e.shouldLog)&&!e.shouldLog(n)||t.log(n)};i.isFunction(e.listenTo)?e.listenTo(this.getChannel(),_.a.Outlet,n):this.listenTo(this.getChannel(),_.a.Outlet,n)}},{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}}])&&M(e.prototype,n),r&&M(e,r),a}(function(t){F(n,t);var e=z(n);function n(){return U(this,n),e.apply(this,arguments)}return n}(V.Object));function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=tt(t);if(e){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tt(t){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(i,t);var e,n,r,o=Z(i);function i(){return J(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"enrich",value:function(t,e){}},{key:"isType",value:function(t){return t===i.type}}])&&K(e.prototype,n),r&&K(e,r),i}(r.a.Service);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}et.type="BaseAnalyticsEnricher";var st=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.user=k.a.get("application:options").get("user")}},{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("user",this.getUser(this.user)),e(t)}},{key:"getUser",value:function(t){return{country:t.countryCode,customerId:t.customerId,id:t.id,role:t.role}}},{key:"name",get:function(){return"UserDataEnricher"}}])&&ot(e.prototype,n),r&&ot(e,r),i}(et),lt="URLSearchParams"in self,ft="Symbol"in self&&"iterator"in Symbol,pt="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),ht="FormData"in self,yt="ArrayBuffer"in self;if(yt)var dt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],bt=ArrayBuffer.isView||function(t){return t&&dt.indexOf(Object.prototype.toString.call(t))>-1};function vt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function gt(t){return"string"!=typeof t&&(t=String(t)),t}function mt(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ft&&(e[Symbol.iterator]=function(){return e}),e}function St(t){this.map={},t instanceof St?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function wt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function Ot(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function Ct(t){var e=new FileReader,n=Ot(e);return e.readAsArrayBuffer(t),n}function kt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Et(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:pt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:ht&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:lt&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():yt&&pt&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=kt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yt&&(ArrayBuffer.prototype.isPrototypeOf(t)||bt(t))?this._bodyArrayBuffer=kt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):lt&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pt&&(this.blob=function(){var t=wt(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?wt(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ct)}),this.text=function(){var t,e,n,r=wt(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=Ot(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ht&&(this.formData=function(){return this.text().then(Pt)}),this.json=function(){return this.text().then(JSON.parse)},this}St.prototype.append=function(t,e){t=vt(t),e=gt(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},St.prototype.delete=function(t){delete this.map[vt(t)]},St.prototype.get=function(t){return t=vt(t),this.has(t)?this.map[t]:null},St.prototype.has=function(t){return this.map.hasOwnProperty(vt(t))},St.prototype.set=function(t,e){this.map[vt(t)]=gt(e)},St.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},St.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),mt(t)},St.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),mt(t)},St.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),mt(t)},ft&&(St.prototype[Symbol.iterator]=St.prototype.entries);var _t=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Rt(t,e){var n,r,o=(e=e||{}).body;if(t instanceof Rt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new St(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new St(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),_t.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Pt(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function Tt(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new St(e.headers),this.url=e.url||"",this._initBody(t)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})},Et.call(Rt.prototype),Et.call(Tt.prototype),Tt.prototype.clone=function(){return new Tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new St(this.headers),url:this.url})},Tt.error=function(){var t=new Tt(null,{status:0,statusText:""});return t.type="error",t};var At=[301,302,303,307,308];Tt.redirect=function(t,e){if(-1===At.indexOf(e))throw new RangeError("Invalid status code");return new Tt(null,{status:e,headers:{location:t}})};var xt=self.DOMException;try{new xt}catch(t){(xt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),xt.prototype.constructor=xt}function Lt(t,e){return new Promise((function(n,r){var o=new Rt(t,e);if(o.signal&&o.signal.aborted)return r(new xt("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,r={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new St,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new Tt(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new xt("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&self.location.href?self.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(pt?i.responseType="blob":yt&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Lt.polyfill=!0,self.fetch||(self.fetch=Lt,self.Headers=St,self.Request=Rt,self.Response=Tt);var Dt=n(681),jt=n.n(Dt),Nt=n(682);function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(t,e)||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 Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Bt={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function Mt(t,e,n){var r=It(e.exec(n)||[],1)[0];return r||(r="Unknown"),{name:t,version:r}}function Ut(t,e,n){if(!e)return{name:t,version:"Unknown"};var r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}var Ft=function(){var t=window.navigator.userAgent;return Bt.android.test(t)?Ut("Android",Bt.androidVersion,t):Bt.iphone.test(t)||Bt.ipad.test(t)?Ut("iOS",Bt.iosVersion,t):Bt.linux.test(t)?Ut("Linux",null,t):Bt.unix.test(t)?Ut("Unix",null,t):Bt.mac.test(t)?Ut("Macintosh",Bt.osxVersion,t):Bt.windows.test(t)?function(t,e){var n={name:t,version:null};return Bt.win2000.test(e)&&(n.version="2000"),Bt.winXP.test(e)&&(n.version="XP"),Bt.winVista.test(e)&&(n.version="Vista"),Bt.win7.test(e)&&(n.version="7"),Bt.win8.test(e)&&(n.version="8"),Bt.win81.test(e)&&(n.version="8.1"),Bt.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):Bt.blackberry.test(t)?Ut("BlackBerry",Bt.blackberryVersion,t):Bt.windowsPhone.test(t)?Ut("Windows Phone",Bt.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},Ht=function(){var t=window.navigator.userAgent;return Bt.chrome.test(t)?Mt("Chrome",Bt.generalVersion,t):Bt.firefox.test(t)?Mt("Firefox",Bt.generalVersion,t):Bt.safari.test(t)?Mt("Safari",Bt.generalVersion,t):Bt.ie.test(t)?Mt("Internet Explorer",Bt.ieVersion,t):Bt.edge.test(t)?Mt("Edge",Bt.edgeVersion,t):Bt.opera.test(t)?Mt("Opera",Bt.operaVersion,t):{name:"Unknown",version:"Unknown"}};function zt(t){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qt,Wt=function(t){var e=zt(t);return"function"===e||"object"===e&&!!t},Yt=function(t){return"function"==typeof t},Gt=function(t,e){if(t){var n=t;return t.endsWith("/")||(n+="/"),e?n+=e.startsWith("/")?e.slice(1):e:n}},Jt=n(224);!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1"}(qt||(qt={}));var Kt,Qt,Zt={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:qt.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:qt.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:qt.CvEuWest1}};function $t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t.AU="au",t.NZ="nz",t.UK="uk"}(Kt||(Kt={}));var Xt=($t(Qt={},Kt.AU,qt.CvApSoutheast1),$t(Qt,Kt.NZ,qt.CvApSoutheast2),$t(Qt,Kt.UK,qt.CvEuWest1),Qt);function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ee=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ne=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"log",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=2;break}return e.abrupt("return",this.logBulk(t));case 2:if(this.shouldLog(t)){e.next=4;break}return e.abrupt("return");case 4:return this.validateEvent(t),e.t0=this,e.next=8,this.formatData(t);case 8:return e.t1=e.sent,e.next=11,e.t0.postData.call(e.t0,e.t1);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"logBulk",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.filter((function(t){return o.shouldLog(t)}))).length){e.next=3;break}return e.abrupt("return");case 3:return n.forEach((function(t){return o.validateEvent(t)})),e.next=6,Promise.all(n.map((function(t){return o.formatData(t)})));case 6:return r=e.sent,e.next=9,this.postData(r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateOptions",value:function(){if(!Yt(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(t){return!Yt(this.options.shouldLog)||this.options.shouldLog(t)}},{key:"postData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=e.sent,r=JSON.stringify(t),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=Gt(n,"/v1/ingest"),Array.isArray(t)&&(i=Gt(i,"/bulk")),e.next=9,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"getSignatureHeader",value:function(t){var e=new jt.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(e.getHash("B64"))}}},{key:"getRegionalUrl",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegion();case 2:n=e.sent,e.t0=n.systemName,e.next=e.t0===qt.CvEuWest1?6:e.t0===qt.CvApSoutheast2?7:(e.t0,qt.CvApSoutheast1,8);break;case 6:return e.abrupt("return",t.cvEuWest1);case 7:return e.abrupt("return",t.cvApSoutheast2);case 8:return e.abrupt("return",t.cvApSoutheast1);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateEvent",value:function(t){if("string"!=typeof t.type)throw new Error("Event type is required.");if(!Wt(t.actionContext))throw new Error("Event actionContext is required.");if(!t.actionContext.entity)throw new Error("Event actionContext entity is required.")}},{key:"formatData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.type,e.next=3,this.getEventData(t);case 3:return e.t1=e.sent,e.t2=this.getEventMetadata(t),e.abrupt("return",{type:e.t0,data:e.t1,metadata:e.t2});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getEventData",value:function(t){return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.actionContext,e.next=3,this.getUserData();case 3:return r=e.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(t),a=Object.keys(o).map((function(t){return t.toLowerCase()})),c=Object.keys(i).map((function(t){return t.toLowerCase()})),a.forEach((function(t){if(c.includes(t))throw Error("".concat(t," is a reserved key."))})),e.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"extractData",value:function(t){return Yt(this.options.formatData)?this.options.formatData(t):(e={},n=t.actionContext.entity,r=t.data,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);var e,n,r}},{key:"getUserData",value:function(){var t,e;return ee(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.options.getUser();case 2:if(null==(r=n.sent)?void 0:r.id){n.next=5;break}return n.abrupt("return");case 5:return n.t0=r.id,n.t1=(null===(t=r.role)||void 0===t?void 0:t.toLowerCase())||"unknown",n.t2=(null===(e=r.userGroup)||void 0===e?void 0:e.toLowerCase())||Jt.a.Unknown,n.t3=this.normalizeYearGroup(r.yearGroup),n.t4=r.customerId,n.t5=r.customerName,n.t6=r.customerGuid,n.t7=r.crmId,n.t8=r.countryCode,n.next=16,this.getRegion();case 16:return n.t9=n.sent,n.t10=!!r.isOpenCustomer,n.t11={id:n.t4,name:n.t5,customerGuid:n.t6,crmId:n.t7,country:n.t8,region:n.t9,openCustomer:n.t10},n.abrupt("return",{id:n.t0,role:n.t1,userGroup:n.t2,yearGroup:n.t3,customer:n.t11});case 20:case"end":return n.stop()}}),n,this)})))}},{key:"getRegion",value:function(){var t;return ee(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.options.getUser();case 2:return n=e.sent,r=null===(t=null==n?void 0:n.countryCode)||void 0===t?void 0:t.toLowerCase(),o=r?Xt[r]:this.options.regionName,e.abrupt("return",this.getRegionByName(o));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getPlatformMetadata",value:function(){return{browser:Ht(),os:Ft(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(t){return{client:{name:"".concat(this.name,".ts"),version:Nt.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}},{key:"getRegionByName",value:function(t){var e;return Object.values(Zt).forEach((function(n){n.systemName===t&&(e=n)})),e}},{key:"normalizeYearGroup",value:function(t){return t?t.toLowerCase().split(" ").join("_"):"unknown"}},{key:"name",get:function(){return"CollectionApiClient"}}])&&te(e.prototype,n),r&&te(e,r),t}(),re=n(683),oe=n(63);function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ue(t,e){return(ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function se(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fe(t);if(e){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return le(this,n)}}function le(t,e){return!e||"object"!==ie(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fe(t){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ue(t,e)}(c,t);var e,n,o,a=se(c);function c(){return ae(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"shouldLog",value:function(){return oe.a.isDevelopment}},{key:"log",value:function(t){var e=i.clone(t);for(var n in t){var o=e[n];(o instanceof r.a.Model||o instanceof r.a.Collection)&&(e[n]=o.toJSON())}console.log("Event Debugger: ",e)}},{key:"name",get:function(){return"DebuggerClient"}}])&&ce(e.prototype,n),o&&ce(e,o),c}(n(233).a),he=n(29),ye=n(186);function de(t){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ve(t,e){return(ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var o=Se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function me(t,e){return!e||"object"!==de(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var we=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ve(t,e)}(a,t);var e,n,o,i=ge(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).productName=t.productName,e.productVersion=t.productVersion,e}return e=a,(n=[{key:"shouldEnrich",value:function(t){return!0}},{key:"enrich",value:function(t,e){this.shouldEnrich(t)||e(t),t.enrich("coreContext",this.getCoreContext()),e(t)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return he.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 t=ye.a.getOperatingSystem(),e=ye.a.getBrowser();return{os:t.os,osVersion:t.version,browser:e.browser,browserVersion:e.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"name",get:function(){return"CoreContextEnricher"}}])&&be(e.prototype,n),o&&be(e,o),a}(et),Oe=n(4),Ce=function(){return!0},ke=function(){return!1};var Ee=function(t){return t};function _e(t){if(t&&t.code)return t.code}function Re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.id){var n={id:t.id};return t.name&&!e.ignoreTitle&&(n.title=t.name),n}}function Pe(t){if(t&&t.length){var e=t[0];return{id:e.id,title:e.name}}}var Te,Ae,xe,Le=function(t){var e=t.model,n={id:e.id.toString(),year:e.productionYear,title:e.name,trackingCode:e.trackingCode},r=_e(e.rating),o=Re(e.series),i=Pe(e.categories),a=Re(e.owner,{ignoreTitle:!0}),c=Re(e.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},De={getUploadData:function(t,e){var n=e.actionContext.entity;if(n===Oe.EntityType.Video)return De.formatVideoUpload(t,e);if(n===Oe.EntityType.Resource||n===Oe.EntityType.Subtitle)return De.formatResourceUpload(t);if(n===Oe.EntityType.Banner||n===Oe.EntityType.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(t,e){var n=e.actionContext.workflowPhase;return n===Oe.WorkflowPhase.Start?De.getStartVideoUploadData(t):n===Oe.WorkflowPhase.Discard?De.getDiscardVideoUploadData(t):n===Oe.WorkflowPhase.Complete?De.getCompleteUploadData(t):void 0},getStartVideoUploadData:function(t){return t&&t.length?(t instanceof FileList&&(t=Array.from(t)),t.map((function(e){return{fileName:e.name,size:e.size,type:e.type,count:t.length}}))):[]},getDiscardVideoUploadData:function(t){var e=function(e){var n=e.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(t)?t.length:1,type:r,status:i};return e.progress&&(c.progress=e.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]},getCompleteUploadData:function(t){return t&&t.length?t.map((function(e){return{fileName:e.fileName,libraryId:e.libraryId,folderId:e.folderId,count:t.length}})):[]},formatResourceUpload:function(t){var e={id:t.id,name:t.name};return Wt(t.metadata)&&(e.type=t.metadata.type),e}};function je(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ne=(je(Te={},Oe.UserAction.Navigate,ke),je(Te,Oe.UserAction.Click,Ce),je(Te,Oe.UserAction.Search,Ce),je(Te,Oe.UserAction.InstantSearch,Ce),je(Te,Oe.UserAction.Play,Ce),je(Te,Oe.UserAction.Stream,Ce),je(Te,Oe.UserAction.StreamRaw,ke),je(Te,Oe.UserAction.StreamProgress,Ce),je(Te,Oe.UserAction.Rename,Ce),je(Te,Oe.UserAction.Move,Ce),je(Te,Oe.UserAction.Create,Ce),je(Te,Oe.UserAction.Delete,Ce),je(Te,Oe.UserAction.Associate,Ce),je(Te,Oe.UserAction.Dissociate,Ce),je(Te,Oe.UserAction.Filter,Ce),je(Te,Oe.UserAction.Sort,Ce),je(Te,Oe.UserAction.Approve,Ce),je(Te,Oe.UserAction.Reject,Ce),je(Te,Oe.UserAction.Disable,Ce),je(Te,Oe.UserAction.Upload,Ce),je(Te,Oe.UserAction.Download,ke),je(Te,Oe.UserAction.SetAccess,Ce),je(Te,Oe.UserAction.AddToLocalCache,ke),je(Te,Oe.UserAction.Share,Ce),je(Te,Oe.UserAction.Edit,Ce),je(Te,Oe.UserAction.Suggest,Ce),je(Te,Oe.UserAction.ResolveWarning,Ce),je(Te,Oe.UserAction.DismissWarning,Ce),je(Te,Oe.UserAction.EditAssoc,Ce),je(Te,Oe.UserAction.Follow,Ce),Te),Ie=(je(Ae={},Oe.UserAction.Search,Ee),je(Ae,Oe.UserAction.InstantSearch,Ee),je(Ae,Oe.UserAction.Play,Ee),je(Ae,Oe.UserAction.Stream,Le),je(Ae,Oe.UserAction.StreamRaw,Ee),je(Ae,Oe.UserAction.StreamProgress,Ee),je(Ae,Oe.UserAction.Click,Ee),je(Ae,Oe.UserAction.Filter,Ee),je(Ae,Oe.UserAction.Sort,Ee),je(Ae,Oe.UserAction.SetAccess,Ee),je(Ae,Oe.UserAction.Approve,Ee),je(Ae,Oe.UserAction.Reject,Ee),je(Ae,Oe.UserAction.Create,Ee),je(Ae,Oe.UserAction.Delete,Ee),je(Ae,Oe.UserAction.Rename,Ee),je(Ae,Oe.UserAction.Move,Ee),je(Ae,Oe.UserAction.Edit,Ee),je(Ae,Oe.UserAction.Share,Ee),je(Ae,Oe.UserAction.Disable,Ee),je(Ae,Oe.UserAction.Suggest,Ee),je(Ae,Oe.UserAction.Upload,De.getUploadData),je(Ae,Oe.UserAction.ResolveWarning,Ee),je(Ae,Oe.UserAction.DismissWarning,Ee),je(Ae,Oe.UserAction.Follow,Ee),Ae),Ve=(je(xe={},Oe.UserAction.Search,(function(){return"search"})),je(xe,Oe.UserAction.InstantSearch,(function(){return"search"})),je(xe,Oe.UserAction.Filter,(function(){return"filter"})),je(xe,Oe.UserAction.StreamRaw,(function(t){return t.actionContext.entity===Oe.EntityType.Interactive?Oe.EntityType.Video:t.actionContext.entity})),xe),Be={user:"target_user"},Me=je({},Oe.UserAction.StreamProgress,!0),Ue={shouldLog:function(t){return!!Ne[t.type](t)},formatData:function(t){var e=Ie[t.type],n=Yt(e)?e(t.data,t):t.data;if(Me[t.type])return n;var r=t.actionContext.entity;return Yt(Ve[t.type])&&(r=Ve[t.type](t)),Be[r]&&(r=Be[r]),je({},r,n)}};var Fe=n(96);function He(t){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ze(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function We(t,e,n){return e&&qe(t.prototype,e),n&&qe(t,n),t}function Ye(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ge(t,e)}function Ge(t,e){return(Ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Je(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qe(t);if(e){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){return!e||"object"!==He(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qe(t){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ze=function(t){Ye(n,t);var e=Je(n);function n(){return ze(this,n),e.apply(this,arguments)}return We(n,[{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}},{key:"externalRoutes",get:function(){return{logout:"logOut"}}}]),n}(r.a.AppRouter),$e=function(t){Ye(o,t);var e=Je(o);function o(){return ze(this,o),e.apply(this,arguments)}return We(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Fe.e)}},{key:"notFound",value:function(){var t=this;n.e(51).then(n.bind(null,1595)).then((function(e){var n=e.NotFoundView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var t=this;n.e(50).then(n.bind(null,1596)).then((function(e){var n=e.ErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var t=this;n.e(70).then(n.bind(null,1597)).then((function(e){var n=e.DevErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return a.b.DEFAULT}}],[{key:"router",get:function(){return Ze}}]),o}(r.a.Application),Xe=n(97),tn=n(12),en=n(193),nn=n(69);var rn=n(225);function on(t){return function(e,n){var o=b.a.getInstance(a.g.User),c=b.a.getInstance(a.g.Config);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.contains(t,o.get("role"))?n(e):c.getConfig((function(e){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new rn.a(t,e.get("onlineUrl")))}))}))}}function an(t,e){var n=b.a.getInstance(a.g.User),o=b.a.getInstance(a.g.Config);n.getCurrentUser((function(n){b.a.releaseInstance(a.g.User),n.get("emailVerified")?e(t):o.getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Fe.b(t.get("onlineUrl")))}))}))}var cn=n(61);function un(t,e){if(oe.a.isDevelopment)e(t);else{var n=b.a.getInstance(a.g.Settings);b.a.getInstance(a.g.User).getCurrentUser((function(o){b.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),cn.a.CustomLibrariesBetaAccess,(function(n){(b.a.releaseInstance(a.g.Settings),n.get("value"))?e(t):b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Fe.d(t.get("marketingSiteUrl")))}))}))}))}}var sn=n(49),ln=n(58),fn=n(297);function pn(t,e){var n=b.a.getInstance(a.g.MigrationVideo),o=t.appLink;n.getCustomerMetadata((function(n){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.noPublisher(n))return r.a.ErrorHelper.throw(new Fe.e),void r.a.AppLinkUtility.routingEnded();var c=ln.a.isInitialMigration(n),u=[a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.BACKUP_DOWNLOAD,a.a.MigrationWizard.START_MIGRATION];if(!c&&i.contains(u,o.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new fn.a);var s=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(ln.a.backupNotStarted(n)&&!i.contains(s,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(c&&ln.a.backupProcessing(n)&&!i.contains(l,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var f=[a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.START_MIGRATION,a.a.MigrationWizard.SMART,a.a.MigrationWizard.SEARCH,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.VIDEOS_ADDED,a.a.MigrationWizard.PROGRESS,a.a.MigrationWizard.HOME];if(c&&ln.a.backupComplete(n)&&!i.contains(f,o.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();e(t)}))}function hn(t,e){if(oe.a.isDevelopment)e(t);else{var n=t.appLink;b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(o){if(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isCurrentlyMigratingAll(o)&&n.application!==a.b.MIGRATION_WIZARD&&n.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[o.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(ln.a.isInitialMigration(o)&&n.application!==a.b.MIGRATION_WIZARD)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void r.a.AppLinkUtility.routingEnded();var c=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(ln.a.isPublishingLibraries(o)&&!i.contains(c,n.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void r.a.AppLinkUtility.routingEnded();e(t)}))}}var yn=function(){var t=docCookies.getItem("clear-video-cache");t&&(b.a.getInstance(a.g.Video).clearVideoCache(),b.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",t))};function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e,n){return e&&vn(t.prototype,e),n&&vn(t,n),t}function mn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sn(t,e)}function Sn(t,e){return(Sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cn(t);if(e){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return On(this,n)}}function On(t,e){return!e||"object"!==dn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cn(t){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kn=function(t){mn(n,t);var e=wn(n);function n(){return bn(this,n),e.apply(this,arguments)}return gn(n,[{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),En=function(t){mn(o,t);var e=wn(o);function o(){return bn(this,o),e.apply(this,arguments)}return gn(o,[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(g.a.Library,this),b.a.getInstance(g.b.VideoDragDrop,this),b.a.getInstance(g.b.FolderDragDrop,this),this.pageVisibilityService=b.a.getInstance(g.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(t){t||yn()})),yn()}},{key:"index",value:function(){var t=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(e){var o=e.first();o?(t.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:t.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(t.renderLeftNav(),n.e(72).then(n.bind(null,1598)).then((function(e){var n=new(0,e.NoLibraryView);t.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(t){var e=this;this.libraryDataService.deselectAll(),this.renderLeftNav(t),n.e(26).then(n.bind(null,1650)).then((function(n){var r=new(0,n.LibraryView)({libraryId:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(t),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor),analyticsOptions:{entity:Oe.EntityType.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(e){var n=sn.a.getLibrary(t,e);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(40)]).then(n.bind(null,1599)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Rename,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1600)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Move,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Create,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newSubFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({parentId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Create,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteFolder",value:function(t){var e=this;n.e(65).then(n.bind(null,1602)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Folder,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new en.a(t,tn.p.GetSortTypeFromName(o),e.cursor);Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(12)]).then(n.bind(null,1643)).then((function(t){var e=new(0,t.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Oe.EntityType.Series}});r.layout.showChildView(a.n.CONTENT,e)})),this.renderLeftNav()}},{key:"moveVideos",value:function(t,e){var r=this,o=t.split(",");Promise.all([n.e(0),n.e(33)]).then(n.bind(null,1603)).then((function(t){var n=new(0,t.MoveVideoView)({videoIds:o,folderId:e,analyticsOptions:{descriptor:o.length>1?Oe.OperationDescriptor.Bulk:Oe.OperationDescriptor.Single,location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Move,entity:Oe.EntityType.Video,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(t,e,r){var o=this;n.e(66).then(n.bind(null,1604)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:t,videoIds:e.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:e.length>1?Oe.OperationDescriptor.Bulk:Oe.OperationDescriptor.Single,location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Video,workflowPhase:Oe.WorkflowPhase.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(t){var e=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(25)]).then(n.bind(null,1646)).then((function(n){var r=new(0,n.VideoDetailsView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"editVideo",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoDetails),Promise.all([n.e(9),n.e(13),n.e(27)]).then(n.bind(null,1644)).then((function(n){var r=new(0,n.EditVideoView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoChapters),Promise.all([n.e(2),n.e(1),n.e(30)]).then(n.bind(null,1605)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(t){var e=this;Xe.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Oe.LocationContext.EditVideoResources),n.e(23).then(n.bind(null,1640)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(t,e){var r=this;n.e(35).then(n.bind(null,1606)).then((function(n){var o=new(0,n.EditResourceView)({videoId:t,resourceId:e,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Edit,entity:Oe.EntityType.Resource,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var t=this;n.e(36).then(n.bind(null,1607)).then((function(e){var n=new(0,e.NewLibraryView)({});t.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(t){var e=this;n.e(64).then(n.bind(null,1608)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Rename,entity:Oe.EntityType.Library,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(t){var e=this;n.e(71).then(n.bind(null,1609)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:t,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Delete,entity:Oe.EntityType.Library,workflowPhase:Oe.WorkflowPhase.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(t,e){var r=this,o=e.sort||tn.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1610)).then((function(e){var n=new(0,e.GeneratePdfView)({collectionIdentifier:new en.a(t,tn.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(t){var e=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1611)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(t){var e=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1612)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(t){var e=this;n.e(69).then(n.bind(null,1615)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({masterId:t}))}))}},{key:"editFolderImages",value:function(t){var e=this;Promise.all([n.e(11),n.e(37)]).then(n.bind(null,1651)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(t){var e=this;Promise.all([n.e(0),n.e(31)]).then(n.bind(null,1652)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:t});e.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(t,e){var r=this;Promise.all([n.e(9),n.e(38)]).then(n.bind(null,1645)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:t,metadata:e.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(t,e){var r=this;n.e(34).then(n.bind(null,1617)).then((function(n){var o=new(0,n.EditLinkView)({videoId:t,linkId:e,analyticsOptions:{location:Oe.LocationContext.Popup,actionType:Oe.UserAction.Edit,entity:Oe.EntityType.Link,workflowPhase:Oe.WorkflowPhase.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(t,e){T.a.logUserAction(t,{actionType:Oe.UserAction.Edit,location:e,entity:Oe.EntityType.Video,descriptor:Oe.PageDescriptor.PageLoad,workflowPhase:Oe.WorkflowPhase.Start})}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}}],[{key:"router",get:function(){return kn}}]),o}(r.a.Application),_n=n(119);function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function An(t,e,n){return e&&Tn(t.prototype,e),n&&Tn(t,n),t}function xn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ln(t,e)}function Ln(t,e){return(Ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nn(t);if(e){var o=Nn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(t,e){return!e||"object"!==Rn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var In=function(t){xn(n,t);var e=Dn(n);function n(){return Pn(this,n),e.apply(this,arguments)}return An(n,[{key:"channelName",get:function(){return a.b.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Vn=function(t){xn(r,t);var e=Dn(r);function r(){return Pn(this,r),e.apply(this,arguments)}return An(r,[{key:"index",value:function(t){var e=this;if(Xe.a.fromPageLoad()){var r=t&&t.query;this.logSearch(r)}Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(21)]).then(n.bind(null,1653)).then((function(n){var r=new(0,n.SearchView)({queryParams:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1613)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(t){if(t){var e=T.a.buildSearchEvent(t,Oe.PageDescriptor.PageLoad),n=e.data,r=e.action;_n.a.log(Oe.UserAction.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(16)]).then(n.bind(null,1618)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.SEARCH}}}},{key:"channelName",get:function(){return a.b.SEARCH}}],[{key:"router",get:function(){return In}}]),r}(r.a.Application);function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fn(t,e,n){return e&&Un(t.prototype,e),n&&Un(t,n),t}function Hn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zn(t,e)}function zn(t,e){return(zn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yn(t);if(e){var o=Yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wn(this,n)}}function Wn(t,e){return!e||"object"!==Bn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yn(t){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gn=function(t){Hn(n,t);var e=qn(n);function n(){return Mn(this,n),e.apply(this,arguments)}return Fn(n,[{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Jn=function(t){Hn(r,t);var e=qn(r);function r(){return Mn(this,r),e.apply(this,arguments)}return Fn(r,[{key:"index",value:function(t){var e=this,r=i.isNaN(+t.page)?"1":t.page;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(24)]).then(n.bind(null,1619)).then((function(t){var n=t.RestrictedVideoListView;e.layout.showChildView(d.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(d.a.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.VIDEO_ACCESS,selectedNavItem:{application:a.b.VIDEO_ACCESS,action:a.a.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}}],[{key:"router",get:function(){return Gn}}]),r}(r.a.Application),Kn=n(9);function Qn(t){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xn(t,e,n){return e&&$n(t.prototype,e),n&&$n(t,n),t}function tr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&er(t,e)}function er(t,e){return(er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=or(t);if(e){var o=or(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rr(this,n)}}function rr(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function or(t){return(or=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ir=function(t){tr(n,t);var e=nr(n);function n(){return Zn(this,n),e.apply(this,arguments)}return Xn(n,[{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,(t=[{name:cn.a.StaffRequest,value:Kn.k.StaffRequest}],function(e,n){var o=b.a.getInstance(a.g.User),i=b.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){b.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){b.a.releaseInstance(a.g.Settings);var i=!1;t.forEach((function(t){var e=o.findWhere({name:t.name});if(!e||e.get("value")!==t.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new Fe.a(t.name))})),i||n(e)}))}))}),hn];var t}}]),n}(r.a.AppRouter),ar=function(t){tr(r,t);var e=nr(r);function r(){return Zn(this,r),e.apply(this,arguments)}return Xn(r,[{key:"index",value:function(){var t=this;Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(e){var n=e.StaffRequestsView;t.layout.showChildView(d.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(t,e){var r=this;e=e||{},Promise.all([n.e(2),n.e(0),n.e(1),n.e(3),n.e(14)]).then(n.bind(null,1648)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(d.a.CONTENT,new o({requestId:t,referrer:e.referrer}))}))}},{key:"approveRequest",value:function(t,e,r){var o=this;this.editRequest(t),t&&e&&r&&n.e(68).then(n.bind(null,1620)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(d.a.POPUP,new i({requestId:t,libraryId:e,folderId:r}))}))}},{key:"rejectRequest",value:function(t){var e=this;this.editRequest(t),n.e(60).then(n.bind(null,1621)).then((function(n){var r=n.RejectStaffRequestView;e.layout.showChildView(d.a.POPUP,new r({requestId:t}))}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.STAFF_REQUESTS,selectedNavItem:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}}],[{key:"router",get:function(){return ir}}]),r}(r.a.Application),cr=n(295),ur=n(27);function sr(t){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pr(t,e,n){return e&&fr(t.prototype,e),n&&fr(t,n),t}function hr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vr(t);if(e){var o=vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return br(this,n)}}function br(t,e){return!e||"object"!==sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vr(t){return(vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var gr=function(t){hr(n,t);var e=dr(n);function n(){return lr(this,n),e.apply(this,arguments)}return pr(n,[{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([Kn.m.Admin]),an,hn]}}]),n}(r.a.AppRouter),mr=function(t){hr(o,t);var e=dr(o);function o(){return lr(this,o),e.apply(this,arguments)}return pr(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:this.channelName,action:a.a.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(22)]).then(n.bind(null,1622)).then((function(e){var n=e.AwaitingReviewView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(t){var e,r,o,c=this,u=t[ur.a.ReleaseDate]||cr.e.queryString,s=(e={},r=ur.a.ReleaseDate,o=u,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e);this.setDefaultQueryParams(s),Promise.all([n.e(2),n.e(1),n.e(3),n.e(5),n.e(20)]).then(n.bind(null,1649)).then((function(e){var n=e.PastReleasesView;c.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},t,s)}))}))}},{key:"generatePdf",value:function(t){var e=this;n.e(43).then(n.bind(null,1623)).then((function(n){var r=n.GeneratePastReleasesPdfView;e.layout.showChildView(a.n.POPUP,new r({librariesQueryString:t[ur.a.Libraries],dateQueryString:t[ur.a.ReleaseDate],subjectQueryString:t[ur.a.Subjects]}))}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1655)).then((function(n){var r=n.ShareView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"disableReview",value:function(){var t=this;n.e(63).then(n.bind(null,1624)).then((function(e){var n=e.DisableReviewView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1647)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"addToLibrary",value:function(t){var e=this;Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1625)).then((function(n){var r=n.AddToLibraryView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=e.PublishLibraryView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.CONTENT_UPDATES,selectedNavItem:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}}],[{key:"router",get:function(){return gr}}]),o}(r.a.Application);function Sr(t){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cr(t,e,n){return e&&Or(t.prototype,e),n&&Or(t,n),t}function kr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Er(t,e)}function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pr(t);if(e){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}function Rr(t,e){return!e||"object"!==Sr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pr(t){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tr=function(t){kr(n,t);var e=_r(n);function n(){return wr(this,n),e.apply(this,arguments)}return Cr(n,[{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Ar=function(t){kr(r,t);var e=_r(r);function r(){return wr(this,r),e.apply(this,arguments)}return Cr(r,[{key:"index",value:function(t){var e=this;n.e(49).then(n.bind(null,1626)).then((function(n){var r=n.NotificationsView;e.layout.showChildView(a.n.CONTENT,new r({params:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.NOTIFICATIONS}}}},{key:"channelName",get:function(){return a.b.NOTIFICATIONS}}],[{key:"router",get:function(){return Tr}}]),r}(r.a.Application);function xr(t){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jr(t,e,n){return e&&Dr(t.prototype,e),n&&Dr(t,n),t}function Nr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ir(t,e)}function Ir(t,e){return(Ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mr(t);if(e){var o=Mr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Br(this,n)}}function Br(t,e){return!e||"object"!==xr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mr(t){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ur=function(t){Nr(n,t);var e=Vr(n);function n(){return Lr(this,n),e.apply(this,arguments)}return jr(n,[{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[un,on([nn.a.Admin]),an,hn]}}]),n}(r.a.AppRouter),Fr=function(t){Nr(r,t);var e=Vr(r);function r(){return Lr(this,r),e.apply(this,arguments)}return jr(r,[{key:"initialize",value:function(){this.videoUploadService=b.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var t=this;n.e(61).then(n.bind(null,1627)).then((function(e){var n=new(0,e.FileSelectView);t.layout.showChildView(d.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(t){var e=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(13),n.e(29)]).then(n.bind(null,1642)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:t.folderId,analyticsOptions:{actionType:Oe.UserAction.Upload,entity:Oe.EntityType.Video,location:Oe.LocationContext.VideoUpload}});e.layout.showChildView(d.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var t=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1628)).then((function(e){var n=new(0,e.UploadCompleteView);t.layout.showChildView(d.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1601)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(d.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(d.a.POPUP,n)}))}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.UPLOAD}}}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return a.b.UPLOAD}}],[{key:"router",get:function(){return Ur}}]),r}(r.a.Application),Hr=n(3),zr=/^clickviewactasuser.*/i,qr={handleMismatch:function(){b.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(t){(b.a.releaseInstance(a.g.MigrationVideo),ln.a.isInitialMigration(t))&&(t.keyContact&&t.keyContact.get("fullName")&&(zr.test(t.keyContact.get("username"))||b.a.getInstance(a.g.User).getCurrentUser((function(e){b.a.releaseInstance(a.g.User),t.keyContact.get("userId")!==e.get("id")&&qr.showDialog(t)}))))}))},showDialog:function(t){new tn.d({title:Hr.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Hr.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:t.keyContact.get("fullName")}),buttons:[{text:Hr.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Hr.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){b.a.getInstance(a.g.Config).getConfig((function(t){b.a.releaseInstance(a.g.Config),window.location=t.get("onlineUrl")}))}))}};function Wr(t){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jr(t,e,n){return e&&Gr(t.prototype,e),n&&Gr(t,n),t}function Kr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qr(t,e)}function Qr(t,e){return(Qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xr(t);if(e){var o=Xr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $r(this,n)}}function $r(t,e){return!e||"object"!==Wr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xr(t){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var to=function(t){Kr(n,t);var e=Zr(n);function n(){return Yr(this,n),e.apply(this,arguments)}return Jr(n,[{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return oe.a.isDevelopment?[an]:[un,an,pn]}}]),n}(r.a.AppRouter),eo=function(t){Kr(o,t);var e=Zr(o);function o(){return Yr(this,o),e.apply(this,arguments)}return Jr(o,[{key:"initialize",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(t){t.folder?this.folder(t.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var t=this;n.e(57).then(n.bind(null,1629)).then((function(e){var n=e.PublisherBackupWelcomeView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var t=this;n.e(58).then(n.bind(null,1630)).then((function(e){var n=e.PublisherBackupView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var t=this;n.e(41).then(n.bind(null,1631)).then((function(e){var n=e.PublisherBackupProgressView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var t=this;n.e(56).then(n.bind(null,1632)).then((function(e){var n=e.PublisherBackupCompleteView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var t=this;n.e(46).then(n.bind(null,1633)).then((function(e){var n=e.StartView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(t){this.migrationVideoDataService.setSelected(t),this.renderSmartMigration(t)}},{key:"search",value:function(t){this.renderSmartMigration(void 0,t.term)}},{key:"progress",value:function(t,e){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1634)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"videosAdded",value:function(t,e){var r=this;n.e(59).then(n.bind(null,1635)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"selected",value:function(t){var e=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1636)).then((function(n){var r=n.SelectedVideosView;e.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:t}))}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(17).then(n.bind(null,1616)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({trackingCode:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(4).then(n.bind(null,1614)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(t,e,r){var o=this;n.e(67).then(n.bind(null,1637)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:t,masterId:e,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var t=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1656)).then((function(e){var n=new(0,e.PublishLibraryProgressView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var t=this;n.e(54).then(n.bind(null,1638)).then((function(e){var n=new(0,e.PublishLibraryCompleteView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var t=this;Promise.all([n.e(2),n.e(1),n.e(6),n.e(28)]).then(n.bind(null,1641)).then((function(e){var n=new(0,e.MigrationErrorView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(t){var e=this;n.e(47).then(n.bind(null,1639)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:t.options});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(6),n.e(42)]).then(n.bind(null,1654)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:t,searchTerm:e});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var t=this;this.layoutLoaded||qr.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(e){ln.a.isInitialMigration(e)||(ln.a.isCurrentlyMigratingAll(e)?Promise.resolve().then(n.bind(null,736)).then((function(e){var n=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,736)).then((function(e){var r=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,737)).then((function(e){var n=e.TopNavigationView;t.layout.showChildView(a.n.TOP_NAV,new n({selected:{application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.HOME}}))}))})))}))}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}}],[{key:"router",get:function(){return to}}]),o}(r.a.Application);var no=n(121),ro=n(68),oo=n(11);function io(t){return(io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ao(t){return function(t){if(Array.isArray(t))return co(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return co(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(t,e)}(t)||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 co(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e){return(so=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=po(t);if(e){var o=po(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fo(this,n)}}function fo(t,e){return!e||"object"!==io(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function po(t){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ho=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&so(t,e)}(a,t);var e,n,r,o=lo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).size=t.size,e.cache={},e.cachedkeys=[],e}return e=a,(n=[{key:"removeCacheKey",value:function(t){this.cachedkeys=i.without(this.cachedkeys,t)}},{key:"has",value:function(t){return!!this.cache[t]}},{key:"get",value:function(t){return this.cache[t]}},{key:"set",value:function(t,e){t&&e||oo.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=e,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(t,e){if(this.has(t))return this.get(t);var n=e();return this.set(t,n),n}},{key:"remove",value:function(t){return!!this.has(t)&&(delete this.cache[t],this.removeCacheKey(t),!0)}},{key:"invalidate",value:function(t,e){var n=this,r=i.object(this.cachedkeys,this.cachedkeys),o=[];i.each(t,(function(t){var e;r[t]&&o.push(t);var n=new RegExp(t,"i"),a=i.filter(r,(function(t){return n.test(t)}));(e=o).push.apply(e,ao(a))})),o.length&&(o=i.uniq(o),i.each(o,(function(t){delete n.cache[t],i.isFunction(e)&&e(t)})),this.cachedkeys=i.without.apply(i,[this.cachedkeys].concat(ao(o))))}},{key:"name",get:function(){return no.a.Fifo}}])&&uo(e.prototype,n),r&&uo(e,r),a}(ro.a);var yo,bo=n(150);!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(yo||(yo={}));var vo=n(115),go=function(t,e,n){if(!n||!n.errorCode)return t[e];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),t[r]||t[e]};function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function So(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wo(t,e){return(wo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ko(t);if(e){var o=ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Co(this,n)}}function Co(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ko(t){return(ko=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Eo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wo(t,e)}(a,t);var e,n,r,o=Oo(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),e=o.call(this,t),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),e.successMiddleware={},e.errorMiddleware={},e.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,e.defaultErrorMessageKey=t.defaultErrorMessageKey,e}return e=a,(n=[{key:"parseUrl",value:function(t){var e=document.createElement("a");return e.href=t,""===e.host&&(e.href=e.href),e}},{key:"makeHttps",value:function(t){var e=this.parseUrl(t);return"http:"===e.protocol&&(e.protocol="https:"),e.href}},{key:"base",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=yo.GET);var o=i.defaults(r,{forceHttps:!1}),a={url:t,method:n,type:n};e&&(a.data=n===yo.POST||n===yo.PUT?JSON.stringify(e):e),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);var c=$.ajax(a);return i.keys(this.successMiddleware).length&&c.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&c.fail(i.values(this.errorMiddleware)),c}},{key:"create",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.POST).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"read",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.GET).done((function(t,e,o){n.trigger(r,t,e,o)})).fail((function(t,e,r){n.trigger(o,t,e,r)}))}},{key:"update",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(t,e,yo.PUT).done((function(t,e,n){return r.trigger(o,t,e,n)})).fail((function(t,e,n){return r.trigger(i,t,e,n)}))}},{key:"delete",value:function(t,e){var n=e.channel,r=e.successEvent,o=e.errorEvent;this.base(t,null,yo.DELETE).done((function(t,e,o){return n.trigger(r,t,e,o)})).fail((function(t,e,r){return n.trigger(o,t,e,r)}))}},{key:"useMiddleware",value:function(t,e){this.successMiddleware[t]||(this.successMiddleware[t]=e)}},{key:"useErrorMiddleware",value:function(t,e){this.errorMiddleware[t]||(this.errorMiddleware[t]=e)}},{key:"parseError",value:function(t){var e=t.responseJSON,n=bo.a;switch(n.code=t.status,n.message=go(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,e),t.status){case 400:n.type=vo.a.BadRequest;break;case 401:n.type=vo.a.Unauthorized;break;case 403:n.type=vo.a.Forbidden;break;case 404:n.type=vo.a.NotFound;break;case 500:n.type=vo.a.InternalServer}return n}},{key:"name",get:function(){return v.a.Ajax}}])&&So(e.prototype,n),r&&So(e,r),a}(V.Object),_o=n(181);var Ro=n(52),Po=n(13),To=n(53),Ao=n(24),xo=n(22);function Lo(t){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Do(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jo(t,e){return(jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function No(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vo(t);if(e){var o=Vo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Io(t,e){return!e||"object"!==Lo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vo(t){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jo(t,e)}(n,t);var e=No(n);function n(){return Do(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Mo(t){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ho(t,e){return(Ho=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wo(t);if(e){var o=Wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qo(this,n)}}function qo(t,e){return!e||"object"!==Mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wo(t){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ho(t,e)}(i,t);var e,n,r,o=zo(i);function i(){return Uo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"receiveLatestNotifications",value:function(t){return this.get({callback:t,formatData:function(t){return new Bo(t)},resource:"notify",eventPrefix:"".concat(To.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(t){return this.get({callback:t,resource:"notifyCount",eventPrefix:"".concat(To.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return xo.a.NotificationSocket}},{key:"channelName",get:function(){return Ao.b.NOTIFICATIONS_SOCKET}}])&&Fo(e.prototype,n),r&&Fo(e,r),i}(Po.a),Go=n(82),Jo=n(123);function Ko(t){return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $o(t,e){return($o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ei(t);if(e){var o=ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ti(this,n)}}function ti(t,e){return!e||"object"!==Ko(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ei(t){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ni=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$o(t,e)}(i,t);var e,n,r,o=Xo(i);function i(){return Qo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return Bo}}])&&Zo(e.prototype,n),r&&Zo(e,r),i}(r.a.Collection),ri=n(98);function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ci(t,e){return(ci=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ui(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=li(t);if(e){var o=li(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return si(this,n)}}function si(t,e){return!e||"object"!==oi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function li(t){return(li=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fi=function(t,e){var n="/api/domain/v2/objects/".concat(t,"/notifications?query={orderbydesc:datecreated}");if(!e)return n;var r=e.limit,o=e.cursor,i=e.before,a=[],c=Go.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},pi=function(t){return"/api/notifications/v1/notifications/".concat(t)},hi="/api/notifications/v1/notifications",yi="/api/domain/v1/notifications",di=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ci(t,e)}(i,t);var e,n,r,o=ui(i);function i(){return ii(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getNotifications",value:function(t,e,n,r){return this.get({resource:fi(t,e),expiryTime:ri.a.STANDARD,eventPrefix:n,formatData:function(t){return new ni(t,{parse:!0})},callback:r})}},{key:"markRead",value:function(t,e){return this.update({callback:e,data:{notificationStatus:Jo.a.Read},resource:pi(t),eventPrefix:"".concat(To.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(t){var e=he().utc().toISOString();return this.update({callback:t,data:{notificationStatus:Jo.a.Seen},resource:"".concat(hi,"?to=").concat(e,"&notificationStatus=").concat(Jo.a.Received),eventPrefix:"".concat(To.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(t){return this.getCursors(t)}},{key:"suggestEdit",value:function(t,e){return this.create({resource:"".concat(yi),eventPrefix:"".concat(To.a.SUGGEST_EDIT),callback:e,data:t,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return xo.a.Notification}},{key:"channelName",get:function(){return Ao.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&ai(e.prototype,n),r&&ai(e,r),i}(Po.a),bi="locale",vi="phrases";function gi(t){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Si(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wi(t,e){return(wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ci(t,e){return!e||"object"!==gi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ei=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wi(t,e)}(a,t);var e,n,r,o=Oi(a);function a(){return mi(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"getLanguageConfig",value:function(t){var e={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:To.a.LOCALE,expiryTime:ri.a.STANDARD,bootstrapName:bi,callback:function(n){e.locale=n,e.phrases&&i.isFunction(t)&&t(e)}}),this.get({resource:"/api/phrases",eventPrefix:To.a.PHRASES,expiryTime:ri.a.STANDARD,bootstrapName:vi,callback:function(n){e.phrases=n,e.locale&&i.isFunction(t)&&t(e)}})}},{key:"name",get:function(){return xo.a.Language}},{key:"channelName",get:function(){return Ao.b.LANGUAGE}}])&&Si(e.prototype,n),r&&Si(e,r),a}(Po.a),_i=n(15),Ri=n(106),Pi=n.n(Ri),Ti=n(692),Ai=n.n(Ti);function xi(t){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Li(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Di(t,e){return(Di=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ji(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ii(t);if(e){var o=Ii(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ni(this,n)}}function Ni(t,e){return!e||"object"!==xi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Di(t,e)}(a,t);var e,n,r,i=ji(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(t){return t.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&o.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var t=this;return this.$el.addClass(Pi.a.removing),this.$el.addClass(Pi.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return t.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var t=this,e=this.model.get("timeout")||this.options.timeout;e&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return t.triggerRemoval()}),e))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Pi.a.removing),this.$el.removeClass(Pi.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case Ro.a.Success:return _i.a.getSvg(_i.b.CheckCircleOutline);case Ro.a.Fail:case Ro.a.Warning:return _i.a.getSvg(_i.b.Warning);case Ro.a.Info:default:return _i.a.getSvg(_i.b.Info)}}},{key:"getTypeClass",value:function(){var t=this.model.get("type").toLowerCase();return"text-".concat(t)}},{key:"viewOptions",value:function(){return{styles:Pi.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}},{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(Pi.a.alertItem," show clearfix")}},{key:"template",get:function(){return Ai.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&Li(e.prototype,n),r&&Li(e,r),a}(r.a.Component);function Bi(t){return(Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ui(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fi(t,e){return(Fi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zi(this,n)}}function zi(t,e){return!e||"object"!==Bi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Wi,Yi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fi(t,e)}(i,t);var e,n,r,o=Hi(i);function i(){return Mi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Pi.a.alertList," alert-list")}},{key:"channelName",get:function(){return C.a.ALERT}},{key:"childView",get:function(){return Vi}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Ui(e.prototype,n),r&&Ui(e,r),i}(r.a.ComponentCollection);function Gi(t){return(Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ji(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ki(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qi(t,e,n){return(Qi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ta(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Zi(t,e){return(Zi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ta(t);if(e){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xi(this,n)}}function Xi(t,e){return!e||"object"!==Gi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ta(t){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.Success="Success! 🙌",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(Wi||(Wi={}));var ea=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zi(t,e)}(i,t);var e,n,r,o=$i(i);function i(){return Ji(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"success",value:function(t){return Qi(ta(i.prototype),"success",this).call(this,t)}},{key:"error",value:function(t){return Qi(ta(i.prototype),"error",this).call(this,t)}},{key:"name",get:function(){return a.x.Alerts}}])&&Ki(e.prototype,n),r&&Ki(e,r),i}(Ro.b),na=n(190),ra=n(136),oa=n(237),ia=n(17);function aa(t){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ca(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ua(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sa(t,e){return(sa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function la(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pa(t);if(e){var o=pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(t,e){return!e||"object"!==aa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pa(t){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ha=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sa(t,e)}(i,t);var e,n,r,o=la(i);function i(){return ca(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getCustomer",value:function(t,e){return this.get({resource:"/api/domain/v2/objects/".concat(t),formatData:function(t){return new oa.a(t)},eventPrefix:a.f.CUSTOMER,expiryTime:ia.a.STANDARD,callback:e})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&ua(e.prototype,n),r&&ua(e,r),i}(Po.a),ya=n(235);function da(t){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ba(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function va(t,e){return(va=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ga(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sa(t);if(e){var o=Sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ma(this,n)}}function ma(t,e){return!e||"object"!==da(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sa(t){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&va(t,e)}(n,t);var e=ga(n);function n(){return ba(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Oa(t){return(Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ca(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ea(t,e){return(Ea=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pa(t);if(e){var o=Pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Ra(t,e){return!e||"object"!==Oa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pa(t){return(Pa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ea(t,e)}(i,t);var e,n,r,o=_a(i);function i(){return Ca(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return wa}}])&&ka(e.prototype,n),r&&ka(e,r),i}(r.a.Collection);function Aa(t){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function La(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Da(t,e){return(Da=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ja(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ia(t);if(e){var o=Ia(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Na(this,n)}}function Na(t,e){return!e||"object"!==Aa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ia(t){return(Ia=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Va=function(t,e){var n="/api/domain/v3/settings/".concat(t);return ya.a[e]&&(n+="?kind=".concat(e)),n},Ba=function(t){return"/api/domain/v3/settings/".concat(t)},Ma=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Da(t,e)}(c,t);var e,n,r,o=ja(c);function c(){return xa(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getSetting",value:function(t,e,n){var r=i.isFunction(n)?function(t){var r=t.findWhere({name:e});i.isFunction(n)&&n(r)}:null,o=this.getSettings(t,null,r);return o?o.findWhere({name:e}):null}},{key:"getSettings",value:function(t,e,n){return this.get({callback:n,resource:Va(t,e),formatData:function(t){return new Ta(t)},eventPrefix:a.f.SETTINGS,expiryTime:ri.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(t,e,n,r){return this.update({callback:r,resource:Ba(t),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(cn.a.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:e,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return g.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&La(e.prototype,n),r&&La(e,r),c}(Po.a),Ua=n(138),Fa=n(100),Ha=n(91);function za(t){return(za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){return(Wa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ya(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ja(t);if(e){var o=Ja(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ga(this,n)}}function Ga(t,e){return!e||"object"!==za(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ja(t){return(Ja=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ka=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wa(t,e)}(n,t);var e=Ya(n);function n(){return qa(this,n),e.apply(this,arguments)}return n}(r.a.Model),Qa=n(180),Za=n(50),$a=n(147),Xa=n(32),tc=n(304);function ec(t){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oc(t,e){return(oc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ic(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cc(t);if(e){var o=cc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ac(this,n)}}function ac(t,e){return!e||"object"!==ec(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cc(t){return(cc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var uc=function(t,e,n){var r=["query={status:[1,5],".concat(e,"}").concat(Qa.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/videos?").concat(r.join("&"))},sc=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(Qa.a.VIDEO)},lc=function(t){return"/api/domain/v2/objects/".concat(t)},fc=function(){return"/api/domain/v2/objects/move"},pc=function(){return"/api/domain/v1/share"},hc=function(t){return"/api/domain/v1/videos?ids=".concat(t.join(","),"&with=categories")},yc=function(t,e,n){var r=n.map((function(t){return"videoIds=".concat(t)}));return"/api/domain/v1/libraries/".concat(t,"/videos?categoryId=").concat(e,"&").concat(r.join("&"))},dc=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},bc=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},vc=function(t,e,n){return"/api/domain/v2/objects/".concat(t,"/").concat(e,"?").concat(Oc.getDissocIds(n))},gc=function(t){return"/api/domain/v2/videos/".concat(t,"/copy")},mc=function(t){return"/api/domain/v2/objects/".concat(t,"/libraries")},Sc=function(){return"/api/domain/v1/staffrequests"},wc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oc(t,e)}(s,t);var e,n,c,u=ic(s);function s(){return nc(this,s),u.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(g.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([Xa.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(t,e){var n=this,r=tn.p.GetFilterFromSort(t.sort),o=uc(t.id,r,t.cursor);return this.get({resource:o,formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString()})}},{key:"getSeriesVideos",value:function(t,e,n){var r=this,o=tn.p.GetFilterFromSort(t.sort),i="libraries.id:[".concat(e.join(","),"]"),a="".concat(o,",").concat(i),c=uc(t.id,a,t.cursor);return this.get({resource:c,formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,t,n)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString()})}},{key:"getVideo",value:function(t,e){var n=this;return this.get({resource:sc(t),formatData:function(t){return new Fa.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoData(t,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS,":").concat(t)})}},{key:"clearCacheAndGetVideo",value:function(t,e,n){var r=this;return this.clearCacheAndGet({resource:sc(t),formatData:function(t){return new Fa.a(t,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoData(t,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS,":").concat(t),errorHandler:n})}},{key:"getVideos",value:function(t,e){var n=this;return this.get({resource:hc(t),formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoCollectionData(t,null,e)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEOS_BY_ID,":").concat(t.join(","))})}},{key:"hasPhysicalChapters",value:function(t,e){return this.get({resource:"/legacy/videos/".concat(t,"/hasphysicalchapters"),formatData:function(t){return new r.a.Model(t)},callback:e,expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(t)})}},{key:"updateVideo",value:function(t,e,n,r){var o=["".concat(t)];return e&&o.push("".concat(e)),this.update({resource:lc(t),eventPrefix:"".concat(Xa.a.UPDATE_VIDEO,":").concat(t),data:n,invalidationKeys:o,callback:r})}},{key:"addOrUpdateThumbnail",value:function(t,e,n,r){var o={fileId:e.id.toString(),fileIdType:Kn.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:bc(t,n),eventPrefix:Xa.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:dc(t),eventPrefix:"".concat(Xa.a.UPDATE_VIDEO_THUMBNAIL,":").concat(t),data:o,formatData:function(t){return new Ha.a(t)},invalidationKeys:[Xa.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(t,e,n,r,o){var a=this;this.create({resource:fc(),eventPrefix:"".concat(Xa.a.MOVE_VIDEOS,":").concat(t.join(",")),formatData:function(t){return new Za.a(t,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:t},invalidationKeys:["".concat(Xa.a.VIDEOS,":collection:").concat(n),"".concat(Xa.a.VIDEOS,":collection:").concat(e)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(t,e,n,r){var o=this;this.delete({resource:yc(t,e,n),eventPrefix:Xa.a.DELETE_VIDEO,invalidationKeys:[Xa.a.VIDEOS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(t,e,n){var r={id:t,privacy:e};return this.create({data:r,resource:pc(),formatData:function(t){return new Ka(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(t,e,n,r){var o=tc.a.addVideoToLibraryAlert(e,n);this.create({resource:Sc(),eventPrefix:"add:to:library",callback:r,data:t,invalidationKeys:["".concat(Xa.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(t,e,n){if(t&&e){var r=new w.a(i.keys(e).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(e),(function(n){a.delete({resource:vc(t,n.toLowerCase(),e[n]),eventPrefix:"".concat(Xa.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(t,e,n,r){this.create({resource:gc(t),data:{libraryId:e,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(t,e){this.get({resource:mc(t),eventPrefix:"video:libraries:".concat(t),formatData:function(t){return new $a.a(t.data)},callback:e})}},{key:"invalidateCollectionVideos",value:function(t){this.invalidateCache([t.toString()])}},{key:"name",get:function(){return g.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&rc(e.prototype,n),c&&rc(e,c),s}(Po.a),Oc={videoCollection:function(t){return{dataServiceName:g.a.Video,eventName:"".concat(t.toString,":sync"),getData:function(e){return e.getCollectionVideos(t)},getInstance:function(t){return b.a.getInstance(g.a.Video,t)},beforeOnBeforeRender:!0}},getDissocIds:function(t){return"string"==typeof t?"id=".concat(t):t.map((function(t){return"id=".concat(t)})).join("&")}},Cc=n(102);function kc(t){return(kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ec(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rc(t,e){return(Rc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ac(t);if(e){var o=Ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tc(this,n)}}function Tc(t,e){return!e||"object"!==kc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ac(t){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xc,Lc,Dc=function(t){return"/api/domain/v2/search/videos?".concat(t,"&with=").concat(a.A.VIDEO_COLLECTION)},jc=function(t){return"/api/domain/v1/search/nav?".concat(t)},Nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rc(t,e)}(i,t);var e,n,r,o=Pc(i);function i(){return Ec(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(t,e,n){var r=this;return this.clearCacheAndGet({callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,null,n)},resource:Dc(t),formatData:function(t){return new Za.a(t.data)},eventPrefix:e.toString()})}},{key:"getDynamicFilters",value:function(t,e){return this.clearCacheAndGet({callback:e,resource:jc(t),formatData:function(t){return new Cc.a(t,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return xo.a.Search}},{key:"channelName",get:function(){return Ao.b.SEARCH}}])&&_c(e.prototype,n),r&&_c(e,r),i}(Po.a);function Ic(t){return(Ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mc(t,e){return(Mc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Uc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hc(t);if(e){var o=Hc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fc(this,n)}}function Fc(t,e){return!e||"object"!==Ic(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hc(t){return(Hc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t[t.IosApp=1]="IosApp",t[t.AndroidApp=2]="AndroidApp",t[t.WinApp=3]="WinApp",t[t.LibraryPublisher=4]="LibraryPublisher",t[t.ExchangeClient=5]="ExchangeClient",t[t.Online=6]="Online",t[t.Tinder=7]="Tinder",t[t.Cloud247=8]="Cloud247",t[t.Livestream=9]="Livestream",t[t.Curator=10]="Curator",t[t.LibraryEditor=11]="LibraryEditor",t[t.Lite=12]="Lite"}(xc||(xc={})),function(t){t[t.ExternalOnly=0]="ExternalOnly",t[t.EmbeddedOnly=1]="EmbeddedOnly"}(Lc||(Lc={}));var zc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mc(t,e)}(u,t);var e,n,o,c=Uc(u);function u(){return Vc(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"getPendingItem",value:function(t,e){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(t),eventPrefix:"pending:item:".concat(t),formatData:function(t){return new r.a.Model(t)},callback:e})}},{key:"getPendingItems",value:function(t){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:t})}},{key:"clearPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"clear:pending:".concat(t.join(",")),callback:e})}},{key:"cancelPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"cancel:pending:".concat(t.join(",")),callback:e})}},{key:"retryPendingItems",value:function(t,e){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"retry:pending:".concat(t.join(",")),callback:e,data:null})}},{key:"completeVideoUploads",value:function(t,e,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:t,customerId:e,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:xc.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n),subtitleOptions:{subtitleExtractOptions:Lc.EmbeddedOnly},autoCaption:n.get("autoCaption")},errorHandler:o.alertService.error(Hr.a.getPhrase(o.lang,"processingError",{videoName:tn.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(t){var e=this,n=t.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:xc.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return e.setAssoc(r,n,t)})),n}},{key:"setAssoc",value:function(t,e,n){var o=n[t];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;e[t]=o.map((function(t){return t.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;e[t]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}},{key:"name",get:function(){return a.g.VideoUpload}},{key:"channelName",get:function(){return a.e.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}}])&&Bc(e.prototype,n),o&&Bc(e,o),u}(Po.a),qc=n(305);function Wc(t){return(Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jc(t,e){return(Jc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zc(t);if(e){var o=Zc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qc(this,n)}}function Qc(t,e){return!e||"object"!==Wc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zc(t){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jc(t,e)}(i,t);var e,n,r,o=Kc(i);function i(){return Yc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"uploadBase64Image",value:function(t,e,n){return this.create({resource:"/api/image/upload?type=".concat(e),eventPrefix:a.f.UPLOAD_IMAGE,data:t,formatData:function(t){return new qc.a(t)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&Gc(e.prototype,n),r&&Gc(e,r),i}(Po.a),Xc=n(151);function tu(t){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ru(t,e){return(ru=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ou(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=au(t);if(e){var o=au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iu(this,n)}}function iu(t,e){return!e||"object"!==tu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function au(t){return(au=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ru(t,e)}(i,t);var e,n,r,o=ou(i);function i(){return eu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Xc.a}}])&&nu(e.prototype,n),r&&nu(e,r),i}(r.a.Collection);function uu(t){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function su(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fu(t,e){return(fu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yu(t);if(e){var o=yu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(t,e){return!e||"object"!==uu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yu(t){return(yu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var du=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fu(t,e)}(i,t);var e,n,r,o=pu(i);function i(){return su(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Xc.b}}])&&lu(e.prototype,n),r&&lu(e,r),i}(r.a.Collection),bu=n(246);function vu(t){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Su(t,e){return(Su=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cu(t);if(e){var o=Cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ou(this,n)}}function Ou(t,e){return!e||"object"!==vu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cu(t){return(Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ku=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(Kn.g.Video,"&status=").concat(bu.a.Pending)},Eu=function(t){return"/api/domain/v1/staffrequests/".concat(t)},_u=function(){return"/api/domain/v1/staffrequests"},Ru=function(t){return"/api/domain/v1/staffrequests/".concat(t,"/messages")},Pu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Su(t,e)}(c,t);var e,n,r,i=wu(c);function c(){return gu(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([Xa.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(t){return this.get({resource:ku(),formatData:function(t){return new cu(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:Xa.a.STAFF_REQUESTS,callback:t})}},{key:"getStaffRequest",value:function(t,e){return this.get({resource:Eu(t),formatData:function(t){return new Xc.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.STAFF_REQUEST_BY_ID,":").concat(t),callback:e})}},{key:"approveStaffRequest",value:function(t,e,n,r){var o={id:t,status:bu.a.Approved,metadata:{destinationLibraryId:e,destinationCategoryId:n}};return this.update({data:o,resource:_u(),eventPrefix:"".concat(Xa.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Xa.a.VIDEOS,Xa.a.STAFF_REQUESTS,Xa.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(t,e,n){var r={id:t,status:bu.a.Rejected,message:e};return this.update({data:r,resource:_u(),eventPrefix:"".concat(Xa.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[Xa.a.STAFF_REQUESTS,Xa.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(t,e){return this.get({resource:Ru(t),formatData:function(t){return new du(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(Xa.a.STAFF_REQUEST_MESSAGES,":").concat(t),callback:e})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&mu(e.prototype,n),r&&mu(e,r),c}(Po.a),Tu=n(227);function Au(t){return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Du(t,e){return(Du=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ju(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Iu(t);if(e){var o=Iu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nu(this,n)}}function Nu(t,e){return!e||"object"!==Au(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Iu(t){return(Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vu=function(t){return"/api/domain/v2/objects/".concat(t,"/tags")},Bu=function(t,e){return"/api/domain/v2/objects/".concat(e,"/videos/").concat(t)},Mu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Du(t,e)}(i,t);var e,n,r,o=ju(i);function i(){return xu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createTag",value:function(t,e,n){if(t&&e)return this.create({resource:Vu(e),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(tn.v.slugify(t)),formatData:function(t){return new Tu.a(t)},invalidationKeys:["".concat(e)],data:{name:t},callback:n})}},{key:"dissociateTag",value:function(t,e,n){if(t&&e)return this.delete({resource:Bu(e,t),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(t),invalidationKeys:["".concat(e)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&Lu(e.prototype,n),r&&Lu(e,r),i}(Po.a),Uu=n(187),Fu=n(155);function Hu(t){return(Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wu(t,e){return(Wu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ju(t);if(e){var o=Ju(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gu(this,n)}}function Gu(t,e){return!e||"object"!==Hu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ju(t){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ku=function(){return"/api/domain/v1/series"},Qu=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(a.A.SERIES)},Zu=function(t){return"/api/domain/v2/objects/".concat(t,"/seasons")},$u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wu(t,e)}(i,t);var e,n,r,o=Yu(i);function i(){return zu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createSeries",value:function(t,e){if(t){var n=tn.v.slugify(t);return this.create({resource:Ku(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(t){return new Uu.a(t)},invalidationKeys:["".concat(n)],data:{name:t},callback:e})}}},{key:"getSeries",value:function(t,e){return this.get({callback:e,expiryTime:a.d.STANDARD,resource:Qu(t),formatData:function(t){return new Uu.a(t)},eventPrefix:"".concat(a.f.SERIES,":").concat(t)})}},{key:"createSeason",value:function(t,e,n){if(t.number&&e)return this.create({data:t,resource:Zu(e),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(e),formatData:function(t){return new Fu.a(t)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&qu(e.prototype,n),r&&qu(e,r),i}(Po.a),Xu=n(462);function ts(t){return(ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function es(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rs(t,e){return(rs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function os(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=as(t);if(e){var o=as(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return is(this,n)}}function is(t,e){return!e||"object"!==ts(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function as(t){return(as=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cs=function(){return"/api/domain/v2/me/ratings"},us=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rs(t,e)}(i,t);var e,n,r,o=os(i);function i(){return es(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getAllRatings",value:function(t){return this.get({resource:cs(),formatData:function(t){return new Xu.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:t})}},{key:"name",get:function(){return g.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&ns(e.prototype,n),r&&ns(e,r),i}(Po.a),ss=n(311),ls=n(184);function fs(t){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hs(t,e){return(hs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ys(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bs(t);if(e){var o=bs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ds(this,n)}}function ds(t,e){return!e||"object"!==fs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bs(t){return(bs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hs(t,e)}(n,t);var e=ys(n);function n(){return ps(this,n),e.apply(this,arguments)}return n}(r.a.Model),gs=n(294);function ms(t){return(ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ws(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Os(t,e){return(Os=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Es(t);if(e){var o=Es(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ks(this,n)}}function ks(t,e){return!e||"object"!==ms(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Es(t){return(Es=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _s,Rs=function(t){return"/api/domain/v2/objects/".concat(t,"/chapters")},Ps=function(t){return"/api/domain/v2/objects/".concat(t)},Ts=function(t){return"/api/domain/v2/objects/".concat(t)},As=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},xs=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},Ls=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Os(t,e)}(c,t);var e,n,r,o=Cs(c);function c(){return Ss(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"clearVideoCache",value:function(t){this.invalidateCache(["".concat(t)])}},{key:"createChapter",value:function(t,e,n,r){if(t&&e&&i.isNumber(n))return this.create({resource:Rs(t),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(tn.v.slugify(e)),formatData:function(t){return new ls.a(t)},invalidationKeys:["".concat(t)],data:{name:e,startTime:n},callback:r})}},{key:"updateChapter",value:function(t,e,n,r,o){if(t&&e&&i.isNumber(n))return this.update({resource:Ps(t),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(t),formatData:function(t){return new ls.a(t)},invalidationKeys:["".concat(t),"".concat(tn.v.slugify(e))],data:{name:e,startTime:n},successHandler:this.alertService.success(o||Hr.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(t,e){if(t)return this.delete({resource:Ts(t),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(t)],callback:e})}},{key:"getConcatenateRequest",value:function(t,e){var n=this;return this.clearCacheAndGet({resource:As(t),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(t),formatData:function(t){return new vs(t,{parse:!0})},callback:function(r){r.get("status")===gs.a.SingleFile&&n.clearVideoCache(t),i.isFunction(e)&&e(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(t,e){return this.create({resource:xs(t),formatData:function(t){return new vs(t)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(t),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(t)],data:null,callback:e})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ws(e.prototype,n),r&&ws(e,r),c}(Po.a);function Ds(t){return(Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function js(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Is(t,e){return(Is=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ms(t);if(e){var o=Ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bs(this,n)}}function Bs(t,e){return!e||"object"!==Ds(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ms(t){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.CollectionPdf="collection_pdf",t.CustomListPdf="custom_list_pdf"}(_s||(_s={}));var Us=function(t){return"/api/domain/v2/export/formats/pdf/types/".concat(t)},Fs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Is(t,e)}(c,t);var e,n,r,o=Vs(c);function c(){return js(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"generateCollectionPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(n),{libraryId:t,collectionId:e});return r&&(c=i.extend({},c,{sortType:tn.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:Us(_s.CollectionPdf),data:c,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(e),successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(r),{title:t,header:e,videoIds:n});return this.create({callback:o,resource:Us(_s.CustomListPdf),data:c,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(t){return{firstName:t.get("givenName"),lastName:t.get("familyName"),countryCode:t.get("countryCode"),userId:t.id,customerId:t.get("customerId"),userEmail:t.get("email")}}},{key:"name",get:function(){return a.g.Export}},{key:"channelName",get:function(){return a.e.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ns(e.prototype,n),r&&Ns(e,r),c}(Po.a),Hs=n(245),zs=n(244);function qs(t){return(qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ys(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gs(t,e){return(Gs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Js(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qs(t);if(e){var o=Qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ks(this,n)}}function Ks(t,e){return!e||"object"!==qs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qs(t){return(Qs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zs,$s=function(t){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(t.join("&videoId="))},Xs=function(t){return"".concat("/api/localcache","/v1/customers/").concat(t,"/devices")},tl=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(t){t[t.MasterObject=0]="MasterObject",t[t.TrackingCode=1]="TrackingCode"}(Zs||(Zs={}));var el=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gs(t,e)}(i,t);var e,n,r,o=Js(i);function i(){return Ws(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getDownloadsForVideos",value:function(t,e){return this.get({resource:$s(t),formatData:function(t){return new zs.a(t)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(t.join(",")),expiryTime:ia.a.STANDARD,callback:e})}},{key:"getDevices",value:function(t,e){return this.get({resource:Xs(t),formatData:function(t){return new Hs.a(t)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:ia.a.STANDARD,callback:e})}},{key:"downloadVideoToLocalCache",value:function(t,e,n){this.create({resource:tl(),data:this.getDownloadVideoData(t,e),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(t,e){return{deviceId:t,videoId:e,videoIdType:Zs.MasterObject,expiresOn:he().add(14,"days")}}},{key:"name",get:function(){return a.g.LocalCache}},{key:"channelName",get:function(){return a.e.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}}])&&Ys(e.prototype,n),r&&Ys(e,r),i}(Po.a);function nl(t){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ol(t,e){return(ol=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function il(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cl(t);if(e){var o=cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return al(this,n)}}function al(t,e){return!e||"object"!==nl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cl(t){return(cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ul=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ol(t,e)}(n,t);var e=il(n);function n(){return rl(this,n),e.apply(this,arguments)}return n}(r.a.Model);function sl(t){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ll(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pl(t,e){return(pl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dl(t);if(e){var o=dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(t,e){return!e||"object"!==sl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dl(t){return(dl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pl(t,e)}(i,t);var e,n,r,o=hl(i);function i(){return ll(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ul}}])&&fl(e.prototype,n),r&&fl(e,r),i}(r.a.Collection);function vl(t){return(vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ml(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sl(t,e){return(Sl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Cl(t);if(e){var o=Cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ol(this,n)}}function Ol(t,e){return!e||"object"!==vl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Cl(t){return(Cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kl=function(t){var e=["type=".concat(Kn.i.RestrictedByAdmin),"objectTypeId=".concat(Kn.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return t&&e.push("page=".concat(t)),"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},El=function(t){var e=["type=".concat(Kn.i.RestrictedByAdmin),"objectTypeId=".concat(Kn.g.Video)],n="";return t&&t.forEach((function(t){return n+="&objectId=".concat(t)})),"/api/domain/v1/restrictedobjects?".concat(e.join("&")).concat(n)},_l=function(){return"/api/domain/v1/restrictedobjects"},Rl=function(t){return"/api/domain/v1/restrictedobjects?objectId=".concat(t,"&objectTypeId=").concat(Kn.g.Video)},Pl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sl(t,e)}(i,t);var e,n,r,o=wl(i);function i(){return gl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getPaginationCursors",value:function(t){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(t))}},{key:"getRestrictedVideos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",e=arguments.length>1?arguments[1]:void 0;return this.get({callback:e,resource:kl(t),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(t)})}},{key:"getVideoRestrictions",value:function(t,e,n){var r=e?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.join(","));return this.get({callback:n,resource:El(t),formatData:function(t){return new bl(t)},expiryTime:ia.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(t,e,n,r,o){var i={groupId:e,objectId:t,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:_l(),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[a.f.RESTRICTED_VIDEOS,a.f.VIDEOS_TO_REVIEW,a.f.RESTRICTED_OBJECTS],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(t,e){this.delete({callback:e,resource:Rl(t),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(a.f.VIDEOS,":restricted"),a.f.RESTRICTED_VIDEOS,a.f.RESTRICTED_OBJECTS,a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"restrictionRemoved"))})}},{key:"name",get:function(){return a.g.RestrictedVideo}},{key:"channelName",get:function(){return a.e.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}}])&&ml(e.prototype,n),r&&ml(e,r),i}(Po.a),Tl=n(228);function Al(t){return(Al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ll(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dl(t,e){return(Dl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Il(t);if(e){var o=Il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nl(this,n)}}function Nl(t,e){return!e||"object"!==Al(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Il(t){return(Il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vl(t){return function(t){if(Array.isArray(t))return Bl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Bl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bl(t,e)}(t)||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 Bl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ml=function(t,e,n,r,o){var i=t.map((function(t){return"libraryId=".concat(t)})),c=[].concat(Vl(i),["from=".concat(e),"to=".concat(n)]);o&&c.push("offset=".concat(o));var u=a.A.HOSTED_VIDEO_COLLECTION;return r&&c.push.apply(c,Vl(r.map((function(t){return"categoryId=".concat(t)})))),"/api/domain/v2/videos/recent?query=".concat(u,"&").concat(c.join("&"))},Ul=function(t,e,n){var r=t.map((function(t){return"libraryId=".concat(t)})),o=[].concat(Vl(r),["from=".concat(e),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Fl=function(){var t=["type=".concat(Kn.i.TermUpdate),"objectTypeId=".concat(Kn.g.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(t.join("&"))},Hl=function(){var t=["type=".concat(Kn.i.TermUpdate),"objectTypeId=".concat(Kn.g.Video)];return"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},zl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dl(t,e)}(c,t);var e,n,r,o=jl(c);function c(){return xl(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.videoMixinService=b.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"getRecentVideos",value:function(t,e){var n=this,r=t.toParams();return this.get({resource:Ml(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:t.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)}})}},{key:"getRecentVideosAllPages",value:function(t,e){var n,r=this,o=t.toParams(),c=new Za.a;this.get({resource:Ml(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString()),callback:function u(s){c.add(s.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Ml(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(t){return new Za.a(t,{parse:!0})},expiryTime:ia.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString(),":").concat(n.next),callback:u}):i.isFunction(e)&&e(c)}})}},{key:"getRecentVideoSubjects",value:function(t,e){var n=t.toParams();return this.get({resource:Ul(n.libraryIds,n.from,n.to),formatData:function(t){return new Tl.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"getVideosToReview",value:function(t){return this.get({callback:t,resource:Fl(),formatData:function(t){return new Za.a(t)},expiryTime:ia.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(t){return this.delete({callback:t,resource:Hl(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"approveAllVideosSuccess"))})}},{key:"name",get:function(){return a.g.ContentUpdates}},{key:"channelName",get:function(){return a.e.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}}])&&Ll(e.prototype,n),r&&Ll(e,r),c}(Po.a);function ql(t){return(ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gl(t,e){return(Gl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ql(t);if(e){var o=Ql(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kl(this,n)}}function Kl(t,e){return!e||"object"!==ql(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ql(t){return(Ql=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gl(t,e)}(c,t);var e,n,o,i=Jl(c);function c(){return Wl(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"createDownloadToken",value:function(t,e){this.create({data:{objectId:t},resource:"/api/downloadproxy/api/tokens",formatData:function(t){return new r.a.Model(t)},eventPrefix:"token:".concat(t),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRetrievalError")),callback:e})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&Yl(e.prototype,n),o&&Yl(e,o),c}(Po.a),$l=n(178);function Xl(t){return(Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ef(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nf(t,e){return(nf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=af(t);if(e){var o=af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return of(this,n)}}function of(t,e){return!e||"object"!==Xl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function af(t){return(af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var cf=function(t){return"/api/domain/v2/objects/".concat(t,"/resources")},uf=function(t){return"/api/domain/v2/objects/".concat(t)},sf=function(t){return"/api/domain/v2/objects/".concat(t)},lf=function(t){return"/api/domain/v2/objects/".concat(t)},ff=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nf(t,e)}(c,t);var e,n,r,o=rf(c);function c(){return tf(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"addResource",value:function(t,e,n){var r=this,o=this.chain();i.each(e,(function(i,c){o.create({resource:cf(t),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(t){return new $l.a(t)},callback:n,data:i,successHandler:c+1===e.length&&r.alertService.success(Hr.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(t,e){return this.get({resource:uf(t),formatData:function(t){return new $l.a(t)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(t),callback:e})}},{key:"updateResource",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:sf(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(t,e,n){var r=this;this.delete({resource:lf(e),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"resourceRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Resource}},{key:"channelName",get:function(){return a.e.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ef(e.prototype,n),r&&ef(e,r),c}(Po.a),pf=n(236);function hf(t){return(hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function df(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bf(t,e){return(bf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mf(t);if(e){var o=mf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gf(this,n)}}function gf(t,e){return!e||"object"!==hf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mf(t){return(mf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sf=function(t){return"/api/domain/v2/objects/".concat(t,"/subtitles")},wf=function(t){return"/api/domain/v2/objects/".concat(t)},Of=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bf(t,e)}(i,t);var e,n,r,o=vf(i);function i(){return yf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addSubtitle",value:function(t,e,n){this.create({resource:Sf(t),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(t){return new pf.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(t,e,n){var r=this;this.delete({resource:wf(e),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"subtitleRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Subtitle}},{key:"channelName",get:function(){return a.e.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&df(e.prototype,n),r&&df(e,r),i}(Po.a),Cf=n(185);function kf(t){return(kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ef(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rf(t,e){return(Rf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Af(t);if(e){var o=Af(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tf(this,n)}}function Tf(t,e){return!e||"object"!==kf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Af(t){return(Af=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xf=function(t){return"/api/domain/v2/objects/".concat(t,"/links")},Lf=function(t){return"/api/domain/v2/objects/".concat(t)},Df=function(t){return"/api/domain/v2/objects/".concat(t)},jf=function(t){return"/api/domain/v2/objects/".concat(t)},Nf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rf(t,e)}(i,t);var e,n,r,o=Pf(i);function i(){return Ef(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addLink",value:function(t,e,n){this.create({resource:xf(t),eventPrefix:a.f.CREATE_LINK,formatData:function(t){return new Cf.a(t)},callback:n,data:e,successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(t,e){return this.get({resource:Lf(t),formatData:function(t){return new Cf.a(t)},eventPrefix:"".concat(a.f.LINK,":").concat(t),callback:e})}},{key:"updateLink",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:Df(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(t,e,n){var r=this;this.delete({resource:jf(e),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Hr.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Hr.a.getPhrase(this.lang,"linkRemoveError"))})}},{key:"name",get:function(){return a.g.Link}},{key:"channelName",get:function(){return a.e.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&_f(e.prototype,n),r&&_f(e,r),i}(Po.a);function If(t){return(If="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bf(t,e){return(Bf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ff(t);if(e){var o=Ff(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(t,e){return!e||"object"!==If(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ff(t){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bf(t,e)}(n,t);var e=Mf(n);function n(){return Vf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function zf(t){return(zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yf(t,e){return(Yf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kf(t);if(e){var o=Kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jf(this,n)}}function Jf(t,e){return!e||"object"!==zf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kf(t){return(Kf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qf=function(){return"/api/domain/v2/people"},Zf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yf(t,e)}(i,t);var e,n,r,o=Gf(i);function i(){return qf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createPerson",value:function(t,e){if(t)return this.create({resource:Qf(),eventPrefix:a.f.CREATE_PERSON,formatData:function(t){return new Hf(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Wf(e.prototype,n),r&&Wf(e,r),i}(Po.a);function $f(t){return($f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tp(t,e){return(tp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ep(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rp(t);if(e){var o=rp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return np(this,n)}}function np(t,e){return!e||"object"!==$f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rp(t){return(rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var op=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tp(t,e)}(n,t);var e=ep(n);function n(){return Xf(this,n),e.apply(this,arguments)}return n}(r.a.Model);function ip(t){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function up(t,e){return(up=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fp(t);if(e){var o=fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){return!e||"object"!==ip(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fp(t){return(fp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pp=function(){return"/api/domain/v2/companies"},hp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&up(t,e)}(i,t);var e,n,r,o=sp(i);function i(){return ap(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createCompany",value:function(t,e){if(t)return this.create({resource:pp(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(t){return new op(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&cp(e.prototype,n),r&&cp(e,r),i}(Po.a);function yp(t){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vp(t,e){return(vp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sp(t);if(e){var o=Sp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mp(this,n)}}function mp(t,e){return!e||"object"!==yp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sp(t){return(Sp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wp=function(t){return"/api/domain/v2/objects/".concat(t)},Op=function(t){return"/api/domain/v2/objects/".concat(t,"/fields")},Cp=function(t){return"/api/domain/v2/objects/".concat(t)},kp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vp(t,e)}(c,t);var e,n,r,o=gp(c);function c(){return dp(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"updateField",value:function(t,e){this.update({resource:wp(t.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(t.id),data:t,callback:e})}},{key:"addField",value:function(t,e,n){var r=i.omit(e,"id");this.create({resource:Op(t),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(t,e){this.delete({resource:Cp(t),eventPrefix:a.f.DELETE_FIELD,callback:e})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&bp(e.prototype,n),r&&bp(e,r),c}(Po.a);var Ep=n(221),_p=n(693),Rp=n.n(_p),Pp=n(160),Tp=n(694),Ap=n.n(Tp);function xp(t){return(xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Lp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dp(t,e){return(Dp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ip(t);if(e){var o=Ip(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Np(this,n)}}function Np(t,e){return!e||"object"!==xp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ip(t){return(Ip=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dp(t,e)}(i,t);var e,n,r,o=jp(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Ap.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Lp(e.prototype,n),r&&Lp(e,r),i}(r.a.Component),Bp=n(628),Mp=n(240),Up=n(44),Fp=n(161),Hp=n.n(Fp),zp=n(695),qp=n.n(zp);function Wp(t){return(Wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jp(t,e){return(Jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zp(t);if(e){var o=Zp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qp(this,n)}}function Qp(t,e){return!e||"object"!==Wp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zp(t){return(Zp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jp(t,e)}(i,t);var e,n,r,o=Kp(i);function i(){return Yp(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,Up.a.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(Hp.a.dragOver)}},{key:"onDragOver",value:function(t){this.locked||Mp.a.isFileDrag(t)&&(this.$el.addClass(Hp.a.dragOver),t.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(Hp.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(qp()({styles:Hp.a,fileDropText:Hr.a.getPhrase(this.lang,"fileDrop")}))}},{key:"events",get:function(){var t,e,n,r="dragleave .".concat(Hp.a.dropArea);return n="onDragLeave",(e=r)in(t={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}}])&&Gp(e.prototype,n),r&&Gp(e,r),i}(r.a.Behavior),Xp=n(736),th=n(737),eh=n(135),nh=n(99),rh=n(309),oh=n(732),ih=n.n(oh),ah=n(733),ch=n.n(ah);function uh(t){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lh(t,e){return(lh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=hh(t);if(e){var o=hh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ph(this,n)}}function ph(t,e){return!e||"object"!==uh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function hh(t){return(hh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lh(t,e)}(u,t);var e,n,o,c=fh(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=b.a.getInstance(a.g.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(a.e.LIBRARY,"library:created",this.render),this.listenTo(a.e.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(rh.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"onRoute",value:function(){r.a.AppLinkHelper.getCurrentAppLink().application===a.b.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink();if(t.application!==a.b.MIGRATION_WIZARD)return!1;var e=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.REMIGRATE_VIDEO,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.MIGRATION_ERRORS];return!i.contains(e,t.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var t=this.getUI("makeAvailable");t instanceof jQuery&&t.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(t){return t.get("status")!==nh.a.Draft}))||ln.a.isPublishingLibraries(this.customerMetadata)||ln.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var t=this.isDisabled();return{styles:ih.a,disabled:t}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return ch.a}},{key:"behaviors",get:function(){return[{behaviorClass:eh.a,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:a.a.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"requiredResources",get:function(){return{libraries:Ua.b.libraries}}}])&&sh(e.prototype,n),o&&sh(e,o),u}(r.a.View),dh=n(47);function bh(t){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mh(t,e,n){return(mh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ch(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Sh(t,e){return(Sh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ch(t);if(e){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function Oh(t,e){return!e||"object"!==bh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ch(t){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sh(t,e)}(u,t);var e,n,o,c=wh(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,o=[{key:"getCacheKey",value:function(t){var e="".concat(this.name),n=i.omit(t,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(t){r.push("".concat(t,":").concat(n[t]))})),r.length&&(r.sort(),e+=":".concat(r.join(":"))),e}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,Up.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,Up.a.FILES_ADDED,this.onFilesAdded),this.configDataService=b.a.getInstance(g.a.Config,this),this.videoUploadService=b.a.getInstance(g.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=b.a.getInstance(g.a.MigrationVideo,this)}},{key:"regions",value:function(){var t;return vh(t={},a.n.TOP_BANNER,".top-banner-region"),vh(t,a.n.POPUP,".popup-region"),vh(t,a.n.TOP_NAV,".top-nav-region"),vh(t,a.n.CONTENT,".content-region"),vh(t,a.n.LEFT_NAV,".left-nav-region"),vh(t,a.n.PAGE_HEADER,".page-header-region"),vh(t,a.n.ALERT,".alert-region"),vh(t,a.n.PAGE_FOOTER,".page-footer-region"),vh(t,a.n.HIDDEN,".hidden-region"),t}},{key:"onFilesSelected",value:function(t,e){this.videoUploadService.addFiles(t),this.logAction(t,e)}},{key:"logAction",value:function(t,e){var n={actionType:Oe.UserAction.Upload,entity:Oe.EntityType.Video,location:Oe.LocationContext.VideoUpload,workflowPhase:Oe.WorkflowPhase.Start,descriptor:T.a.mapInteractionType(e)};T.a.logUserAction(t,n)}},{key:"onFilesAdded",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=t.application===a.b.LIBRARY_EDITOR&&t.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};e&&(n.params={folderId:t.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var t=Pp.contentBox;return this.options.showLeftNav&&(t+=" ".concat(Pp.leftNavContentBox)),t}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(t){this.options=i.extend({},this.defaults,t),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var t=this.getRegion(a.n.CONTENT).currentView;t?t.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new yh({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new Xp.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new th.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var t=this.configDataService.getVersion();t&&this.showChildView(a.n.PAGE_FOOTER,new Vp({version:t}))}},{key:"showChildView",value:function(t,e,n){t===a.n.CONTENT&&$(window).scrollTop(0),mh(Ch(u.prototype),"showChildView",this).call(this,t,e,n)}},{key:"handleNoIntercom",value:function(){var t=this.migrationVideoDataService.getCustomerMetadata();t&&t.get("customerMeta")!==dh.a.LibraryPublished&&this.getUI("alertRegion").removeClass(Pp.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:Pp,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(a.n.POPUP),"empty",this.onPopupRegionEmpty)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return Rp.a}},{key:"className",get:function(){return Pp.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Bp.a,channelName:this.channelName},{behaviorClass:$p,channelName:this.channelName}]}}])&&gh(e.prototype,n),o&&gh(e,o),u}(r.a.LayoutView);var Eh=n(43);function _h(t){return(_h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ph(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Th(t,e){return(Th=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ah(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lh(t);if(e){var o=Lh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xh(this,n)}}function xh(t,e){return!e||"object"!==_h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lh(t){return(Lh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Th(t,e)}(u,t);var e,n,a,c=Ah(u);function u(){return Rh(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Ao.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Ao.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(t,e){e.isAppRoute&&this.setSearchContext(t)}},{key:"onTypeaheadToggle",value:function(t){if(!t.open&&!this.searchContext.get("filterValue")){var e=Xe.a.getCurrentContext().appLink;this.setSearchContext(e)}}},{key:"setSearchContext",value:function(t){var e=this.isValidSearchContext(t);e?this.updateSearchContext(e,t.args):this.inSearchView(t)||o.Radio.channel(Ao.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(t,e){t.appLink.args=e,this.searchContext.set(t),t.setFilterValue(t,this)}},{key:"setFilterValue",value:function(t){var e={filterValue:t,title:t};this.searchContext.set(e)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(t){return this.appVariables||(this.appVariables=b.a.getInstance(Eh.a.SEARCH,this)),i.find((e=this.lang,n=this.appVariables.appLinks,o=[],n.folder&&o.push({appLink:n.folder,searchTag:Hr.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:function(t,e){b.a.getInstance(xo.a.Library,e).getFolder(i.first(t.appLink.args).toString(),(function(t){e.setFilterValue(t.get("name")),b.a.releaseInstance(xo.a.Library)}))}}),n.series&&o.push({appLink:n.series,searchTag:Hr.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:function(t,e){b.a.getInstance(xo.a.Series,e).getSeries(i.first(t.appLink.args).toString(),(function(t){var n=t instanceof r.a.Model?t.get("name"):t.name;e.setFilterValue(n),b.a.releaseInstance(xo.a.Series)}))}}),o),(function(e){return t.application===e.appLink.application&&t.action===e.appLink.action}));var e,n,o}},{key:"inSearchView",value:function(t){var e=this.appVariables.appLinks.searchResults;return t.application===e.application&&t.action===e.action}},{key:"name",get:function(){return xo.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Ph(e.prototype,n),a&&Ph(e,a),u}(r.a.Service),jh=n(241);function Nh(t){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ih(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vh(t,e){return(Vh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Bh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uh(t);if(e){var o=Uh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mh(this,n)}}function Mh(t,e){return!e||"object"!==Nh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uh(t){return(Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fh,Hh,zh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vh(t,e)}(i,t);var e,n,r,o=Bh(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return e=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=b.a.getInstance(xo.a.Notification,this),this.notificationSocketService=b.a.getInstance(xo.a.NotificationSocket,this),this.userDataService=b.a.getInstance(xo.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var t=To.a.NOTIFICATIONS;this.listenTo(Ao.b.NOTIFICATIONS_SOCKET,"".concat(t,":new:sync"),this.addNewNotification),this.listenTo(Ao.b.NOTIFICATIONS_SOCKET,"".concat(t,":count:sync"),this.updateUnreadCount),this.listenTo(Ao.b.NOTIFICATIONS,"".concat(t,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Ao.a.NOTIFICATIONS,jh.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(t){var e=this;this.userDataService.getCurrentUser((function(n){e.notificationDataService.getNotifications(n.id,null,To.a.NOTIFICATIONS,(function(e){e.add(t,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=k.a.get(To.a.NOTIFICATIONS);e.set("unreadCount",t)}},{key:"getNotifications",value:function(t,e,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,t,e.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),k.a.get(To.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(t){this.notificationDataService.markRead(t)}},{key:"getNotificationsCursors",value:function(t){return this.notificationDataService.getNotificationsCursors(t.toString())}},{key:"name",get:function(){return xo.b.Notification}}])&&Ih(e.prototype,n),r&&Ih(e,r),i}(r.a.Service),qh=n(54),Wh=n(87),Yh=n(734),Gh=n(8),Jh=(Fh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}Fh(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Kh=function(t){function e(e){var n=t.call(this)||this;return n.logger=e,n}return Jh(e,t),e.prototype.send=function(t){var e=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new qh.a):t.method?t.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(t.method,t.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=t.headers;i&&Object.keys(i).forEach((function(t){o.setRequestHeader(t,i[t])})),t.responseType&&(o.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){o.abort(),r(new qh.a)}),t.timeout&&(o.timeout=t.timeout),o.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Wh.b(o.status,o.statusText,o.response||o.responseText)):r(new qh.b(o.statusText,o.status))},o.onerror=function(){e.logger.log(Gh.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new qh.b(o.statusText,o.status))},o.ontimeout=function(){e.logger.log(Gh.a.Warning,"Timeout from HTTP request."),r(new qh.c)},o.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e}(Wh.a),Qh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zh=function(t){function e(e){var n=t.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Kh(e):n.httpClient=new Yh.a(e),n}return Qh(e,t),e.prototype.send=function(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new qh.a):t.method?t.url?this.httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e.prototype.getCookieString=function(t){return this.httpClient.getCookieString(t)},e}(Wh.a),$h=n(735);!function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(Hh||(Hh={}));var Xh,ty=n(21),ey=function(){function t(){this.observers=[]}return t.prototype.next=function(t){for(var e=0,n=this.observers;e<n.length;e++){n[e].next(t)}},t.prototype.error=function(t){for(var e=0,n=this.observers;e<n.length;e++){var r=n[e];r.error&&r.error(t)}},t.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var n=e[t];n.complete&&n.complete()}},t.prototype.subscribe=function(t){return this.observers.push(t),new ty.d(this,t)},t}(),ny=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ry=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"}(Xh||(Xh={}));var oy,iy,ay=function(){function t(t,e,n,r){var o=this;ty.a.isRequired(t,"connection"),ty.a.isRequired(e,"logger"),ty.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=e,this.protocol=n,this.connection=t,this.reconnectPolicy=r,this.handshakeProtocol=new $h.a,this.connection.onreceive=function(t){return o.processIncomingData(t)},this.connection.onclose=function(t){return o.connectionClosed(t)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Xh.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Hh.Ping})}return t.create=function(e,n,r,o){return new t(e,n,r,o)},Object.defineProperty(t.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(t){if(this.connectionState!==Xh.Disconnected&&this.connectionState!==Xh.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t},enumerable:!0,configurable:!0}),t.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},t.prototype.startWithStateTransitions=function(){return ny(this,void 0,void 0,(function(){var t;return ry(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Xh.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Xh.Connecting,this.logger.log(Gh.a.Debug,"Starting HubConnection."),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return e.sent(),this.connectionState=Xh.Connected,this.connectionStarted=!0,this.logger.log(Gh.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return t=e.sent(),this.connectionState=Xh.Disconnected,this.logger.log(Gh.a.Debug,"HubConnection failed to start successfully because of error '"+t+"'."),[2,Promise.reject(t)];case 4:return[2]}}))}))},t.prototype.startInternal=function(){return ny(this,void 0,void 0,(function(){var t,e,n,r=this;return ry(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,t=new Promise((function(t,e){r.handshakeResolver=t,r.handshakeRejecter=e})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),e={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Gh.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(e))];case 3:return o.sent(),this.logger.log(Gh.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,t];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Gh.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},t.prototype.stop=function(){return ny(this,void 0,void 0,(function(){var t;return ry(this,(function(e){switch(e.label){case 0:return t=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:e.sent(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,t];case 3:return e.sent(),[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))},t.prototype.stopInternal=function(t){return this.connectionState===Xh.Disconnected?(this.logger.log(Gh.a.Debug,"Call to HubConnection.stop("+t+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Xh.Disconnecting?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Xh.Disconnecting,this.logger.log(Gh.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Gh.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=t||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(t)))},t.prototype.stream=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],c=i[1],u=this.createStreamInvocation(t,n,c),s=new ey;return s.cancelCallback=function(){var t=e.createCancelInvocation(u.invocationId);return delete e.callbacks[u.invocationId],o.then((function(){return e.sendWithProtocol(t)}))},this.callbacks[u.invocationId]=function(t,e){e?s.error(e):t&&(t.type===Hh.Completion?t.error?s.error(new Error(t.error)):s.complete():s.next(t.item))},o=this.sendWithProtocol(u).catch((function(t){s.error(t),delete e.callbacks[u.invocationId]})),this.launchStreams(a,o),s},t.prototype.sendMessage=function(t){return this.resetKeepAliveInterval(),this.connection.send(t)},t.prototype.sendWithProtocol=function(t){return this.sendMessage(this.protocol.writeMessage(t))},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.replaceStreamingParams(e),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(t,e,!0,i));return this.launchStreams(o,a),a},t.prototype.invoke=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],c=this.createInvocation(t,n,!1,a),u=new Promise((function(t,n){e.callbacks[c.invocationId]=function(e,r){r?n(r):e&&(e.type===Hh.Completion?e.error?n(new Error(e.error)):t(e.result):n(new Error("Unexpected message type: "+e.type)))};var r=e.sendWithProtocol(c).catch((function(t){n(t),delete e.callbacks[c.invocationId]}));e.launchStreams(i,r)}));return u},t.prototype.on=function(t,e){t&&e&&(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},t.prototype.off=function(t,e){if(t){t=t.toLowerCase();var n=this.methods[t];if(n)if(e){var r=n.indexOf(e);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[t])}else delete this.methods[t]}},t.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},t.prototype.onreconnecting=function(t){t&&this.reconnectingCallbacks.push(t)},t.prototype.onreconnected=function(t){t&&this.reconnectedCallbacks.push(t)},t.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var e=0,n=this.protocol.parseMessages(t,this.logger);e<n.length;e++){var r=n[e];switch(r.type){case Hh.Invocation:this.invokeClientMethod(r);break;case Hh.StreamItem:case Hh.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===Hh.Completion&&delete this.callbacks[r.invocationId],o(r));break;case Hh.Ping:break;case Hh.Close:this.logger.log(Gh.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Gh.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},t.prototype.processHandshakeResponse=function(t){var e,n,r;try{r=(e=this.handshakeProtocol.parseHandshakeResponse(t))[0],n=e[1]}catch(t){var o="Error parsing handshake response: "+t;this.logger.log(Gh.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Gh.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Gh.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},t.prototype.resetKeepAliveInterval=function(){var t=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return ny(t,void 0,void 0,(function(){return ry(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Xh.Connected)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return t.sent(),[3,4];case 3:return t.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},t.prototype.resetTimeoutPeriod=function(){var t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return t.serverTimeout()}),this.serverTimeoutInMilliseconds))},t.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},t.prototype.invokeClientMethod=function(t){var e=this,n=this.methods[t.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(e,t.arguments)}))}catch(e){this.logger.log(Gh.a.Error,"A callback for the method "+t.target.toLowerCase()+" threw error '"+e+"'.")}if(t.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Gh.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Gh.a.Warning,"No client method with the name '"+t.target+"' found.")},t.prototype.connectionClosed=function(t){this.logger.log(Gh.a.Debug,"HubConnection.connectionClosed("+t+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||t||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Xh.Disconnecting?this.completeClose(t):this.connectionState===Xh.Connected&&this.reconnectPolicy?this.reconnect(t):this.connectionState===Xh.Connected&&this.completeClose(t)},t.prototype.completeClose=function(t){var e=this;if(this.connectionStarted){this.connectionState=Xh.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(e,[t])}))}catch(e){this.logger.log(Gh.a.Error,"An onclose callback called with error '"+t+"' threw error '"+e+"'.")}}},t.prototype.reconnect=function(t){return ny(this,void 0,void 0,(function(){var e,n,r,o,i,a=this;return ry(this,(function(c){switch(c.label){case 0:if(e=Date.now(),n=0,r=void 0!==t?t:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Gh.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(t),[2];if(this.connectionState=Xh.Reconnecting,t?this.logger.log(Gh.a.Information,"Connection reconnecting because of error '"+t+"'."):this.logger.log(Gh.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(e){return e.apply(a,[t])}))}catch(e){this.logger.log(Gh.a.Error,"An onreconnecting callback called with error '"+t+"' threw error '"+e+"'.")}if(this.connectionState!==Xh.Reconnecting)return this.logger.log(Gh.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}c.label=1;case 1:return null===o?[3,7]:(this.logger.log(Gh.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(t){a.reconnectDelayHandle=setTimeout(t,o)}))]);case 2:if(c.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Xh.Reconnecting)return this.logger.log(Gh.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(c.sent(),this.connectionState=Xh.Connected,this.logger.log(Gh.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(t){return t.apply(a,[a.connection.connectionId])}))}catch(t){this.logger.log(Gh.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+t+"'.")}return[2];case 5:return i=c.sent(),this.logger.log(Gh.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Xh.Reconnecting?(this.logger.log(Gh.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-e,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Gh.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-e)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},t.prototype.getNextRetryDelay=function(t,e,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:t,retryReason:n})}catch(n){return this.logger.log(Gh.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+t+", "+e+") threw error '"+n+"'."),null}},t.prototype.cancelCallbacksWithError=function(t){var e=this.callbacks;this.callbacks={},Object.keys(e).forEach((function(n){(0,e[n])(null,t)}))},t.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},t.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},t.prototype.createInvocation=function(t,e,n,r){if(n)return{arguments:e,streamIds:r,target:t,type:Hh.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:e,invocationId:o.toString(),streamIds:r,target:t,type:Hh.Invocation}},t.prototype.launchStreams=function(t,e){var n=this;if(0!==t.length){e||(e=Promise.resolve());var r=function(r){t[r].subscribe({complete:function(){e=e.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(t){var o;o=t instanceof Error?t.message:t&&t.toString?t.toString():"Unknown error",e=e.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(t){e=e.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,t))}))}})};for(var o in t)r(o)}},t.prototype.replaceStreamingParams=function(t){for(var e=[],n=[],r=0;r<t.length;r++){var o=t[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,e[i]=o,n.push(i.toString()),t.splice(r,1)}}return[e,n]},t.prototype.isObservable=function(t){return t&&t.subscribe&&"function"==typeof t.subscribe},t.prototype.createStreamInvocation=function(t,e,n){var r=this.invocationId;return this.invocationId++,{arguments:e,invocationId:r.toString(),streamIds:n,target:t,type:Hh.StreamInvocation}},t.prototype.createCancelInvocation=function(t){return{invocationId:t,type:Hh.CancelInvocation}},t.prototype.createStreamItemMessage=function(t,e){return{invocationId:t,item:e,type:Hh.StreamItem}},t.prototype.createCompletionMessage=function(t,e,n){return e?{error:e,invocationId:t,type:Hh.Completion}:{invocationId:t,result:n,type:Hh.Completion}},t}(),cy=[0,2e3,1e4,3e4,null],uy=function(){function t(t){this.retryDelays=void 0!==t?t.concat([null]):cy}return t.prototype.nextRetryDelayInMilliseconds=function(t){return this.retryDelays[t.previousRetryCount]},t}();!function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(oy||(oy={})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(iy||(iy={}));var sy=function(){function t(){this.isAborted=!1,this.onabort=null}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}(),ly=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},fy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},py=function(){function t(t,e,n,r){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.pollAbort=new sy,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(t.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),t.prototype.connect=function(t,e){return ly(this,void 0,void 0,(function(){var n,r,o,i;return fy(this,(function(a){switch(a.label){case 0:if(ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.url=t,this.logger.log(Gh.a.Trace,"(LongPolling transport) Connecting."),e===iy.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},e===iy.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=t+"&_="+Date.now(),this.logger.log(Gh.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Gh.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new qh.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},t.prototype.getAccessToken=function(){return ly(this,void 0,void 0,(function(){return fy(this,(function(t){switch(t.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,null]}}))}))},t.prototype.updateHeaderToken=function(t,e){t.headers||(t.headers={}),e?t.headers.Authorization="Bearer "+e:t.headers.Authorization&&delete t.headers.Authorization},t.prototype.poll=function(t,e){return ly(this,void 0,void 0,(function(){var n,r,o,i;return fy(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(e,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=t+"&_="+Date.now(),this.logger.log(Gh.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,e)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Gh.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Gh.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new qh.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Gh.a.Trace,"(LongPolling transport) data received. "+Object(ty.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof qh.c?this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Gh.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Gh.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},t.prototype.send=function(t){return ly(this,void 0,void 0,(function(){return fy(this,(function(e){return this.running?[2,Object(ty.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return ly(this,void 0,void 0,(function(){var t,e;return fy(this,(function(n){switch(n.label){case 0:this.logger.log(Gh.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Gh.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.getAccessToken()];case 3:return e=n.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 4:return n.sent(),this.logger.log(Gh.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Gh.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},t.prototype.raiseOnClose=function(){if(this.onclose){var t="(LongPolling transport) Firing onclose event.";this.closeError&&(t+=" Error: "+this.closeError),this.logger.log(Gh.a.Trace,t),this.onclose(this.closeError)}},t}(),hy=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},yy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},dy=function(){function t(t,e,n,r,o){this.httpClient=t,this.accessTokenFactory=e,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return hy(this,void 0,void 0,(function(){var n,r=this;return yy(this,(function(o){switch(o.label){case 0:return ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.logger.log(Gh.a.Trace,"(SSE transport) Connecting."),this.url=t,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(e===iy.Text){var a;if(ty.c.isBrowser||ty.c.isWebWorker)a=new r.eventSourceConstructor(t,{withCredentials:!0});else{var c=r.httpClient.getCookieString(t);a=new r.eventSourceConstructor(t,{withCredentials:!0,headers:{Cookie:c}})}try{a.onmessage=function(t){if(r.onreceive)try{r.logger.log(Gh.a.Trace,"(SSE transport) data received. "+Object(ty.f)(t.data,r.logMessageContent)+"."),r.onreceive(t.data)}catch(t){return void r.close(t)}},a.onerror=function(t){var e=new Error(t.data||"Error occurred");i?r.close(e):o(e)},a.onopen=function(){r.logger.log(Gh.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(t){return void o(t)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},t.prototype.send=function(t){return hy(this,void 0,void 0,(function(){return yy(this,(function(e){return this.eventSource?[2,Object(ty.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},t.prototype.stop=function(){return this.close(),Promise.resolve()},t.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(t))},t}(),by=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},vy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},gy=function(){function t(t,e,n,r,o){this.logger=n,this.accessTokenFactory=e,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=t,this.onreceive=null,this.onclose=null}return t.prototype.connect=function(t,e){return by(this,void 0,void 0,(function(){var n,r=this;return vy(this,(function(o){switch(o.label){case 0:return ty.a.isRequired(t,"url"),ty.a.isRequired(e,"transferFormat"),ty.a.isIn(e,iy,"transferFormat"),this.logger.log(Gh.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;t=t.replace(/^http/,"ws");var a=r.httpClient.getCookieString(t),c=!1;ty.c.isNode&&a&&(i=new r.webSocketConstructor(t,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(t)),e===iy.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(e){r.logger.log(Gh.a.Information,"WebSocket connected to "+t+"."),r.webSocket=i,c=!0,n()},i.onerror=function(t){var e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:new Error("There was an error with the transport."),o(e)},i.onmessage=function(t){r.logger.log(Gh.a.Trace,"(WebSockets transport) data received. "+Object(ty.f)(t.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(t.data)},i.onclose=function(t){if(c)r.close(t);else{var e=null;e="undefined"!=typeof ErrorEvent&&t instanceof ErrorEvent?t.error:new Error("There was an error with the transport."),o(e)}}}))]}}))}))},t.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Gh.a.Trace,"(WebSockets transport) sending data. "+Object(ty.f)(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},t.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},t.prototype.close=function(t){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Gh.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!t||!1!==t.wasClean&&1e3===t.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+t.code+" ("+t.reason+").")))},t}(),my=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Sy=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},wy=null,Oy=null;if(ty.c.isNode){var Cy=require;wy=Cy("ws"),Oy=Cy("eventsource")}var ky=function(){function t(t,e){void 0===e&&(e={}),this.features={},this.negotiateVersion=1,ty.a.isRequired(t,"url"),this.logger=Object(ty.e)(e.logger),this.baseUrl=this.resolveUrl(t),(e=e||{}).logMessageContent=e.logMessageContent||!1,ty.c.isNode||"undefined"==typeof WebSocket||e.WebSocket?ty.c.isNode&&!e.WebSocket&&wy&&(e.WebSocket=wy):e.WebSocket=WebSocket,ty.c.isNode||"undefined"==typeof EventSource||e.EventSource?ty.c.isNode&&!e.EventSource&&void 0!==Oy&&(e.EventSource=Oy):e.EventSource=EventSource,this.httpClient=e.httpClient||new Zh(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=e,this.onreceive=null,this.onclose=null}return t.prototype.start=function(t){return my(this,void 0,void 0,(function(){var e;return Sy(this,(function(n){switch(n.label){case 0:return t=t||iy.Binary,ty.a.isIn(t,iy,"transferFormat"),this.logger.log(Gh.a.Debug,"Starting connection with transfer format '"+iy[t]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(t),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(e="Failed to start the HttpConnection before stop() was called.",this.logger.log(Gh.a.Error,e),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(e))];case 3:if("Connected"!==this.connectionState)return e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Gh.a.Error,e),[2,Promise.reject(new Error(e))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},t.prototype.send=function(t){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Ey(this.transport)),this.sendQueue.send(t))},t.prototype.stop=function(t){return my(this,void 0,void 0,(function(){var e=this;return Sy(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Gh.a.Debug,"Call to HttpConnection.stop("+t+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(t){e.stopPromiseResolver=t})),[4,this.stopInternal(t)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},t.prototype.stopInternal=function(t){return my(this,void 0,void 0,(function(){var e;return Sy(this,(function(n){switch(n.label){case 0:this.stopError=t,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return e=n.sent(),this.logger.log(Gh.a.Error,"HttpConnection.transport.stop() threw error '"+e+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Gh.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},t.prototype.startInternal=function(t){return my(this,void 0,void 0,(function(){var e,n,r,o,i,a;return Sy(this,(function(c){switch(c.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==oy.WebSockets?[3,3]:(this.transport=this.constructTransport(oy.WebSockets),[4,this.startTransport(e,t)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var t;return Sy(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(e)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(e=n.url),n.accessToken&&(t=n.accessToken,i.accessTokenFactory=function(){return t}),r++,[2]}}))},i=this,c.label=6;case 6:return[5,o()];case 7:c.sent(),c.label=8;case 8:if(n.url&&r<100)return[3,6];c.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,n,t)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof py&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Gh.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=c.sent(),this.logger.log(Gh.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},t.prototype.getNegotiationResponse=function(t){return my(this,void 0,void 0,(function(){var e,n,r,o,i,a,c;return Sy(this,(function(u){switch(u.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=u.sent())&&((e={}).Authorization="Bearer "+r,n=e),u.label=2;case 2:o=this.resolveNegotiateUrl(t),this.logger.log(Gh.a.Debug,"Sending negotiation request: "+o+"."),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=u.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return c=u.sent(),this.logger.log(Gh.a.Error,"Failed to complete negotiation with the server: "+c),[2,Promise.reject(c)];case 6:return[2]}}))}))},t.prototype.createConnectUrl=function(t,e){return e?t+(-1===t.indexOf("?")?"?":"&")+"id="+e:t},t.prototype.createTransport=function(t,e,n,r){return my(this,void 0,void 0,(function(){var o,i,a,c,u,s,l,f,p,h,y;return Sy(this,(function(d){switch(d.label){case 0:return o=this.createConnectUrl(t,n.connectionToken),this.isITransport(e)?(this.logger.log(Gh.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.startTransport(o,r)]):[3,2];case 1:return d.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],c=n,u=0,s=a,d.label=3;case 3:return u<s.length?(l=s[u],(f=this.resolveTransportOrError(l,e,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,c)return[3,9];d.label=5;case 5:return d.trys.push([5,7,,8]),[4,this.getNegotiationResponse(t)];case 6:return c=d.sent(),[3,8];case 7:return p=d.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(t,c.connectionToken),d.label=9;case 9:return d.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return d.sent(),this.connectionId=c.connectionId,[2];case 11:return h=d.sent(),this.logger.log(Gh.a.Error,"Failed to start the transport '"+l.transport+"': "+h),c=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(y="Failed to select transport before stop() was called.",this.logger.log(Gh.a.Debug,y),[2,Promise.reject(new Error(y))]):[3,12];case 12:return u++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},t.prototype.constructTransport=function(t){switch(t){case oy.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new gy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case oy.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new dy(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case oy.LongPolling:return new py(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.startTransport=function(t,e){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return n.stopConnection(t)},this.transport.connect(t,e)},t.prototype.resolveTransportOrError=function(t,e,n){var r=oy[t.transport];if(null==r)return this.logger.log(Gh.a.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+t.transport+"' because it is not supported by this client.");if(!function(t,e){return!t||0!=(e&t)}(e,r))return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it was disabled by the client."),new Error("'"+oy[r]+"' is disabled by the client.");if(!(t.transferFormats.map((function(t){return iy[t]})).indexOf(n)>=0))return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it does not support the requested transfer format '"+iy[n]+"'."),new Error("'"+oy[r]+"' does not support "+iy[n]+".");if(r===oy.WebSockets&&!this.options.WebSocket||r===oy.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Gh.a.Debug,"Skipping transport '"+oy[r]+"' because it is not supported in your environment.'"),new Error("'"+oy[r]+"' is not supported in your environment.");this.logger.log(Gh.a.Debug,"Selecting transport '"+oy[r]+"'.");try{return this.constructTransport(r)}catch(t){return t}},t.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},t.prototype.stopConnection=function(t){var e=this;if(this.logger.log(Gh.a.Debug,"HttpConnection.stopConnection("+t+") called while in state "+this.connectionState+"."),this.transport=void 0,t=this.stopError||t,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),t?this.logger.log(Gh.a.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(Gh.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(t){e.logger.log(Gh.a.Error,"TransportSendQueue.stop() threw error '"+t+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(e){this.logger.log(Gh.a.Error,"HttpConnection.onclose("+t+") threw error '"+e+"'.")}}}else this.logger.log(Gh.a.Warning,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Gh.a.Debug,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is already in the disconnected state.")},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!ty.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(Gh.a.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),n=t.substring(0,-1===e?t.length:e);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===e?"":t.substring(e)).indexOf("negotiateVersion")&&(n+=-1===e?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},t}();var Ey=function(){function t(t){this.transport=t,this.buffer=[],this.executing=!0,this.sendBufferedData=new _y,this.transportResult=new _y,this.sendLoopPromise=this.sendLoop()}return t.prototype.send=function(t){return this.bufferData(t),this.transportResult||(this.transportResult=new _y),this.transportResult.promise},t.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},t.prototype.bufferData=function(t){if(this.buffer.length&&typeof this.buffer[0]!=typeof t)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof t);this.buffer.push(t),this.sendBufferedData.resolve()},t.prototype.sendLoop=function(){return my(this,void 0,void 0,(function(){var e,n,r;return Sy(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new _y,e=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):t.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),e.resolve(),[3,5];case 4:return r=o.sent(),e.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},t.concatBuffers=function(t){for(var e=t.map((function(t){return t.byteLength})).reduce((function(t,e){return t+e})),n=new Uint8Array(e),r=0,o=0,i=t;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},t}(),_y=function(){function t(){var t=this;this.promise=new Promise((function(e,n){var r;return r=[e,n],t.resolver=r[0],t.rejecter=r[1],r}))}return t.prototype.resolve=function(){this.resolver()},t.prototype.reject=function(t){this.rejecter(t)},t}(),Ry=n(116),Py=n(125),Ty=function(){function t(){this.name="json",this.version=1,this.transferFormat=iy.Text}return t.prototype.parseMessages=function(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=Ry.a.instance);for(var n=[],r=0,o=Py.a.parse(t);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case Hh.Invocation:this.isInvocationMessage(a);break;case Hh.StreamItem:this.isStreamItemMessage(a);break;case Hh.Completion:this.isCompletionMessage(a);break;case Hh.Ping:case Hh.Close:break;default:e.log(Gh.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},t.prototype.writeMessage=function(t){return Py.a.write(JSON.stringify(t))},t.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},t.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},t.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},t.prototype.assertNotEmptyString=function(t,e){if("string"!=typeof t||""===t)throw new Error(e)},t}(),Ay=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xy={trace:Gh.a.Trace,debug:Gh.a.Debug,info:Gh.a.Information,information:Gh.a.Information,warn:Gh.a.Warning,warning:Gh.a.Warning,error:Gh.a.Error,critical:Gh.a.Critical,none:Gh.a.None};var Ly=function(){function t(){}return t.prototype.configureLogging=function(t){if(ty.a.isRequired(t,"logging"),void 0!==t.log)this.logger=t;else if("string"==typeof t){var e=function(t){var e=xy[t.toLowerCase()];if(void 0!==e)return e;throw new Error("Unknown log level: "+t)}(t);this.logger=new ty.b(e)}else this.logger=new ty.b(t);return this},t.prototype.withUrl=function(t,e){return ty.a.isRequired(t,"url"),this.url=t,this.httpConnectionOptions=Ay({},this.httpConnectionOptions,"object"==typeof e?e:{transport:e}),this},t.prototype.withHubProtocol=function(t){return ty.a.isRequired(t,"protocol"),this.protocol=t,this},t.prototype.withAutomaticReconnect=function(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new uy(t):this.reconnectPolicy=t:this.reconnectPolicy=new uy,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new ky(this.url,t);return ay.create(e,this.logger||Ry.a.instance,this.protocol||new Ty,this.reconnectPolicy)},t}();function Dy(t){return(Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jy(t){return function(t){if(Array.isArray(t))return Ny(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(t,e)}(t)||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 Ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vy(t,e){return(Vy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function By(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uy(t);if(e){var o=Uy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return My(this,n)}}function My(t,e){return!e||"object"!==Dy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uy(t){return(Uy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fy(t){return(Fy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qy(t,e){return(qy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gy(t);if(e){var o=Gy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yy(this,n)}}function Yy(t,e){return!e||"object"!==Fy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gy(t){return(Gy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qy(t,e)}(i,t);var e,n,r,o=Wy(i);function i(){return Hy(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return v.a.Notifications}}])&&zy(e.prototype,n),r&&zy(e,r),i}(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vy(t,e)}(i,t);var e,n,r,o=By(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).subscribeEvent="subscribe",e.reconnectTimeout=5e3,e.reconnectAttempts=100,e.reconnectTries=0,e.connection=e.createConnection(t),e.authEndpoint=t.authEndpoint,e.setProviderOptions(t),e.attachSocketEvents(),!1===t.lazy&&e.openConnection(),e}return e=i,(n=[{key:"setProviderOptions",value:function(t){t.subscribeEvent&&(this.subscribeEvent=t.subscribeEvent),t.reconnectTimeout&&(this.reconnectTimeout=t.reconnectTimeout),t.reconnectAttempts&&(this.reconnectAttempts=t.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Xh.Connecting),this.connect()}},{key:"connect",value:function(){var t=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(e){return t.start.apply(t,e)}),(function(e){return t.onConnectionError.apply(t,e)}))}},{key:"start",value:function(t){var e=this;return this.connection.invoke(this.subscribeEvent,t.token).then((function(){return e.setConnectionState(Xh.Connected)})).catch((function(t){return e.onConnectionError(t)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var t=this;this.connection.onclose((function(){return t.onConnectionError})),this.connection.onreconnected((function(){return t.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(t){var e=this;t?console.log("Connection Error. Reason: ".concat(t)):console.log("Connection Error."),this.setConnectionState(Xh.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return e.reconnectTries++,e.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(t){var e=new Ly,n=Go.a.removeTrailingSlash(t.endpoint),r="".concat(n,"/hubs/").concat(t.hubName),o={logger:Gh.a.Error};return t.logging&&(o.logger=Gh.a.Debug),e.withUrl(r,o).build()}},{key:"getConnectionToken",value:function(){var t={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(t)}},{key:"setConnectionState",value:function(t){t===Xh.Connected&&console.log("Connected!"),t===Xh.Disconnected&&console.log("Disconnected!"),this.connectionState=t}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===Xh.Connecting||this.connectionState===Xh.Connected||this.connectionState===Xh.Reconnecting}},{key:"create",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"read",value:function(t,e){this.openConnection(),this.subscribe(t,e)}},{key:"update",value:function(t,e,n){this.openConnection(),this.rpc(t,e,n)}},{key:"delete",value:function(t,e){this.openConnection(),this.rpc(t,null,e)}},{key:"parseError",value:function(){return bo.a}},{key:"rpc",value:function(t,e,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.connection.invoke(t,e).then((function(t){return r.trigger.apply(r,[o].concat(jy(t)))})).catch((function(t){return r.trigger.apply(r,[i].concat(jy(t)))}))}},{key:"subscribe",value:function(t,e){var n=e.channel,r=e.successEvent;this.connection.on(t,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];n.trigger.apply(n,[r].concat(e))}))}}])&&Iy(e.prototype,n),r&&Iy(e,r),i}(V.Object)),Ky=n(310),Qy=n(36);function Zy(t){return(Zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xy(t,e){return(Xy=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function td(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nd(t);if(e){var o=nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ed(this,n)}}function ed(t,e){return!e||"object"!==Zy(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nd(t){return(nd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xy(t,e)}(i,t);var e,n,r,o=td(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Hr.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return e=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Hr.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Hr.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&$y(e.prototype,n),r&&$y(e,r),i}(Qy.a);function od(t){return(od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function id(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cd(t,e,n){return(cd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=fd(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ud(t,e){return(ud=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fd(t);if(e){var o=fd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ld(this,n)}}function ld(t,e){return!e||"object"!==od(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fd(t){return(fd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ud(t,e)}(c,t);var e,n,o,i=sd(c);function c(){return id(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"addFiles",value:function(t){var e=this;b.a.getInstance(a.g.Library).getLibraries((function(n){b.a.releaseInstance(a.g.Library),n&&n.length?cd(fd(c.prototype),"addFiles",e).call(e,t):r.a.ErrorHelper.throw(new rd)}))}}])&&ad(e.prototype,n),o&&ad(e,o),c}(Ky.a);function hd(t){return(hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bd(t,e,n){return e&&dd(t.prototype,e),n&&dd(t,n),t}function vd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gd(t,e)}function gd(t,e){return(gd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function md(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wd(t);if(e){var o=wd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sd(this,n)}}function Sd(t,e){return!e||"object"!==hd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wd(t){return(wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Od=function(t){vd(n,t);var e=md(n);function n(){return yd(this,n),e.apply(this,arguments)}return bd(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),Cd=function(t){vd(n,t);var e=md(n);function n(){return yd(this,n),e.apply(this,arguments)}return bd(n,[{key:"model",get:function(){return Od}}]),n}(r.a.Collection),kd=n(124);function Ed(t){return(Ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pd(t,e){return(Pd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Td(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xd(t);if(e){var o=xd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ad(this,n)}}function Ad(t,e){return!e||"object"!==Ed(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xd(t){return(xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ld=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pd(t,e)}(u,t);var e,n,a,c=Td(u);function u(){return _d(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.videoDataService=b.a.getInstance(xo.a.Video,this),this.videoUploadDataService=b.a.getInstance(xo.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(t,e){var n=this;switch(t.get("pendingProcessStatus")){case kd.a.Completed:case kd.a.Error:this.videoUploadDataService.clearPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.updateViewModel(),n.videoDataService.clearVideoCache(),i.isFunction(e)&&e()}));break;case kd.a.Processing:this.videoUploadDataService.cancelPendingItems([t.get("pendingProcessId")],(function(){t.set("clearing",!0),t.collection.remove(t),n.videoDataService.clearVideoCache(),n.updateViewModel(),i.isFunction(e)&&e()}))}}},{key:"forceFetchPendingItems",value:function(t){this.fetchPendingItems(t)}},{key:"retryPendingItem",value:function(t,e){var n=this;this.videoUploadDataService.retryPendingItems([t.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:e})}))}},{key:"itemStatusChanged",value:function(){o.Radio.channel(this.channelName).trigger(Up.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var t=this;return this.pendingItems||(this.pendingItems=new Cd,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(e){e.get("foregroundComplete")&&(t.itemStatusChanged(),e.get("video")&&o.Radio.channel(t.channelName).trigger(Up.a.PENDING_ITEM_READY_TO_WATCH,e))})),this.listenTo(this.pendingItems,"remove",(function(e){e.get("clearing")||t.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),(function(e){e.get("status")===kd.a.Completed&&t.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=i.map(n,(function(t){return t.masterVideoId.toString()})),a=function(r){i.each(n,(function(t){var e=r.get(t.masterVideoId);e&&(t.video=e,t.foregroundProgress>=100&&e.get("status")===nh.a.Processing&&e.set("status",nh.a.Published))})),t.pendingItems.set(n),t.updateViewModel(),e.resetTimeout&&window.setTimeout(i.bind(t.fetchPendingItems,t),t.getTimeoutLength()),i.isFunction(e.callback)&&e.callback()};o.length?t.videoDataService.getVideos(o,a):a(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var t=k.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var e=this.pendingItems.where((function(t){return t.get("pendingProcessStatus")>=0})),n=0;i.each(e,(function(t){return n+=t.get("foregroundProgress")}));var r=100*e.length;t.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==e.length})}else t.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(t){return t.get("pendingProcessStatus")===kd.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return xo.b.PendingItems}},{key:"channelName",get:function(){return Ao.c.PENDING_ITEMS}}])&&Rd(e.prototype,n),a&&Rd(e,a),u}(r.a.Service),Dd=n(101);function jd(t){return(jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Id(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vd(t,e,n){return(Vd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Fd(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Bd(t,e){return(Bd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Md(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fd(t);if(e){var o=Fd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ud(this,n)}}function Ud(t,e){return!e||"object"!==jd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fd(t){return(Fd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Bd(t,e)}(i,t);var e,n,r,o=Md(i);function i(){return Nd(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){Vd(Fd(i.prototype),"initialize",this).call(this),this.alertService=b.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,Up.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(t){var e=t.get("video");if(e){var n=Hr.a.getPhrase(this.lang,"readyToWatch",{videoName:tn.v.escapeExpression(e.get("name"))});Dd.a.isDone(t)||(n+=Hr.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Hr.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:e.get("name")}),message:n,type:Ro.a.Success,appLinkText:Hr.a.getPhrase(this.lang,"goToVideo",{videoName:e.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[e.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&Id(e.prototype,n),r&&Id(e,r),i}(Ld),zd=n(148),qd=n.n(zd),Wd=n(229);function Yd(t){return(Yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kd(t,e){return(Kd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$d(t);if(e){var o=$d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zd(this,n)}}function Zd(t,e){return!e||"object"!==Yd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $d(t){return($d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kd(t,e)}(u,t);var e,n,r,c=Qd(u);function u(){var t;return Gd(this,u),(t=c.apply(this,arguments)).disabledLibraryIds=[],t}return e=u,(n=[{key:"initialize",value:function(){var t=this;this.videoDataService=b.a.getInstance(a.g.Video,this),this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(e){return t.customLibraries=e}))}},{key:"onDragStart",value:function(t,e){var n;this.videos=t,this.collectionIdentifier=e,$("body").addClass(qd.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(t){return!!this.videos&&!i.any(this.videos,(function(e){return e.categories.any((function(e){return e.id===t.id}))}))}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(t){r||(r=t.categories.find((function(t){return t.get("id")===+n.collectionIdentifier.id})),o=t)}));var a=this.videos,c=this.videos.map((function(t){return t.get("id")})),u=1===c.length?o.get("name"):"",s=Wd.a.moveVideoAlert(r.get("name"),t.get("name"),t.get("id"),c.length,u);this.videoDataService.moveVideos(c,t.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(t){return t.collection.remove(t)})),n.logAction(i.map(c,(function(e){return{id:e,newParentId:t.get("id"),oldParentId:r.get("id"),count:c.length}})),e)}),s),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(qd.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var t=this,e=this.customLibraries.find((function(e){return!!tn.f.getModelFromCollection(t.collectionIdentifier.id,e.get("children"))})),n=[];this.videos.forEach((function(t){t.get("libraries").forEach((function(t){t.get("id").toString()!==e.get("id").toString()&&n.push(t.get("id"))}))})),this.disabledLibraryIds=i.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){o.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:Oe.UserAction.Move,entity:Oe.EntityType.Video,descriptor:Oe.InteractionTypeDescriptor.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.VideoDragDrop}},{key:"channelName",get:function(){return a.w.VIDEO_DRAG_DROP}}])&&Jd(e.prototype,n),r&&Jd(e,r),u}(r.a.Service),tb=n(162),eb=n(92),nb=n(195);function rb(t){return(rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ob(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ib(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ab(t,e){return(ab=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=sb(t);if(e){var o=sb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ub(this,n)}}function ub(t,e){return!e||"object"!==rb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sb(t){return(sb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ab(t,e)}(u,t);var e,n,i,c=cb(u);function u(){return ob(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.libraryDataService=b.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"onLibrarySync",value:function(t){this.libraries=t}},{key:"accept",value:function(t){return!(!this.folder||this.isSameFolder(t)||!this.isSameLibrary(t)||this.isParentFolder(t)||this.isChildFolder(t))}},{key:"isSameFolder",value:function(t){return this.folder.id===t.id}},{key:"isSameLibrary",value:function(t){var e=tn.f.getLibrary(this.folder.id,this.libraries),n=tn.f.getLibrary(t.id,this.libraries);return!(!e||!n)&&e.id===n.id}},{key:"isParentFolder",value:function(t){var e=tn.f.getParent(this.folder.id,this.libraries);return!!e&&e.id===t.id}},{key:"isChildFolder",value:function(t){for(var e=tn.f.getModelFromCollection(t.id,this.libraries);e&&e.collection&&e.collection.parent;)if((e=e.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(t){return tn.f.calculateDestinationFolderDepth(this.folder,t.id,this.libraries)>tb.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(t){this.folder=t,$("body").addClass(qd.a.dragging)}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(t))window.setTimeout((function(){r.a.ErrorHelper.throw(new nb.b)}),tb.a.POPUP_FADE_TIMEOUT);else{var a=tn.f.getSelected(eb.a.LIBRARY_EDITOR,i),c=tn.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,t.id,c.id,(function(){a&&tn.f.setSelected(eb.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:t.id,oldParentId:c.id},e)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(qd.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){o.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=T.a.mergeOptions({actionType:Oe.UserAction.Move,entity:Oe.EntityType.Folder,descriptor:Oe.InteractionTypeDescriptor.DragDrop},e);T.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.FolderDragDrop}},{key:"channelName",get:function(){return a.w.FOLDER_DRAG_DROP}}])&&ib(e.prototype,n),i&&ib(e,i),u}(r.a.Service),fb=n(90);function pb(t){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function db(t,e){return(db=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gb(t);if(e){var o=gb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vb(this,n)}}function vb(t,e){return!e||"object"!==pb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gb(t){return(gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&db(t,e)}(u,t);var e,n,r,c=bb(u);function u(){return hb(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=k.a.get(this.viewModelName,{videos:{}},{ctor:Fa.a,storage:{type:fb.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n={};t.forEach((function(t){return n["".concat(t.id,":").concat(e)]={id:t.id.toString(),folderChord:e}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(t){var e={};t.each((function(t){return e["".concat(t.id,":").concat(t.get("chord"))]={id:t.id.toString(),folderChord:t.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),e);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n=t.map((function(t){return"".concat(t.id,":").concat(e)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(t,e){return i.contains(n,e)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var t=this.getSelectedVideos();return i.map(i.keys(t),(function(e){return t[e]&&t[e].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){o.Radio.channel(a.e.MIGRATION).trigger(a.i.MigrationWizard.SELECTED_CHANGED)}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return a.w.SELECTED_VIDEO}}])&&yb(e.prototype,n),r&&yb(e,r),u}(r.a.Service);function Sb(t){return(Sb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ob(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cb(t,e){return(Cb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function kb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_b(t);if(e){var o=_b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eb(this,n)}}function Eb(t,e){return!e||"object"!==Sb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _b(t){return(_b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Rb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cb(t,e)}(i,t);var e,n,r,o=kb(i);function i(){return wb(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(t,e){this.options[t]=e}},{key:"getOption",value:function(t){return this.options[t]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ob(e.prototype,n),r&&Ob(e,r),i}(r.a.Service);function Pb(t){return(Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ab(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xb(t,e){return(xb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Lb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jb(t);if(e){var o=jb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Db(this,n)}}function Db(t,e){return!e||"object"!==Pb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jb(t){return(jb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Nb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xb(t,e)}(c,t);var e,n,r,o=Lb(c);function c(){return Tb(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(t,e){return this.folderChordMap&&!this.collectionUpdated(e)||this.buildFolderChordMap(e),this.folderChordMap[t]}},{key:"buildFolderChordMap",value:function(t){var e=this;this.folderChordMap={},t.each((function t(n){e.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(t)}))}},{key:"collectionUpdated",value:function(t){return!(this.cachedFolderCollectionCid&&t.customCid&&this.cachedFolderCollectionCid===t.customCid||(t.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&Ab(e.prototype,n),r&&Ab(e,r),c}(r.a.Service);function Ib(t){return(Ib="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mb(t,e){return(Mb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ub(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hb(t);if(e){var o=Hb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fb(this,n)}}function Fb(t,e){return!e||"object"!==Ib(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hb(t){return(Hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mb(t,e)}(c,t);var e,n,r,o=Ub(c);function c(){return Vb(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=b.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(t,e,n){this.getAndMixinVideoCollectionRestrictions(t,e,n)}},{key:"mixinVideoData",value:function(t,e){this.getAndMixinVideoRestriction(t,e)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(t,e,n){var r=this;if(t&&t.length){var o=t.map((function(t){return t.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,e,(function(e){t.forEach((function(t){return r.mixinVideoRestriction(t,e)})),i.isFunction(n)&&n(t)}))}else i.isFunction(n)&&n(t)}},{key:"getAndMixinVideoRestriction",value:function(t,e){var n=this;this.restrictedVideoDataService.getVideoRestrictions([t.id],null,(function(r){n.mixinVideoRestriction(t,r),i.isFunction(e)&&e(t)}))}},{key:"mixinLocalCacheDownloads",value:function(t,e){t.unset("localCacheDownloads"),e&&e.findWhere({objectId:t.get("id").toString()})&&t.set("localCacheDownloads",e)}},{key:"mixinVideoRestriction",value:function(t,e){if(t.unset("restrictions"),e){var n=e.findWhere({objectId:t.get("id")});n&&t.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Bb(e.prototype,n),r&&Bb(e,r),c}(r.a.Service),qb=n(25);function Wb(t){return(Wb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gb(t,e){return(Gb=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jb(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qb(t);if(e){var o=Qb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kb(this,n)}}function Kb(t,e){return!e||"object"!==Wb(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qb(t){return(Qb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gb(t,e)}(i,t);var e,n,r,o=Jb(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return this.options.viewOptions}},{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}}])&&Yb(e.prototype,n),r&&Yb(e,r),i}(r.a.Component);function $b(t){return($b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tv(t,e){return(tv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ev(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rv(t);if(e){var o=rv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nv(this,n)}}function nv(t,e){return!e||"object"!==$b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rv(t){return(rv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ov=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tv(t,e)}(i,t);var e,n,r,o=ev(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){var t=b.a.getInstance(a.x.PartialLoading,this);this.collection=t.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var t=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(t+=this.options.className),t}},{key:"childView",get:function(){return Zb}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&Xb(e.prototype,n),r&&Xb(e,r),i}(r.a.ComponentCollection);function iv(t){return(iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function av(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uv(t,e){return(uv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fv(t);if(e){var o=fv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lv(this,n)}}function lv(t,e){return!e||"object"!==iv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fv(t){return(fv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uv(t,e)}(u,t);var e,n,o,c=sv(u);function u(){return av(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(t,e){var n=this,r=this.getPartialLoadingRegions(t);i.each(i.keys(r),(function(o){if(!e||o===e){var i=r[o],a=n.getComponent(i.partialLoading);t.showChildView(o,a)}}))}},{key:"getComponent",value:function(t){var e="number"==typeof t?a.u[t]:t;return"number"!=typeof t&&(t=Kn.h.Unselected),e||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat(Kn.h[t],"."))),e.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat(Kn.h[t],"."))),e.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat(Kn.h[t],"."))),new(this.getCtor(e.component))(e.options)}},{key:"getCtor",value:function(t){switch(t){case qb.a.ComponentCollection:return ov;case qb.a.Component:default:return Zb}}},{key:"getPartialLoadingRegions",value:function(t){return i.pick(t.regions,(function(t){return i.has(t,"partialLoading")}))}},{key:"getCollection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,e=new Array(t);return new r.a.Collection(e)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&cv(e.prototype,n),o&&cv(e,o),u}(r.a.Service);function hv(t){return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bv(t,e){return(bv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mv(t);if(e){var o=mv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gv(this,n)}}function gv(t,e){return!e||"object"!==hv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mv(t){return(mv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bv(t,e)}(c,t);var e,n,o,i=vv(c);function c(){return yv(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&dv(e.prototype,n),o&&dv(e,o),c}(r.a.Service);function wv(t){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ov(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kv(t,e){return(kv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ev(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rv(t);if(e){var o=Rv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _v(this,n)}}function _v(t,e){return!e||"object"!==wv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rv(t){return(Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kv(t,e)}(u,t);var e,n,i,c=Ev(u);function u(){return Ov(this,u),c.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.text;this.lockOptions=t,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(t){return t.returnValue=e,e}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(t){var e=this;new tn.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(C.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),e.unlock(),r.a.AppLinkHelper.trigger(t)}))}},{key:"getNavLockOptions",value:function(){var t=this.lockOptions,e=t.title,n=t.text;return{title:e||Hr.a.getPhrase(this.lang,"discardChanges"),text:n||Hr.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Hr.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Hr.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}},{key:"name",get:function(){return a.x.NavLock}},{key:"lang",get:function(){return"shared.services"}}])&&Cv(e.prototype,n),i&&Cv(e,i),u}(r.a.Service);function Tv(t){return(Tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Av(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lv(t,e){return(Lv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nv(t);if(e){var o=Nv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jv(this,n)}}function jv(t,e){return!e||"object"!==Tv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nv(t){return(Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Iv=" - ClickView",Vv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lv(t,e)}(c,t);var e,n,o,i=Dv(c);function c(){return Av(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(C.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(t){t&&r.a.LocationUtils.SetPageTitle(this.trimTitle(t))}},{key:"trimTitle",value:function(t){return t?t.length+Iv.length<=60?t+Iv:t.substring(0,57)+"..."+Iv:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&xv(e.prototype,n),o&&xv(e,o),c}(r.a.Service);function Bv(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Uv(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zv(t);if(e){var o=zv(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Hv(this,n)}}function Hv(t,e){return!e||"object"!==Bv(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function zv(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}oo.a;var qv=n(242),Wv=n(40),Yv=n(196),Gv=n(140),Jv=n(146),Kv=n(226);function Qv(t){var e=k.a.get("informational:error:handler");e.get("rendered")||(e.set("rendered",!0),new Yv.a(Object.assign(Object.assign({},t.dialogOptions),{channelName:"informational:error"})).render().done((function(){return t.onDone()})).fail((function(){return t.onFail()})).always((function(){return e.clear()})))}function Zv(t){b.a.getInstance(g.b.Alerts).createAlert({heading:Ro.c.Fail,type:Ro.a.Fail,message:t.message})}function $v(){r.a.AppLinkHelper.trigger({application:Gv.a.DEFAULT,action:Jv.a.Default.NOT_FOUND})}function Xv(t){o.Radio.channel("error:view").replyOnce("current:error",(function(){return t})),r.a.AppLinkHelper.trigger({application:Gv.a.DEFAULT,action:Jv.a.Default.ERROR})}var tg=n(10);function eg(t){return(eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ng={register:function(){var t=this;tg.registerHelper("lang",(function(e,n){if(t.isValid(e,n)){var r=n.data.root.languageNamespace;return Hr.a.getPhrase(r,e,n.hash)}}))},isValid:function(t,e){return"string"!=typeof t?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!==eg(e)?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(e.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)}};var rg=n(243);function og(t){return(og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ig(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ag(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cg(t,e){return(cg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ug(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lg(t);if(e){var o=lg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sg(this,n)}}function sg(t,e){return!e||"object"!==og(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lg(t){return(lg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cg(t,e)}(i,t);var e,n,r,o=ug(i);function i(){return ig(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:a.b.SEARCH,action:a.a.Search.HOME},videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},series:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.SERIES},tagSearch:{application:a.b.SEARCH,action:a.a.Search.HOME},newLibrary:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY},folder:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.FOLDER}}}},{key:"addSlugs",get:function(){return!1}},{key:"searchBarPlaceholder",get:function(){return null}},{key:"showSearchTips",get:function(){return!0}}])&&ag(e.prototype,n),r&&ag(e,r),i}(rg.BaseSearchAppVariables),pg=n(62);function hg(t){return(hg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bg(t,e){return(bg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vg(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mg(t);if(e){var o=mg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gg(this,n)}}function gg(t,e){return!e||"object"!==hg(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mg(t){return(mg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Sg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bg(t,e)}(i,t);var e,n,r,o=vg(i);function i(){return yg(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},notifications:{application:a.b.NOTIFICATIONS,action:a.a.Notifications.HOME},pastReleases:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.PAST_RELEASES},awaitingReview:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[pg.a.VideoReviewReminder,pg.a.VideoReviewAddedToLibrary,pg.a.CustomLibraryVideoAvailable,pg.a.StaffRequest,pg.a.StaffRequestFulfilled,pg.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&dg(e.prototype,n),r&&dg(e,r),i}(rg.BaseNotificationsAppVariables);new y,o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(t,e){var n=t.$("[name="+e+"]"),r=n.closest(".form-group");n.removeClass("is-invalid"),r.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(t,e,n){var r=t.$("[name="+e+"]"),o=r.closest(".form-group");r.addClass("is-invalid"),o.find(".form-feedback").addClass("invalid-feedback").html(n)}});var wg=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[d.a.ALERT,d.a.POPUP,d.a.HIDDEN]})});wg.addInitializationStep((function(t,e){t.registerLayout(Ep.a.ManageLayout,kh),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(ho,{size:100}),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(fg).registerInstance(Sg),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(Eo,{dataServiceErrorMessageMappings:_o.a,defaultErrorMessageKey:_o.b}),e(t)})).addInitializationStep((function(t,e){var n={maxAlerts:3,defaultSuccessAlert:{heading:Ro.c.Success,type:Ro.a.Success},defaultErrorAlert:{heading:Ro.c.Fail,type:Ro.a.Fail},alertViewCtor:Yi};b.a.registerSingleton(new ea(n));var r=b.a.getInstance(g.b.Alerts),o={cache:no.a.Fifo,dataProvider:v.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,b.a.registerDataService(na.a,o).registerDataService(ra.a,o).registerDataService(ha,o).registerDataService(Ma,o).registerDataService(Ua.a,o).registerDataService(wc,o).registerDataService(Nc,o).registerDataService(zc,o).registerDataService($c,o).registerDataService(di,o).registerDataService(Pu,o).registerDataService(Mu,o).registerDataService($u,o).registerDataService(us,o).registerDataService(ss.a,o).registerDataService(Ls,o).registerDataService(Fs,o).registerDataService(el,o).registerDataService(Pl,o).registerDataService(Ei,o).registerDataService(zl,o).registerDataService(Zl,o).registerDataService(ff,o).registerDataService(Of,o).registerDataService(Nf,o).registerDataService(Zf,o).registerDataService(hp,o).registerDataService(kp,o);var i={cache:no.a.Fifo,dataProvider:v.a.Notifications,alertService:r};b.a.registerDataService(Yo,i),e(t)})).addInitializationStep((function(t,e){b.a.registerInstance(pd).registerInstance(Hd).registerInstance(Xd).registerInstance(lb).registerInstance(zh).registerInstance(mb).registerInstance(Rb).registerInstance(Nb).registerInstance(zb).registerInstance(y),b.a.registerSingleton(new Dh).registerSingleton(new pv).registerSingleton(new Sv).registerSingleton(new Pv).registerSingleton(new Vv),b.a.getInstance(g.a.Config).getConfig((function(n){b.a.registerInstance(Jy,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),b.a.getInstance(g.a.Language).getLanguageConfig((function(t){Hr.a.setConfig(t),b.a.releaseInstance(g.a.Language)})),e(t),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(t,e){var n,r,o,i=b.a.getInstance(g.a.Config),a=b.a.getInstance(g.a.User);function c(){return new Promise((function(t,e){a.getCurrentUser((function(e){t(e.toJSON())}),(function(){e()}))}))}var u=new w.a(3),s=function(){if(u.decrement(),!(u.getValue()>0)){var i=new I({user:r.toJSON(),config:n.toJSON()});b.a.registerSingleton(i),i.registerTransport(Y),i.registerClient(pe);var a=n.get("countryCode").toLowerCase();i.registerClient(ne,{productName:"cloud.web",productVersion:o,regionName:Xt[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:c,shouldLog:Ue.shouldLog,formatData:Ue.formatData}),i.registerEnricher(we,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(st),i.registerClient(re.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),b.a.releaseInstance(g.a.Config),b.a.releaseInstance(g.a.User),e(t)}};i.getVersion((function(t){o=t,s()})),i.getConfig((function(t){n=t,s()})),a.getCurrentUser((function(t){r=t,s()}))})).addInitializationStep((function(t,e){t.registerApplication($e).registerApplication(En).registerApplication(Vn).registerApplication(Jn).registerApplication(ar).registerApplication(mr).registerApplication(Ar).registerApplication(Fr).registerApplication(eo),e(t)})).addInitializationStep((function(t,e){b.a.getInstance(g.a.Config).getVersion((function(n){var o=b.a.getInstance(v.a.Ajax);o.useMiddleware("versionInvalidation",(function(t,e,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new m.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(t){401===t.status&&r.a.ErrorHelper.throw(new S.a)})),e(t),b.a.releaseInstance(v.a.Ajax),b.a.releaseInstance(g.a.Config)}))})).addInitializationStep((function(t,e){r.a.View.AddViewDataExtension((function(t){return{languageNamespace:i.result(t,"lang")}})),e(t)})).addInitializationStep((function(t,e){ng.register(),e(t)})).addInitializationStep((function(t,e){t.registerErrorHandler(Wv.a,Xv).registerErrorHandler(Qy.a,Qv).registerErrorHandler(qv.a,Zv).registerErrorHandler(Kv.a,$v),e()})),wg.addStartUpStep((function(t,e,n){var r=b.a.getInstance(g.a.Config);r.getConfig((function(){r.getVersion((function(r){e.environment="DEVELOPMENT",e.version=r,oe.a.setUpVariables({isDevelopment:!1}),n(t,e),b.a.releaseInstance(g.a.Config)}))}))})).addStartUpStep((function(t,e,n){b.a.getInstance(g.a.Config).getConfig((function(r){console.log("%cWelcome to the new %c▶%cClick%cView%c! 🔥🎉🙏","color: grey; font-size:24px","color:#f8981d; font-size:24px","color:#f8981d; font-size:24px","color:black; font-size:24px","color: grey; font-size:24px"),console.log("%cIf you have any issues or need any help with anything, please contact our friendly product support team. ".concat(r.get("supportSiteUrl")),"color: black; font-size:14px"),n(t,e),b.a.releaseInstance(g.a.Config)}))})),wg.start()},function(t,e){t.exports=s},function(t,e){t.exports=l}])}));