@imposium-hub/components 1.42.0 → 1.42.1
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.
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-redux"),require("redux"),require("axios"),require("react-dom"),require("@fortawesome/react-fontawesome"),require("react-dnd"),require("hotkeys-js"),require("react-resize-detector"),require("react-tooltip"),require("react-table"),require("react-autosuggest"),require("react-dnd-html5-backend"),require("react-moveable"),require("localforage"));else if("function"==typeof define&&define.amd)define(["react","react-redux","redux","axios","react-dom","@fortawesome/react-fontawesome","react-dnd","hotkeys-js","react-resize-detector","react-tooltip","react-table","react-autosuggest","react-dnd-html5-backend","react-moveable","localforage"],t);else{var n="object"==typeof exports?t(require("react"),require("react-redux"),require("redux"),require("axios"),require("react-dom"),require("@fortawesome/react-fontawesome"),require("react-dnd"),require("hotkeys-js"),require("react-resize-detector"),require("react-tooltip"),require("react-table"),require("react-autosuggest"),require("react-dnd-html5-backend"),require("react-moveable"),require("localforage")):t(e.react,e["react-redux"],e.redux,e.axios,e["react-dom"],e["@fortawesome/react-fontawesome"],e["react-dnd"],e["hotkeys-js"],e["react-resize-detector"],e["react-tooltip"],e["react-table"],e["react-autosuggest"],e["react-dnd-html5-backend"],e["react-moveable"],e.localforage);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(e,t,n,r,o,a,i,s,u,l,c,d,p,f,h){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=89)}([function(t,n){t.exports=e},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return kt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var g=o.momentProperties=[],v=!1;function b(e,t){var n,r,o;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=m(t)),l(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)l(o=t[r=g[n]])||(e[r]=o);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,o.updateOffset(this),v=!1)}function M(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function L(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,a,i,u=[];for(a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(i in r+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];u.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,x={};function E(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),x[e]||(L(t),x[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function O(e){null!=e&&this.set(e)}function Y(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},P={};function H(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(P[e]=o),t&&(P[t[0]]=function(){return Y(o.apply(this,arguments),t[1],t[2])}),n&&(P[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=N(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,o=e.match(C);for(t=0,n=o.length;t<n;t++)P[o[t]]?o[t]=P[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=S(o[r])?o[r].call(t,e):o[r];return a}}(t),j[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var R={};function F(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function z(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function U(e){var t,n,r={};for(n in e)s(e,n)&&(t=z(n))&&(r[t]=e[n]);return r}var W={};function B(e,t){W[e]=t}function V(e){return e%4==0&&e%100!=0||e%400==0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=q(t)),n}function J(e,t){return function(n){return null!=n?($(this,e,n),o.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&V(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,ue=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){X[e]=S(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(X,e)?X[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ye,ge={};function ve(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function be(e,t){ve(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function we(e,t,n){null!=t&&s(ge,e)&&ge[e](t,n._a,n,e)}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?V(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),B("month",8),he("M",re),he("MM",re,Q),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[1]=G(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:m(n).invalidMonth=e}));var Le="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Te="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe=fe,Ee=fe;function Se(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ye.call(this._shortMonthsParse,i))?o:null:-1!==(o=ye.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=ye.call(this._shortMonthsParse,i))||-1!==(o=ye.call(this._longMonthsParse,i))?o:null:-1!==(o=ye.call(this._longMonthsParse,i))||-1!==(o=ye.call(this._shortMonthsParse,i))?o:null}function De(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Me(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Oe(e){return null!=e?(De(this,e),o.updateOffset(this,!0),this):K(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;t<12;t++)r[t]=_e(r[t]),o[t]=_e(o[t]);for(t=0;t<24;t++)a[t]=_e(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ce(e){return V(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),F("year","y"),B("year",1),he("Y",ce),he("YY",re,Q),he("YYYY",se,te),he("YYYYY",ue,ne),he("YYYYYY",ue,ne),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):G(e)})),ve("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Ae=J("FullYear",!0);function je(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Pe(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var r=7+t-n;return-(7+Pe(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+He(e,r,o);return s<=0?i=Ce(a=e-1)+s:s>Ce(e)?(a=e+1,i=s-Ce(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ne(e,t,n){var r,o,a=He(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+Re(o=e.year()-1,t,n):i>Re(e.year(),t,n)?(r=i-Re(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function Re(e,t,n){var r=He(e,t,n),o=He(e+1,t,n);return(Ce(e)-r+o)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",re),he("ww",re,Q),he("W",re),he("WW",re,Q),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",re),he("e",re),he("E",re),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:m(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),We="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=fe,Ve=fe,qe=fe;function Ge(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null}function Je(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=_e(this.weekdaysMin(n,"")),o=_e(this.weekdaysShort(n,"")),a=_e(this.weekdays(n,"")),i.push(r),s.push(o),u.push(a),l.push(r),l.push(o),l.push(a);i.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function $e(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Ke),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+Ke.apply(this)+Y(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Ke.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),$e("a",!0),$e("A",!1),F("hour","h"),B("hour",13),he("a",Xe),he("A",Xe),he("H",re),he("h",re),he("k",re),he("HH",re,Q),he("hh",re,Q),he("kk",re,Q),he("hmm",oe),he("hmmss",ae),he("Hmm",oe),he("Hmmss",ae),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){var r=G(e);t[3]=24===r?0:r})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=G(e),m(n).bigHour=!0})),ve("hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r)),m(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(o)),m(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var r=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r))})),ve("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=G(e.substr(0,r)),t[4]=G(e.substr(r,2)),t[5]=G(e.substr(o))}));var Ze,Qe=J("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:Te,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:We,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ot(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var r=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(515)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=l(t)?ut(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new O(D(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=ot(e[a]).split("-")).length,n=(n=ot(e[a+1]))?n.split("-"):null;t>0;){if(r=at(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}a++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,_t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function gt(e){var t,n,r,o,a,i,s=e._i,u=ct.exec(s)||dt.exec(s);if(u){for(m(e).iso=!0,t=0,n=ft.length;t<n;t++)if(ft[t][1].exec(u[1])){o=ft[t][0],r=!1!==ft[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=ht.length;t<n;t++)if(ht[t][1].exec(u[3])){a=(u[2]||" ")+ht[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!pt.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Lt(e)}else e._isValid=!1}function vt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,o,a,i,s,u,l=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],o=l[2],a=l[5],i=l[6],s=l[7],u=[vt(n),Te.indexOf(r),parseInt(o,10),parseInt(a,10),parseInt(i,10)],s&&u.push(parseInt(s,10)),t=u,!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(l[8],l[9],l[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,r,a,i,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,i,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=wt(t.GG,e._a[0],Ne(xt(),1,4).year),r=wt(t.W,1),((o=wt(t.E,1))<1||o>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Ne(xt(),a,i),n=wt(t.gg,e._a[0],l.year),r=wt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a),r<1||r>Re(n,a,i)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=Ie(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=wt(e._a[0],r[0]),(e._dayOfYear>Ce(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Pe(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:je).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,i,s,u=""+e._i,l=u.length,c=0;for(r=N(e._f,e._locale).match(C)||[],t=0;t<r.length;t++)a=r[t],(n=(u.match(me(a,e))||[])[0])&&((i=u.substr(0,u.indexOf(n))).length>0&&m(e).unusedInput.push(i),u=u.slice(u.indexOf(n)+n.length),c+=n.length),P[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),we(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=l-c,u.length>0&&m(e).unusedInput.push(u),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Mt(e),lt(e)}else bt(e);else gt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(lt(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)a=0,i=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Lt(t),_(t)&&(i=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));f(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;l(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(gt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Mt(e)):i(t)?function(e){if(!e._d){var t=U(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Mt(e)}}(e):c(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function kt(e,t,n,r,o){var s,l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&u(e)||a(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new w(lt(Tt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function xt(e,t,n,r){return kt(e,t,n,r,!1)}o.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Et=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),St=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Dt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yt(e){var t=U(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===ye.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Ot.length;++n)if(e[Ot[n]]){if(r)return!1;parseFloat(e[Ot[n]])!==G(e[Ot[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*u*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function Ct(e){return e instanceof Yt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}jt("Z",":"),jt("ZZ",""),he("Z",pe),he("ZZ",pe),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ht(pe,e)}));var Pt=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Pt)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?r:-r}function It(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||d(e)?e.valueOf():xt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):xt(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ut(e,t){var n,r,o,a,i,u,l=e,d=null;return Ct(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},t?l[t]=+e:l.milliseconds=+e):(d=Ft.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:G(d[2])*n,h:G(d[3])*n,m:G(d[4])*n,s:G(d[5])*n,ms:G(At(1e3*d[6]))*n}):(d=zt.exec(e))?(n="-"===d[1]?-1:1,l={y:Wt(d[2],n),M:Wt(d[3],n),w:Wt(d[4],n),d:Wt(d[5],n),h:Wt(d[6],n),m:Wt(d[7],n),s:Wt(d[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=xt(l.from),i=xt(l.to),o=a.isValid()&&i.isValid()?(i=It(i,a),a.isBefore(i)?u=Bt(a,i):((u=Bt(i,a)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=o.milliseconds,l.M=o.months),r=new Yt(l),Ct(e)&&s(e,"_locale")&&(r._locale=e._locale),Ct(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),qt(this,Ut(n,r),e),this}}function qt(e,t,n,r){var a=t._milliseconds,i=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&De(e,K(e,"Month")+s*n),i&&$(e,"Date",K(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&o.updateOffset(e,i||s))}Ut.fn=Yt.prototype,Ut.invalid=function(){return Ut(NaN)};var Gt=Vt(1,"add"),Jt=Vt(-1,"subtract");function Kt(e){return"string"==typeof e||e instanceof String}function $t(e){return M(e)||d(e)||Kt(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Kt(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!u(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}(e)||null==e}function Xt(e){var t,n=i(e)&&!u(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||s(e,o[t]);return n&&r}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(_e(i[e].name)),n.push(_e(i[e].abbr)),o.push(_e(i[e].narrow)),a.push(_e(i[e].name)),a.push(_e(i[e].abbr)),a.push(_e(i[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function un(e,t){H(0,[e,e.length],0,t)}function ln(e,t,n,r,o){var a;return null==e?Ne(this,r,o).year:(t>(a=Re(e,r,o))&&(t=a),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var a=Ie(e,t,n,r,o),i=Pe(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),he("N",an),he("NN",an),he("NNN",an),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?m(n).era=o:m(n).invalidEra=e})),he("y",le),he("yy",le),he("yyy",le),he("yyyy",le),he("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),he("G",ce),he("g",ce),he("GG",re,Q),he("gg",re,Q),he("GGGG",se,te),he("gggg",se,te),he("GGGGG",ue,ne),he("ggggg",ue,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),be(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),F("quarter","Q"),B("quarter",7),he("Q",Z),ve("Q",(function(e,t){t[1]=3*(G(e)-1)})),H("D",["DD",2],"Do","date"),F("date","D"),B("date",9),he("D",re),he("DD",re,Q),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=G(e.match(re)[0])}));var dn=J("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",ie),he("DDDD",ee),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),H("m",["mm",2],0,"minute"),F("minute","m"),B("minute",14),he("m",re),he("mm",re,Q),ve(["m","mm"],4);var pn=J("Minutes",!1);H("s",["ss",2],0,"second"),F("second","s"),B("second",15),he("s",re),he("ss",re,Q),ve(["s","ss"],5);var fn,hn,mn=J("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),B("millisecond",16),he("S",ie,Z),he("SS",ie,Q),he("SSS",ie,ee),fn="SSSS";fn.length<=9;fn+="S")he(fn,le);function _n(e,t){t[6]=G(1e3*("0."+e))}for(fn="S";fn.length<=9;fn+="S")ve(fn,_n);hn=J("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var yn=w.prototype;function gn(e){return e}yn.add=Gt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?$t(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||xt(),r=It(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(S(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,xt(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=z(t)){case"year":a=Zt(this,r)/12;break;case"month":a=Zt(this,r);break;case"quarter":a=Zt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:q(a)},yn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||xt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(xt(),e)},yn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||xt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(xt(),e)},yn.get=function(e){return S(this[e=z(e)])?this[e]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(e,t){var n=M(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=M(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var o=M(e)?e:xt(e),a=M(t)?t:xt(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))},yn.isSame=function(e,t){var n,r=M(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return _(this)},yn.lang=en,yn.locale=Qt,yn.localeData=tn,yn.max=St,yn.min=Et,yn.parsingFlags=function(){return f({},m(this))},yn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=U(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(S(this[e=z(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},yn.subtract=Jt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},yn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*n+a[e].offset;return this.year()},yn.year=Ae,yn.isLeapYear=function(){return V(this.year())},yn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Oe,yn.daysInMonth=function(){return Me(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Ne(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Re(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Re(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Re(this.isoWeekYear(),1,4)},yn.date=dn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=Qe,yn.minute=yn.minutes=pn,yn.second=yn.seconds=mn,yn.millisecond=yn.milliseconds=hn,yn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Nt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?qt(this,Ut(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Nt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Rt,yn.isUTC=Rt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=T("dates accessor is deprecated. Use date instead.",dn),yn.months=T("months accessor is deprecated. Use month instead",Oe),yn.years=T("years accessor is deprecated. Use year instead",Ae),yn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?h(t._a):xt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&G(e[r])!==G(t[r]))&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var vn=O.prototype;function bn(e,t,n,r){var o=ut(),a=h().set(r,t);return o[n](a,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=bn(e,r,n,"month");return o}function Mn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=ut(),i=e?a._week.dow:0,s=[];if(null!=n)return bn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=bn(t,(o+i)%7,r,"day");return s}vn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return S(r)?r.call(t,n):r},vn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(C).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vn.invalidDate=function(){return this._invalidDate},vn.ordinal=function(e){return this._ordinal.replace("%d",e)},vn.preparse=gn,vn.postformat=gn,vn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return S(o)?o(e,t,n,r):o.replace(/%d/i,e)},vn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},vn.set=function(e){var t,n;for(n in e)s(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vn.eras=function(e,t){var n,r,a,i=this._eras||ut("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":a=o(i[n].since).startOf("day"),i[n].since=a.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=o(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}}return i},vn.erasParse=function(e,t,n){var r,o,a,i,s,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(a=u[r].name.toUpperCase(),i=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([a,i,s].indexOf(e)>=0)return u[r]},vn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},vn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},vn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},vn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},vn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},vn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},vn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},vn.firstDayOfYear=function(){return this._week.doy},vn.firstDayOfWeek=function(){return this._week.dow},vn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},vn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},vn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ve),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",it),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ut);var Ln=Math.abs;function Tn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var Dn=Sn("ms"),On=Sn("s"),Yn=Sn("m"),Cn=Sn("h"),An=Sn("d"),jn=Sn("w"),Pn=Sn("M"),Hn=Sn("Q"),In=Sn("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rn=Nn("milliseconds"),Fn=Nn("seconds"),zn=Nn("minutes"),Un=Nn("hours"),Wn=Nn("days"),Bn=Nn("months"),Vn=Nn("years"),qn=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function $n(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,u=Kn(this._milliseconds)/1e3,l=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=q(u/60),t=q(e/60),u%=60,e%=60,n=q(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=$n(this._months)!==$n(d)?"-":"",i=$n(this._days)!==$n(d)?"-":"",s=$n(this._milliseconds)!==$n(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?i+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Zn=Yt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=Ln(this._milliseconds),this._days=Ln(this._days),this._months=Ln(this._months),e.milliseconds=Ln(e.milliseconds),e.seconds=Ln(e.seconds),e.minutes=Ln(e.minutes),e.hours=Ln(e.hours),e.months=Ln(e.months),e.years=Ln(e.years),this},Zn.add=function(e,t){return Tn(this,e,t,1)},Zn.subtract=function(e,t){return Tn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=Dn,Zn.asSeconds=On,Zn.asMinutes=Yn,Zn.asHours=Cn,Zn.asDays=An,Zn.asWeeks=jn,Zn.asMonths=Pn,Zn.asQuarters=Hn,Zn.asYears=In,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,u=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*kn(En(s)+i),i=0,s=0),u.milliseconds=a%1e3,e=q(a/1e3),u.seconds=e%60,t=q(e/60),u.minutes=t%60,n=q(t/60),u.hours=n%24,i+=q(n/24),o=q(xn(i)),s+=o,i-=kn(En(o)),r=q(s/12),s%=12,u.days=i,u.months=s,u.years=r,this},Zn.clone=function(){return Ut(this)},Zn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Rn,Zn.seconds=Fn,Zn.minutes=zn,Zn.hours=Un,Zn.days=Wn,Zn.weeks=function(){return q(this.days()/7)},Zn.months=Bn,Zn.years=Vn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Ut(e).abs(),a=qn(o.as("s")),i=qn(o.as("m")),s=qn(o.as("h")),u=qn(o.as("d")),l=qn(o.as("M")),c=qn(o.as("w")),d=qn(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(p=p||c<=1&&["w"]||c<n.w&&["ww",c]),(p=p||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,Jn.apply(null,p)}(this,!o,a,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Xn,Zn.toString=Xn,Zn.toJSON=Xn,Zn.locale=Qt,Zn.localeData=tn,Zn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Zn.lang=en,H("X",0,0,"unix"),H("x",0,0,"valueOf"),he("x",ce),he("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(G(e))})),
|
|
2
2
|
//! moment.js
|
|
3
|
-
o.version="2.29.1",t=xt,o.fn=yn,o.min=function(){var e=[].slice.call(arguments,0);return Dt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Dt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=h,o.unix=function(e){return xt(1e3*e)},o.months=function(e,t){return wn(e,t,"months")},o.isDate=d,o.locale=it,o.invalid=y,o.duration=Ut,o.isMoment=M,o.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},o.parseZone=function(){return xt.apply(null,arguments).parseZone()},o.localeData=ut,o.isDuration=Ct,o.monthsShort=function(e,t){return wn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(D(tt[e]._config,t)):(null!=(r=at(e))&&(o=r._config),t=D(o,t),null==r&&(t.abbr=e),(n=new O(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return k(tt)},o.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},o.normalizeUnits=z,o.relativeTimeRounding=function(e){return void 0===e?qn:"function"==typeof e&&(qn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=yn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(42)(e))},function(e,t,n){e.exports=n(364)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(367)),o=l(n(443)),a=l(n(469)),i=l(n(470)),s=l(n(471)),u=l(n(472));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=i.default,t.handleHover=i.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var s=(0,r.default)(n),u=(0,o.default)(e,s);return(0,a.default)(u)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICON_FILE_CODE=t.ICON_CUBE=t.ICON_LAYER_GROUP=t.ICON_EXPAND_ARROWS=t.ICON_EXPAND=t.ICON_COMPRESS=t.ICON_ARROW_RIGHT=t.ICON_ARROW_CENTER_H=t.ICON_ARROW_LEFT=t.ICON_ARROW_DOWN=t.ICON_ARROW_CENTER_V=t.ICON_ARROW_UP=t.ICON_BARS=t.ICON_ALIGN_CENTER=t.ICON_ALIGN_RIGHT=t.ICON_ALIGN_LEFT=t.ICON_FONT=t.ICON_INFO_CIRCLE=t.ICON_TIMES_CIRCLE=t.SORT_DOWN=t.SORT_UP=t.ICON_BAN=t.ICON_USER_LOCK=t.ICON_CHEVRON_UP=t.ICON_CHEVRON_DOWN=t.ICON_ANGLE_DOUBLE_RIGHT=t.ICON_ANGLE_RIGHT=t.ICON_ANGLE_DOUBLE_LEFT=t.ICON_ANGLE_LEFT=t.ICON_EXCLAIMATION_TRIANGLE=t.ICON_CLIPBOARD=t.ICON_PLUS=t.ICON_SEARCH=t.ICON_EDIT=t.ICON_CHECK=t.ICON_CARET_DOWN=t.ICON_CARET_UP=t.ICON_CIRCLE_NOTCH=t.ICON_TIMES=t.ICON_COPY=t.ICON_AUDIO_TYPE=t.ICON_IMAGE_SEQ_TYPE=t.ICON_FILE_ARCHIVE=t.ICON_FILE_IMAGE=t.ICON_FILE_AUDIO=t.ICON_FILE_VIDEO=t.ICON_FILTER=t.ICON_STICKY_NOTE=t.ICON_IMAGE=t.ICON_VIDEO=void 0,t.ICON_UPLOAD=t.ICON_DOWNLOAD=t.ICON_JS=t.ICON_PROJECT_DIAGRAM=t.ICON_GLOBE=t.ICON_EMAIL=t.ICON_HUBSPOT=t.ICON_HELP=void 0;var r=n(0),o=n(37),a=n(288),i=n(289),s=n(290),u=n(291),l=n(292),c=n(93),d=n(293),p=n(294),f=n(295),h=n(296),m=n(297),_=n(298),y=n(299),g=n(300),v=n(301),b=n(58),w=n(302),M=n(303),L=n(304),T=n(305),k=n(306),x=n(307),E=n(57),S=n(94),D=n(308),O=n(309),Y=n(310),C=n(311),A=n(312),j=n(313),P=n(314),H=n(315),I=n(95),N=n(316),R=n(317),F=n(318),z=n(319),U=n(320),W=n(321),B=n(322),V=n(323),q=n(324),G=n(325),J=n(326),K=n(327),$=n(328),X=n(329),Z=n(330),Q=n(331),ee=n(332),te=n(333),ne=n(334),re=n(335),oe=n(336),ae=n(337),ie=n(338),se=n(339),ue=n(340);t.ICON_VIDEO=r.createElement(o.FontAwesomeIcon,{icon:S.faVideo}),t.ICON_IMAGE=r.createElement(o.FontAwesomeIcon,{icon:D.faImage}),t.ICON_STICKY_NOTE=r.createElement(o.FontAwesomeIcon,{icon:O.faStickyNote}),t.ICON_FILTER=r.createElement(o.FontAwesomeIcon,{icon:u.faFilter}),t.ICON_FILE_VIDEO=r.createElement(o.FontAwesomeIcon,{icon:c.faFileVideo}),t.ICON_FILE_AUDIO=r.createElement(o.FontAwesomeIcon,{icon:d.faFileAudio}),t.ICON_FILE_IMAGE=r.createElement(o.FontAwesomeIcon,{icon:p.faFileImage}),t.ICON_FILE_ARCHIVE=r.createElement(o.FontAwesomeIcon,{icon:f.faFileArchive}),t.ICON_IMAGE_SEQ_TYPE=r.createElement(o.FontAwesomeIcon,{icon:C.faImages}),t.ICON_AUDIO_TYPE=r.createElement(o.FontAwesomeIcon,{icon:A.faHeadphones}),t.ICON_COPY=r.createElement(o.FontAwesomeIcon,{icon:h.faCopy}),t.ICON_TIMES=r.createElement(o.FontAwesomeIcon,{icon:m.faTimes}),t.ICON_CIRCLE_NOTCH=r.createElement(o.FontAwesomeIcon,{icon:l.faCircleNotch}),t.ICON_CARET_UP=r.createElement(o.FontAwesomeIcon,{icon:a.faCaretUp}),t.ICON_CARET_DOWN=r.createElement(o.FontAwesomeIcon,{icon:i.faCaretDown}),t.ICON_CHECK=r.createElement(o.FontAwesomeIcon,{icon:s.faCheck}),t.ICON_EDIT=r.createElement(o.FontAwesomeIcon,{icon:_.faEdit}),t.ICON_SEARCH=r.createElement(o.FontAwesomeIcon,{icon:y.faSearch}),t.ICON_PLUS=r.createElement(o.FontAwesomeIcon,{icon:g.faPlus}),t.ICON_CLIPBOARD=r.createElement(o.FontAwesomeIcon,{icon:v.faClipboard}),t.ICON_EXCLAIMATION_TRIANGLE=r.createElement(o.FontAwesomeIcon,{icon:b.faExclamationTriangle}),t.ICON_ANGLE_LEFT=r.createElement(o.FontAwesomeIcon,{icon:w.faAngleLeft}),t.ICON_ANGLE_DOUBLE_LEFT=r.createElement(o.FontAwesomeIcon,{icon:M.faAngleDoubleLeft}),t.ICON_ANGLE_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:L.faAngleRight}),t.ICON_ANGLE_DOUBLE_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:T.faAngleDoubleRight}),t.ICON_CHEVRON_DOWN=r.createElement(o.FontAwesomeIcon,{icon:k.faChevronDown}),t.ICON_CHEVRON_UP=r.createElement(o.FontAwesomeIcon,{icon:x.faChevronUp}),t.ICON_USER_LOCK=r.createElement(o.FontAwesomeIcon,{icon:E.faUserLock}),t.ICON_BAN=r.createElement(o.FontAwesomeIcon,{icon:Y.faBan}),t.SORT_UP=r.createElement(o.FontAwesomeIcon,{icon:j.faSortUp}),t.SORT_DOWN=r.createElement(o.FontAwesomeIcon,{icon:P.faSortDown}),t.ICON_TIMES_CIRCLE=r.createElement(o.FontAwesomeIcon,{icon:H.faTimesCircle}),t.ICON_INFO_CIRCLE=r.createElement(o.FontAwesomeIcon,{icon:I.faInfoCircle}),t.ICON_FONT=r.createElement(o.FontAwesomeIcon,{icon:N.faFont}),t.ICON_ALIGN_LEFT=r.createElement(o.FontAwesomeIcon,{icon:R.faAlignLeft}),t.ICON_ALIGN_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:F.faAlignRight}),t.ICON_ALIGN_CENTER=r.createElement(o.FontAwesomeIcon,{icon:z.faAlignCenter}),t.ICON_BARS=r.createElement(o.FontAwesomeIcon,{icon:U.faBars}),t.ICON_ARROW_UP=r.createElement(o.FontAwesomeIcon,{icon:W.faArrowToTop}),t.ICON_ARROW_CENTER_V=r.createElement(o.FontAwesomeIcon,{icon:V.faArrowsV}),t.ICON_ARROW_DOWN=r.createElement(o.FontAwesomeIcon,{icon:B.faArrowToBottom}),t.ICON_ARROW_LEFT=r.createElement(o.FontAwesomeIcon,{icon:q.faArrowToLeft}),t.ICON_ARROW_CENTER_H=r.createElement(o.FontAwesomeIcon,{icon:J.faArrowsH}),t.ICON_ARROW_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:G.faArrowToRight}),t.ICON_COMPRESS=r.createElement(o.FontAwesomeIcon,{icon:X.faCompress}),t.ICON_EXPAND=r.createElement(o.FontAwesomeIcon,{icon:$.faExpand}),t.ICON_EXPAND_ARROWS=r.createElement(o.FontAwesomeIcon,{icon:K.faExpandArrowsAlt}),t.ICON_LAYER_GROUP=r.createElement(o.FontAwesomeIcon,{icon:Z.faLayerGroup}),t.ICON_CUBE=r.createElement(o.FontAwesomeIcon,{icon:Q.faCube}),t.ICON_FILE_CODE=r.createElement(o.FontAwesomeIcon,{icon:ee.faFileCode}),t.ICON_HELP=r.createElement(o.FontAwesomeIcon,{icon:te.faQuestionCircle}),t.ICON_HUBSPOT=r.createElement(o.FontAwesomeIcon,{icon:ne.faHubspot}),t.ICON_EMAIL=r.createElement(o.FontAwesomeIcon,{icon:re.faEnvelope}),t.ICON_GLOBE=r.createElement(o.FontAwesomeIcon,{icon:oe.faGlobe}),t.ICON_PROJECT_DIAGRAM=r.createElement(o.FontAwesomeIcon,{icon:ae.faProjectDiagram}),t.ICON_JS=r.createElement(o.FontAwesomeIcon,{icon:ie.faJs}),t.ICON_DOWNLOAD=r.createElement(o.FontAwesomeIcon,{icon:se.faDownload}),t.ICON_UPLOAD=r.createElement(o.FontAwesomeIcon,{icon:ue.faUpload})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(8),u=n(60),l=n(4),c=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipId="imposium-button-"+s.generateUUID(),n}return o(t,e),t.prototype.onClick=function(e){this.props.onClick&&!this.props.loading&&this.props.onClick(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.color,o=t.size,s=t.customStyles,c=this.props,d=c.width,p=c.loading,f=(c.tooltip,this.props),h=f.active,m=f.disabled,_=f.buttonRef,y=h?"active":"",g=m?"disabled":"";o||(o=""),n||(n="default"),r||(r=""),d&&(s?s.width=d:s={width:d});var v=p?i.createElement("span",{className:"loading-icon"},l.ICON_CIRCLE_NOTCH):this.props.children;return i.createElement("div",a({},u.renderTooltipProps(this.tooltipId,this.props.tooltip),{ref:_,className:"imposium-btn btn-"+n+" "+o+" "+r+" "+y+" "+g,onClick:function(t){return e.onClick(t)},style:s}),v,u.renderTooltip(this.tooltipId,this.props.tooltip))},t}(i.PureComponent);t.default=c},function(e,t,n){"use strict";var r=n(56),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BATCHES_COPY=t.project=t.header=t.integration=t.publish=t.compositions=t.previewer=t.assets=void 0,t.assets={tooltipFilter:"Filter by Asset type",previewNotAvailable:"Preview Not Available for this Asset Type",iconTypes:{filter:"Filter By Type",lut:"LUT",all:"All Types",video:"Video Files",audio:"Audio Files",video_composition:"Composition",image:"Image Files",image_sequence:"Image Sequences (Archive)",template:"Custom Template",static_composition:"Template",font:"Font Files"},uploads:{noUploads:"There are currently no assets uploading...",preparePhase:"Preparing asset...",autoTagInput:"Tag by filename",assignToStoryInput:"Assign to Story",assignToStoryInfo:"If selected, any assets uploaded will only be available to use with the currently selected story.",uploadButton:"Upload"},tags:{add:"Add new tag"},field:{fieldMismatchError:'Asset Type mismatch. Field only accepts "[accepts]" assets.',dragPrompt:"Drag Asset Here",tooltipClear:"Clear the selected Asset",tooltipFilter:"Filter assets to match Asset type"},details:"Asset Details",newDetails:"New Asset Details",name:"Name",date:"Date Created",addTag:"Add Tag",assetTag:"Tags",sessionExpired:"Your session has expired, please log in again to continue."},t.previewer={previewVars:"Preview Variables",time:"Time Elapsed:",expRunning:"Rendering Experience",runExpStart:"Creating Experience",runExpError:"Error running experience - ID: [expId]",triggerExpError:"Error triggering experience - ID: [expId]",expId:"Running Experience - ID: [expId]",createExpError:"Error creating experience",logDownloadError:"Could not download log of Job: [jobId]",logURLError:"Could not retrieve log URL of Job: [jobId]",btnLog:"Job Log",btnRender:"Render",btnReRender:"Re-Render",expIdField:"Exp. ID"},t.compositions={name:"Name",width:"Width",height:"Height",rotation:"Rotation",color:"Color",x:"X",y:"Y",wrap:"Wrap",fit:"Fit",fillMode:"Fill Mode",hAlign:"H. Align",vAlign:"V. Align",backgroundColor:"Background",layers:"Layers",layerText:"Text",fontType:"Font Type",layerImage:"Image",fontSize:"Font Size",lineHeight:"Line Height",font:"Font",letterSpacing:"Letter Spacing",wordSpacing:"Word Spacing",tooltipName:"Display name of this composition.",tooltipBackgroundColor:"Background color of this composition. Can also be transparent.",tooltipWidth:"Width of the composition, in pixels",tooltipHeight:"Height of the composition, in pixels",tooltipAddLayer:"Add a new layer to the composition",tooltipLayerRotation:"Rotation angle of the layer, in degrees",tooltipLayerX:"Layer X position.",tooltipLayerY:"Layer Y position",tooltipLayerWidth:"Layer width, in pixels.",tooltipLayerHeight:"Layer height, in pixels",textOptions:"Text Options",textLayerContent:"Content",tooltipTextLayerContent:"The copy rendered in this layer. Wrap variables like so: {{variable_id}}."},t.publish={accessKey:"Access Key",tooltipAccessKey:"API access key to use for this video distribution.",publishTitle:"Publish & Deliver",publishStepTitle:"STEP 1: Publish your Project",publishStepDesc:"Your project needs to be published before your changes can be seen. If you haven't made any changes since the last time you published, you can skip to the next step.",distributeStepTitle:"STEP 2: How do you want your users to view their video?",distributeStepDesc:"Select which Composition you want to deliver, access credentials you want to use, and distribution channel.",compositionError:"Please Select Composition",btnWebsite:"Webpage",webpageTitle:"STEP 3: Webpage",webPageHosted:"Webpage hosted on Imposium",webpageDesc:"You can share a demo page that is hosted on Imposium or you can download a sample webpage you can customize and use to generate videos. Please ensure you include a column for every variable on your story.",sampleWebpage:"Download sample webpage",btnEmail:"Email",exporting:"Exporting CSV... (please wait)",emailTitle:"STEP 3: Upload a CSV file with your user information in it.",emailDesc:"You can download a sample CSV with fields to populate as a starting point. Or you can upload one that already has the data in it.",downloadSampleCsvLink:"Download Sample CSV",uploadCsv:"Upload Your CSV UserList",generatingLink:"STEP 4: Generating embed links",downloadLink:"STEP 5: Download Your Userlist CSV file",btnDownload:"Download CSV",generatingLinkDesc:"Please wait while we generate the link for your users. This may take few minutes.",missingColumns:"Error: missing required columns",renderBatchFailed:"Error: Failed to render batch",createBatchFailed:"Error: Failed to create batch",downloadError:"Error downloading sample CSV.",embeddedCodeCopyError:"Error copying embed code.",creatingLinks:"Creating User Links... (please wait)",importingData:"Importing Data... (please wait)",downloadDesc:"Your CSV data file is ready to download with an embed code you can import into your email platform to send out.",csvMissingColumns:"Warning: Some of your column names did not match up with the variables in the story. Please ensure these variables line up and then re-upload the csv: ",exportBatchOfVideo:"Export batch of videos",btnHubspot:"Hubspot",hubspotTitle:"STEP 3: Copy Hubspot code snippet",hubspotDesc:"Copy the provided embed code into HubSpot. Replace the placeholder variable values with HubSpot template strings, to splice in your user data.",saveChanges:"Save Changes",embeddedCode:"Embed Url: ",btnAPI:"API integration",btnExport:"Export",btnPublish:"Publish",btnSkip:"Skip",btnBack:"Back",btnFinished:"Done",noCompErrorTitle:"No Compositions Found",noCompErrorDesc:"You must have at least 1 composition on your story to render and distribute videos."},t.integration={errorPullingComps:" Error getting composition IDs, contact your Imposium admin for support.",errorCreatingCreds:" Error creating credentials, contact your Imposium admin for support.",errorGettingCreds:" Error getting credentials, contact your Imposium admin for support.",documentation:"Documentation",docParagraph:"Use the links below for more information on integrating Imposium into your application.",js:"JavaScript SDK",jsSdkLink:"https://docs.imposium.com/js-sdk/#/",restLink:"https://docs.imposium.com",rest:"REST API",sdkArchiveSuffix:" - JS SDK Integration.zip"},t.header={publishing:"Publishing...",working:"Using Working Copy",statusError:"Error getting story status",publishJobError:"Error creating publish story job",publishPollError:"Error polling publish job status"},t.project={compName:"Composition",tooltipCompId:"Unique ID of the selected composition. Used to render that specific composition via the API and Imposium JS-SDK."},t.BATCHES_COPY={progress:{notRendered:"not rendered",rendering:"rendering",rendered:"rendered",cancelled:"cancelled",queued:"queued",malformed:"unknown"}}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.s3Url=t.formattedTime=t.formatDateDefault=t.padStart=t.toFixed=t.mimetypeConformsToOverlay=t.isFont=t.validateAssetMimetype=t.isObjEmpty=t.filterHotkeys=t.fitToContainer=t.generateUUID=t.string2HexCode=t.parameterizeServiceUrl=t.scrapeEmail=t.getFirstStoryInOrg=t.validateAccessLevel=t.getActiveOrg=t.isLocal=void 0;t.isLocal=function(){return"localhost"===window.location.hostname};t.getActiveOrg=function(e,t){return t.organizations.find((function(t){return t.id===e}))};t.validateAccessLevel=function(e,n,r){var o=t.getActiveOrg(e,r);return!!o&&o.services.includes(n)};t.getFirstStoryInOrg=function(e,n){var r=t.getActiveOrg(e,n);return r&&"object"==typeof r.stories[0]?r.stories[0].id:""};t.scrapeEmail=function(e){return e&&e.idTokenPayload&&e.idTokenPayload["https://imposium.com/email"]?e.idTokenPayload["https://imposium.com/email"]:""};t.parameterizeServiceUrl=function(e,t,n,r){if(!e||!t)return e&&!t?n+"?organization_id="+e:n;switch(r){case 1:case 4:case 5:case 6:case 8:return n+"/"+t+"?organization_id="+e;case 3:return n+"/dashboard/live/"+t+"?organization_id="+e;default:return n+"?organization_id="+e}};t.string2HexCode=function(e){var t=(16777215&e.split("").map((function(t,n){return e.charCodeAt(n)})).reduce((function(e,t){return t+((e<<5)-e)}),0)).toString(16).toUpperCase();return"#"+("00000".substring(0,6-t.length)+t)};t.generateUUID=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:7&n|8).toString(16)}))};t.fitToContainer=function(e,t,n){var r,o,a,i,s=t.width/t.height,u=n.padding?e.width-2*n.padding:e.width,l=n.padding?e.height-2*n.padding:e.height,c=n.padding?n.padding:0;return"proportionalInside"===n.scaleMode?(r=(o=u)/s)>l&&(o=(r=l)*s):"proportionalOutside"===n.scaleMode?(r=(o=u)/s)<l&&(o=(r=l)*s):"none"!==n.scaleMode&&n.scaleMode||(o=t.width,r=t.height),n.maxWidth&&o>n.maxWidth&&(r=(o=n.maxWidth)/s),n.maxHeight&&r>n.maxHeight&&(o=(r=n.maxHeight)*s),i="left"===n.hAlign?0:"right"===n.hAlign?u-o:(u-o)/2,a="top"===n.vAlign?0:"bottom"===n.vAlign?l-r:(l-r)/2,{width:o,height:r,top:a+=c,left:i+=c}};t.filterHotkeys=function(e){var t=(e.target||e.srcElement).tagName,n=t.isContentEditable||"INPUT"===t||"SELECT"===t||"TEXTAREA"===t,r="Enter"===e.code,o="Escape"===e.code,a=!0===e.metaKey;return!!(!n||n&&r||n&&o||n&&a)};t.isObjEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};t.validateAssetMimetype=function(e){var n=r(e.type.split("/"),2),o=n[0],a=n[1],i=e.name.split("."),s=i[i.length-1];switch(o){case"image":case"video":case"audio":return!0;case"application":switch(a){case"zip":case"x-gzip":return!0}}return!!t.isFont(o,s)||(-1!==e.name.indexOf(".CUBE")||(console.warn("Mimetype: "+e.type+" is not a supported asset type."),!1))};t.isFont=function(e,t){var n=["font","otf","sfnt","ttf","woff","woff2","font-sfnt","font-woff","vnd.ms-fontobject","font/otf","font/sfnt","font/ttf","font/woff","font/woff2","font/font-sfnt","font/font-woff","font/vnd.ms-fontobject"];return e?-1!==n.indexOf(e):-1!==n.indexOf(t)};t.mimetypeConformsToOverlay=function(e,t){var n=r(t.type.split("/"),2),o=n[0],a=n[1];return"video"===e&&"video"===o||"image"===e&&"image"===o||"audio"===e&&"audio"===o||"template"===e&&"application"===o&&("zip"===a||"x-gzip"===a)||"image_sequence"===e&&"application"===o&&("zip"===a||"x-gzip"===a)};t.toFixed=function(e,t){var n=new RegExp("^-?\\d+(?:.\\d{0,"+(t||-1)+"})?");return e.toString().match(n)[0]};t.padStart=function(e,t){return new Array(t+1-(e+"").length).join("0")+e};t.formatDateDefault=function(e){var t=new Date(1e3*e),n=t.getMonth()+1,r=t.getDate(),o=t.getFullYear(),a=t.getHours(),i=a>=12?"PM":"AM";a>12&&(a-=12),0===a&&(a=12);var s=t.getMinutes();return s<10&&(s="0"+s),n+"/"+r+"/"+o+" "+a+":"+s+" "+i};t.formattedTime=function(e){var t=Math.floor(e/6e4),n=(e%6e4/1e3).toFixed(0);return(t<10?"0":"")+t+":"+(n<10?"0":"")+n};t.s3Url=function(e,t,n){return e?e.replace(t,n):""}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(8),u=n(60),l=n(4),c=n(5),d=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipId=s.generateUUID(),n.state={showInfo:!1},n.toggleIDInfo=function(){n.setState({showInfo:!n.state.showInfo})},n}return o(t,e),t.prototype.getLabelClass=function(){return this.props.label?"label-"+(this.props.labelPosition?this.props.labelPosition:"left"):"no-label"},t.prototype.renderLabel=function(){var e=this.state.showInfo,t=this.props,n=t.info,r=t.label,o=e?l.ICON_TIMES_CIRCLE:l.ICON_INFO_CIRCLE,s=n?i.createElement(c.default,{onClick:this.toggleIDInfo,size:"small",style:"subtle"},o):null;return s||r?i.createElement("label",a({},u.renderTooltipProps(this.tooltipId,this.props.tooltip),{className:this.getLabelClass()}),s,s&&" ",r):null},t.prototype.render=function(){var e=this.props,t=e.label,n=e.width,r=e.customClass,o=this.renderLabel(),s={},l={};return t||(l=u.renderTooltipProps(this.tooltipId,this.props.tooltip)),n&&(s.width="string"==typeof n?n:n+"px"),i.createElement("div",{className:"form-field "+r+" "+this.getLabelClass(),style:s},o,i.createElement("div",a({className:"form-field-content "+this.getLabelClass()},l),this.props.children,this.renderButtons()),u.renderTooltip(this.tooltipId,this.props.tooltip),this.renderInfo())},t.prototype.renderInfo=function(){var e=this.props.info,t=this.state.showInfo;return e&&t?i.createElement("p",null,e):null},t.prototype.renderButtons=function(){if(this.props.buttons)return i.createElement("div",{className:"form-field-buttons"},this.props.buttons)},t}(i.PureComponent);t.default=d},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(62),c=n(5),d=n(11),p=n(8),f=n(4),h=n(361),m=function(e){function t(t){var n=e.call(this,t)||this;if(n.evtHandlers={submittable:function(){return n.forceSubmit()},controlled:function(e){return n.toggleEditing(e)},cancel:function(){return n.cancelEdit()},clear:function(){return n.forceSubmit(!0)},toggleEditing:function(e){return n.toggleEditing(e)},forceSubmit:function(){return n.forceSubmit()},clearValue:function(){return n.clearValue()},copyToClipboard:function(e){return n.copyToClipboard(e)},onSuggestionsFetchRequested:function(e){return n.onSuggestionsFetchRequested(e)},onSuggestionsClearRequested:function(){return n.onSuggestionsClearRequested()},getSuggestionValue:function(e){return n.getSuggestionValue(e)},renderSuggestion:function(e){return n.renderSuggestion(e)}},n.componentDidUpdate=function(e,t){(n.props.controlled||n.props.submittable)&&(e.value!==n.props.value&&n.setState({internalValue:n.props.value}),""===n.props.value&&!n.state.editing&&t.editing&&n.setState({internalValue:""}))},n.forceSubmit=function(e){void 0===e&&(e=!1);var t=n.state.internalValue;e||(n.props.doSubmit(t),"add"===n.props.submittableType&&n.setState({internalValue:""})),e&&(n.props.doSubmit(""),n.setState({internalValue:""}))},n.renderSubmittableIcon=function(){switch(n.props.submittableType){case"search":return f.ICON_SEARCH;case"check":return f.ICON_CHECK;case"add":return f.ICON_PLUS;default:return null}},n.onSuggestionsFetchRequested=function(e){var t=e.value;n.setState({suggestions:n.getSuggestions(t)})},n.onSuggestionsClearRequested=function(){n.setState({suggestions:[]})},n.props.controlled&&n.props.submittable)throw new Error("Actionable TextField(s) must be one of either: controlled or submittable.");return n.state={internalValue:t.value||"",suggestions:[],editing:!1},n.inputRef=u.createRef(),l.default.filter=function(e){return p.filterHotkeys(e)},n}return o(t,e),t.prototype.componentDidMount=function(){this.props.focusOnMount&&this.inputRef.current&&this.inputRef.current.focus()},t.prototype.componentWillUnmount=function(){this.props.submittable?(l.default.unbind("enter",this.evtHandlers.submittable),l.default.unbind("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default.unbind("enter",this.evtHandlers.controlled),l.default.unbind("esc",this.evtHandlers.cancel))},t.prototype.setEditing=function(e){var t=this;this.setState({editing:e},(function(){t.inputRef.current.focus()}))},t.prototype.blur=function(e){this.props.onBlur&&this.props.onBlur(e),this.props.submittable?(l.default.unbind("enter",this.evtHandlers.submittable),l.default.unbind("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default.unbind("enter",this.evtHandlers.controlled),l.default.unbind("esc",this.evtHandlers.cancel))},t.prototype.focus=function(e){this.props.onFocus&&this.props.onFocus(e),this.props.submittable?(l.default("enter",this.evtHandlers.submittable),l.default("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default("enter",this.evtHandlers.controlled),l.default("esc",this.evtHandlers.cancel))},t.prototype.cancelEdit=function(){this.setState({editing:!1,internalValue:this.props.value})},t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.getValue=function(){var e=this.props,t=e.controlled,n=e.submittable,r=e.value,o=this.state.internalValue;return t||n?o:r||""},t.prototype.onChange=function(e,t){var n=this,r=this.props.pattern,o=t?t.newValue:e.target.value;if(this.props.controlled||this.props.submittable)this.setState({internalValue:o},(function(){t&&"click"===t.method&&n.evtHandlers.submittable()}));else{if(r&&!r.test(o))return;""===o&&(o=null),this.props.onChange(o)}},t.prototype.toggleEditing=function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this.state,r=n.editing,o=n.internalValue,a=this.props.value;r?this.setState({editing:!1},(function(){if(o!==a){var e=t.state.internalValue;""===e&&(e=null),t.props.onSubmit(e)}})):this.setState({editing:!0},(function(){var e=t.inputRef.current;e&&e.focus()}))},t.prototype.clearValue=function(){var e=this;this.setState({internalValue:""},(function(){e.props.doSubmit("")}))},t.prototype.getSuggestions=function(e){var t=e.trim().toLowerCase(),n=t.length;return 0===n?[]:this.props.suggestions.filter((function(e){return e.toLowerCase().slice(0,n)===t}))},t.prototype.getSuggestionValue=function(e){return e},t.prototype.renderSuggestion=function(e){return u.createElement("div",{className:"suggestion"},e)},t.prototype.renderButtons=function(){var e,t=this.props,n=t.controlled,r=t.submittable,o=(t.readOnly,t.buttons),a=t.showCopy,l=t.submittableType,d=t.value,p=t.hideButtons,h=this.state,m=h.editing;h.internalValue;o?Array.isArray(o)?e=s([],i(o)):(e=[]).push(o):e=[];var _="search"===l?"Search":"Confirm";if(p)return[];if(n){var y=m?f.ICON_CHECK:f.ICON_EDIT;e.push(u.createElement(c.default,{key:"btn-edit",style:"subtle",tooltip:"Edit",color:"secondary",onClick:this.evtHandlers.toggleEditing},y))}return r&&(e.push(u.createElement(c.default,{key:"btn-submit",style:"subtle",tooltip:_,color:"secondary",onClick:this.evtHandlers.forceSubmit},this.renderSubmittableIcon())),d&&e.push(u.createElement(c.default,{key:"btn-clear",style:"subtle",tooltip:"Clear",onClick:this.evtHandlers.clearValue},f.ICON_TIMES))),a&&e.push(u.createElement(c.default,{key:"btn-copy",style:"subtle",color:"primary",tooltip:"Copy to Clipboard",onClick:this.evtHandlers.copyToClipboard},f.ICON_CLIPBOARD)),e},t.prototype.renderInput=function(){var e=this,t=this.props,n=t.placeholder,r=t.controlled,o=t.submittable,i=t.disabled,s=t.readOnly,l=t.loading,c=this.state.suggestions,d=this.state.editing,p=r&&!d||i,f=r||o?"controlled-input":"",m={type:"text",placeholder:n,value:this.getValue(),disabled:p||l,readOnly:s,ref:this.inputRef,onFocus:function(t){return e.focus(t)},onBlur:function(t){return e.blur(t)}};return this.props.suggestions?(m.onChange=function(t,n){return e.onChange(t,n)},u.createElement(h,{suggestions:c,onSuggestionsFetchRequested:this.evtHandlers.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.evtHandlers.onSuggestionsClearRequested,getSuggestionValue:this.evtHandlers.getSuggestionValue,renderSuggestion:this.evtHandlers.renderSuggestion,inputProps:m})):(m.onChange=function(t){return e.onChange(t)},u.createElement("input",a({className:""+f},m)))},t.prototype.render=function(){var e=this.props,t=e.label,n=e.width,r=e.tooltip,o=e.info,a=e.labelPosition;return u.createElement(d.default,{customClass:"text-field",label:t,buttons:this.renderButtons(),tooltip:r,info:o,labelPosition:a,width:n},this.renderInput())},t}(u.PureComponent);t.default=m},function(e,t,n){var r=n(101),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=e.style;return t||(t="default"),r.createElement("div",{className:"horizontal-rule "+t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteAssetTag=t.updateAssetData=t.updateAssetName=t.addAssetTag=t.deleteAssets=t.getAssets=t.doAssetTableHydration=t.toggleLoading=void 0;var r=n(83),o=n(33),a={TOGGLE_LOADING:"assetList/TOGGLE_LOADING",GET:"assetList/GET",ADD_TAG:"assetList/ADD_TAG",DELETE_TAG:"assetList/DELETE_TAG",UPDATE_NAME:"assetList/UPDATE_NAME",UPDATE_DATA:"assetList/UPDATE_DATA"};t.toggleLoading=function(e){return{type:a.TOGGLE_LOADING,toggle:e}};t.doAssetTableHydration=function(e,n,a){return function(i){return new Promise((function(s,u){Promise.all([i(t.getAssets(e,n)),i(r.getAssetTagList(e,n))]).then((function(){i(o.resetSelection),s()})).catch((function(e){"function"==typeof a&&a(),u()}))}))}};t.getAssets=function(e,n){return function(r,o){return new Promise((function(i,s){var u=o(),l=u.assetFilters;u.loading||r(t.toggleLoading(!0)),e.getAssets(l,n,!0).then((function(e){r({type:a.GET,assetList:e}),r(t.toggleLoading(!1)),i()})).catch((function(e){r(t.toggleLoading(!1)),s()}))}))}};t.deleteAssets=function(e,n,r){return function(o){if(window.confirm("Are you sure you want to delete "+n.length+" assets?"))return new Promise((function(a,i){o(t.toggleLoading(!0)),e.deleteAssets(n).then((function(){o(t.getAssets(e,r)),a()})).catch((function(e){o(t.toggleLoading(!1)),i()}))}))}};t.addAssetTag=function(e,t,n,r){return function(r,o){return new Promise((function(o){var i,s=n.includes(",")?n.split(",").filter(String).map((function(e){return e.trim()})):[n];0===s.length&&o(),s.length>0&&(i=s.map((function(n){return e.addAssetTag(t,n).then((function(){return o()})).catch((function(e){return o(e)}))})),Promise.all(i).then((function(e){o()})),r({type:a.ADD_TAG,id:t,freshTags:s}))}))}};t.updateAssetName=function(e,t,n,r){return void 0===r&&(r=!1),function(o){return new Promise((function(i,s){o({type:a.UPDATE_NAME,id:t,name:n}),r||e.updateAsset(t,{name:n}).then((function(){i()})).catch((function(e){s()}))}))}};t.updateAssetData=function(e,t,n){return function(r){return new Promise((function(o,i){r({type:a.UPDATE_DATA,id:t,name:name}),e.updateAsset(t,{data:JSON.stringify(n)}).then((function(){o()})).catch((function(e){i()}))}))}};t.deleteAssetTag=function(e,t,n){return function(r){return new Promise((function(o,i){r({type:a.DELETE_TAG,id:t,tag:n}),e.deleteAssetTag(t,n).then((function(){o()})).catch((function(e){i()}))}))}},t.default=a},function(e,t,n){var r=n(31),o=n(369),a=n(370),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(395),o=n(398);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";(function(e){var r=n(6),o=n(272),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||o.a;t.a=u}).call(this,n(82)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4);t.default=function(){return r.createElement("div",{className:"spinner"},r.createElement("div",{className:"icon"},o.ICON_CIRCLE_NOTCH))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateFilters=void 0;var r={UPDATE:"assetFilters/UPDATE",RESET:"footageFilters/RESET"};t.updateFilters=function(e){return{type:r.UPDATE,newFilters:e}},t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_COLORS=t.ASSET_TYPES=t.ASSET_ORIGIN=t.ASSET_DISTRO=void 0,t.ASSET_DISTRO="https://d188rqu2y6x0ew.cloudfront.net",t.ASSET_ORIGIN="https://imposium-footage.s3.us-east-1.amazonaws.com",t.ASSET_TYPES={VIDEO_COMPOSITION:"video_composition",STATIC_COMPOSITION:"static_composition",VIDEO:"video",IMAGE:"image",TEMPLATE:"template",AUDIO:"audio",IMAGE_SEQUENCE:"image_sequence",FONT:"font",LUT:"lut",ALL:"all"},t.ASSET_COLORS=((r={})[t.ASSET_TYPES.VIDEO]="rgba(236,22,150, 1)",r[t.ASSET_TYPES.IMAGE]="rgba(241,191,21, 1)",r[t.ASSET_TYPES.AUDIO]="rgba(72,177,222,1)",r[t.ASSET_TYPES.TEMPLATE]="rgba(208, 80, 35, 1)",r[t.ASSET_TYPES.VIDEO_COMPOSITION]="rgba(215, 22, 22, 1)",r[t.ASSET_TYPES.IMAGE_SEQUENCE]="rgba(241,191,21, 1)",r)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayerStyle=void 0;var a=n(0),i=n(8),s=n(34);t.getPlayerStyle=function(e,t,n,r,o,a,s){var u={width:e,height:t},l={width:n,height:r},c=i.fitToContainer(u,l,{scaleMode:"proportionalInside",maxWidth:a,maxHeight:s,padding:o}),d=c.width,p=c.height;return{top:c.top+"px",left:c.left+"px",width:d+"px",height:p+"px"}};var u=function(e){function n(t){var r=e.call(this,t)||this;return r.state={videoHeight:1080,videoWidth:1920,scaleMode:n.SCALE_MODES.AUTOMATIC},r.videoNode=a.createRef(),r}return o(n,e),n.prototype.getVideoStyle=function(){var e=this.state,n=e.videoHeight,r=e.videoWidth,o=this.props,a=o.padding,i=o.width,u=o.height,l=o.maxWidth,c=o.maxHeight,d=void 0!==a?a:s.DEFAULT_PADDING;return n&&r?t.getPlayerStyle(i,u,r,n,d,l,c):{}},n.prototype.setTime=function(e){var t=this.videoNode.current;t&&(t.currentTime=e)},n.prototype.metadataLoaded=function(e){this.setState({videoWidth:e.target.videoWidth,videoHeight:e.target.videoHeight})},n.prototype.renderCustomControls=function(){var e=this.props.customControls;return e?a.cloneElement(e,{videoNode:this.videoNode}):null},n.prototype.render=function(){var e=this,t=this.props,n=t.url,r=t.active,o=t.muted,i=t.customControls,s=t.hideDefaultControls,u=!i&&!s,l=!!this.props.autoPlay&&this.props.autoPlay;return!1!==r?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getVideoStyle()},a.createElement("video",{controls:u,onLoadedMetadata:function(t){return e.metadataLoaded(t)},muted:o,src:n,ref:this.videoNode,preload:"auto",autoPlay:l}),this.renderCustomControls())):null},n.SCALE_MODES={MANUAL:"manual",AUTOMATIC:"automatic"},n}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(341),s=n(27),u=function(){function e(){}return e.LAST_STORY_ID_CACHE="imp_hub_last_story_id",e.LAST_ORG_ID_CACHE="imp_hub_last_org_id",e.SESSION_COOKIE_NAME="auth_state",e.FRESH_COOKIE={sub:"",organization_id:"",story_id:"",stories_hash:0,orgs_hash:0},e.getAccessData=function(t,n){return new Promise((function(r,o){var a=n?n+"/access":e.determineAccessUrl();s.default.get(a,{headers:{Authorization:"Bearer "+t}}).then((function(e){r(e.data?e.data:[])})).catch((function(e){o(e)}))}))},e.getSession=function(){return i.getJSON(e.SESSION_COOKIE_NAME)},e.removeSession=function(){var t=e.scrapeDomain();i.remove(e.SESSION_COOKIE_NAME,{domain:t})},e.buildFreshSession=function(t,n){var r,o,a,i,s=t.idTokenPayload,u=s.sub,l=s.exp,c=n.organizations,d="",p="";try{o=localStorage.getItem(e.LAST_ORG_ID_CACHE),a=localStorage.getItem(e.LAST_STORY_ID_CACHE)}catch(e){console.warn("Failed to look up cached hub settings",e)}o&&"object"==typeof(i=n.organizations.find((function(e){return e.id===o})))&&i.hasOwnProperty("id")&&(d=o),a&&d&&i.stories.find((function(e){return e.id===a}))&&(p=a),!d&&c.length>0&&"object"==typeof c[0]&&c[0].hasOwnProperty("id")&&(d=c[0].id),!p&&c[0].stories.length>0&&"object"==typeof c[0].stories[0]&&c[0].stories[0].hasOwnProperty("id")&&(p=c[0].stories[0].id),r={sub:u,organization_id:d,story_id:p,stories_hash:e.generateStoriesHash(n),orgs_hash:e.generateOrgsHash(n)},e.storeSession(r,l)},e.storeSession=function(t,n){var o=r(r({},e.FRESH_COOKIE),t),a=e.scrapeDomain(),s=new Date(1e3*n);i.set(e.SESSION_COOKIE_NAME,o,{domain:a,expires:s})},e.updateSession=function(t,n){var o=e.getSession(),a=r(r({},o),t);if(t.hasOwnProperty("organization_id"))try{localStorage.setItem(e.LAST_ORG_ID_CACHE,t.organization_id)}catch(e){console.warn("Failed to cache last organization id selected",e)}if(t.hasOwnProperty("story_id"))try{localStorage.setItem(e.LAST_STORY_ID_CACHE,t.story_id)}catch(e){console.warn("Failed to cache last story id selected",e)}e.storeSession(a,n)},e.generateOrgsHash=function(t){var n=t.organizations.map((function(e){return e.id})).join("");return e.string2Hash(n)},e.generateStoriesHash=function(t){var n=t.organizations.reduce((function(e,t){return a(a([],o(e)),o(t.stories))}),[]).map((function(e){return""+e.id+e.name})).join("");return e.string2Hash(n)},e.string2Hash=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.scrapeDomain=function(){var e=window.location.host.split(".").reverse();return e.length>2?"."+e[1]+"."+e[0].split(":")[0]:null},e.determineAccessUrl=function(){var e=window.location,t=e.hostname,n=e.host;return"localhost"===t?"https://api/access":n.includes(".staging.")?"https://api.staging.imposium.com/access":"https://api.imposium.com/access"},e}();t.default=u},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(342),a=function(){function e(){}return e.IMPOSIUM_APP_DEFAULTS={domain:"imposium.auth0.com",scope:"openid",responseType:"token id_token",redirectUri:window.location.origin+"/auth"},e.bindToClient=function(t){e.auth0Client=new o.WebAuth(r({clientID:t},e.IMPOSIUM_APP_DEFAULTS))},e.login=function(){e.auth0Client.authorize()},e.logout=function(){e.auth0Client.logout({returnTo:window.location.origin+"/auth"})},e.checkExpiry=function(e){return e>Date.now().valueOf()/1e3},e.parseIdFromHash=function(t){return new Promise((function(n,r){e.auth0Client.parseHash({options:t},(function(e,t){e?r(e):n(t)}))}))},e.checkSession=function(){return new Promise((function(t,n){e.auth0Client.checkSession({},(function(e,r){e?n(e):t(r)}))}))},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(11),l=n(4),c=n(5),d=function(e){function t(t){var n=e.call(this,t)||this;return n.evtHandlers={copyToClipboard:function(e){return n.copyToClipboard(e)}},n}return o(t,e),t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.onChange=function(e){var t=e.target.value;"true"===t&&(t=!0),"false"===t&&(t=!1),this.props.onChange(t)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.label,o=n.showCopy,d=(n.placeholder,n.options),p=n.value,f=n.width,h=n.buttons,m=n.selectRef,_=n.disable,y=n.tooltip,g=n.info,v=n.labelPosition,b=n.disableFirst,w=[],M=null==p?"":p,L=s.createElement("div",{key:"caret",className:"caret"},l.ICON_CARET_DOWN);return e=h?Array.isArray(h)?i([L],a(h)):[L,h]:[L],o&&e.push(s.createElement(c.default,{key:"btn-copy",style:"subtle",color:"primary",tooltip:"Copy to Clipboard",onClick:this.evtHandlers.copyToClipboard},l.ICON_CLIPBOARD)),d&&(w=d.map((function(e,t){var n=!(0!==t||!b),r=void 0!==e.value?e.value:e,o=void 0!==e.label?e.label:e;return s.createElement("option",{disabled:n,key:"option-"+r,value:r},o)}))),s.createElement(u.default,{customClass:"select-field",label:r,tooltip:y,buttons:e,info:g,labelPosition:v,width:f},s.createElement("select",{value:M,onChange:function(e){return t.onChange(e)},ref:m,disabled:_},w))},t}(s.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=n(4),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.toggle=function(e){this.props.propagate||e.stopPropagation(),this.props.onChange(!this.props.value,e)},t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.label,o=t.width,u=t.tooltip,l=t.info,c=t.labelPosition,d=!0===n?s.ICON_CHECK:null;return a.createElement(i.default,{customClass:"checkbox-field",label:r,tooltip:u,info:l,labelPosition:c,width:o},a.createElement("div",{className:"checkbox",onClick:function(t){return e.toggle(t)}},d))},t}(a.PureComponent);t.default=u},function(e,t,n){var r=n(14).Symbol;e.exports=r},function(e,t,n){var r=n(103),o=n(377),a=n(43);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectMultipleAssets=t.selectAsset=t.resetSelection=t.deselectAsset=t.selectAll=void 0;t.selectAll=function(){return function(e,t){var n=t().assetList.assets.map((function(e){return e.id}));e({type:o.SELECT_ALL,allIds:n})}};t.deselectAsset=function(e){return{type:o.DESELECT_ASSET,id:e}};t.resetSelection=function(){return{type:o.RESET_SELECTION}};t.selectAsset=function(e){return{type:o.SELECT_ASSET,id:e}};t.selectMultipleAssets=function(e){return function(t,n){for(var a=n(),i=a.selectedAssets,s=a.assetList.assets,u=i[i.length-1],l=r(s,u),c=r(s,e),d=l<c?c:l,p=[],f=l<c?l:c;f<=d;f++){var h=s[f];p.push(h.id)}t({type:o.SELECT_MULTIPLE,assets:p}),window.getSelection().removeAllRanges()}};var r=function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return n}},o={SELECT_ALL:"selectAssets/SELECT_ALL",SELECT_MULTIPLE:"selectAssets/SELECT_MULTIPLE",SELECT_ASSET:"selectedAssets/SELECT_ASSET",DESELECT_ASSET:"selectedAssets/DESELECT_ASSET",RESET_SELECTION:"selectedAssets/RESET_SELECTION"};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PADDING=void 0,t.DEFAULT_PADDING=35},function(e,t){e.exports=o},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,u=o.round,l=o.min,c=o.max,d=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,u=null,d=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(O[e])e=O[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:R(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:R(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(B(e.r)&&B(e.g)&&B(e.b)?(f=e.r,h=e.g,m=e.b,t={r:255*A(f,255),g:255*A(h,255),b:255*A(m,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(r=I(e.s),s=I(e.v),t=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),u=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,u,n][l],g:255*[u,n,n,s,i,i][l],b:255*[i,i,u,n,n,s][l]}}(e.h,r,s),d=!0,p="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(r=I(e.s),u=I(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=i(u,s,e+1/3),o=i(u,s,e),a=i(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,u),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,h,m;return n=C(n),{ok:d,format:e.format||p,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function f(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=c(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var u=a-i;switch(o=s>.5?u/(2-a-i):u/(a+i),a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,l:s}}function h(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=c(e,t,n),i=l(e,t,n),s=a,u=a-i;if(o=0===a?0:u/a,a==i)r=0;else{switch(a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,v:s}}function m(e,t,n,r){var o=[H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function _(e,t,n,r){return[H(N(r)),H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=j(n.s),p(n)}function g(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=j(n.s),p(n)}function v(e){return p(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=j(n.l),p(n)}function w(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=c(0,l(255,n.r-u(-t/100*255))),n.g=c(0,l(255,n.g-u(-t/100*255))),n.b=c(0,l(255,n.b-u(-t/100*255))),p(n)}function M(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=j(n.l),p(n)}function L(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function T(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function k(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function x(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function E(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,a=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(p(r));return a}function D(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(p({h:r,s:o,v:a})),a=(a+s)%1;return i}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16)),H(N(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*A(this._r,255))+"%",g:u(100*A(this._g,255))+"%",b:u(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%)":"rgba("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Y[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+_(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),a=n/100;return p({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,a=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},p.mostReadable=function(e,t,n){var r,o,a,i,s=null,u=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;l<t.length;l++)(r=p.readability(e,t[l]))>u&&(u=r,s=p(t[l]));return p.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var O=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(O);function C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return l(1,c(0,e))}function P(e){return parseInt(e,16)}function H(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function N(e){return o.round(255*parseFloat(e)).toString(16)}function R(e){return P(e)/255}var F,z,U,W=(z="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",U="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t){e.exports=a},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCachedAuth=t.login=t.AUTH_CACHE_KEY=void 0,t.AUTH_CACHE_KEY="imposium_hub_creds";t.login=function(e){try{localStorage.setItem(t.AUTH_CACHE_KEY,JSON.stringify(e))}catch(e){console.warn("Failed to cache auth creds...")}return{type:r.LOGIN,auth:e}};t.clearCachedAuth=function(){try{localStorage.removeItem(t.AUTH_CACHE_KEY)}catch(e){console.warn("Failed to remove cached creds")}return{type:r.CLEAR}};var r={LOGIN:"auth/LOGIN",CLEAR:"auth/CLEAR"};t.default=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.storyDeleted=t.storyNameMutated=t.orgNameMutated=t.storyAdded=t.clearCachedAccessList=t.cacheAccessData=t.ACCESS_CACHE_KEY=void 0;var i=n(26);t.ACCESS_CACHE_KEY="imposium_access_list";t.cacheAccessData=function(e){return s(e),{type:u.SET,accessData:e}};t.clearCachedAccessList=function(){try{localStorage.removeItem(t.ACCESS_CACHE_KEY)}catch(e){console.warn("Failed to clear access list cache from local storage.")}return{type:u.CLEAR}};t.storyAdded=function(e,t){return function(n,l){var c=l(),d=c.access,p=c.auth.idTokenPayload.exp,f=c.routing.locationBeforeTransitions.query.organization_id,h=r(r({},d),{organizations:d.organizations.map((function(n){return n.id===f?r(r({},n),{stories:a(a([],o(n.stories)),[{id:e,name:t}]).sort((function(e,t){return e.name.localeCompare(t.name)}))}):n}))});i.default.updateSession({stories_hash:i.default.generateStoriesHash(h)},p),s(h),n({type:u.STORY_ADDED,accessData:h})}};t.orgNameMutated=function(e,t){return function(n,o){var a=o(),l=a.access,c=a.auth.idTokenPayload.exp,d=r(r({},l),{organizations:l.organizations.map((function(n){return n.id===e?r(r({},n),{name:t}):n}))});i.default.updateSession({stories_hash:i.default.generateOrgsHash(d)},c),s(d),n({type:u.ORG_NAME_MUTATION,accessData:d})}};t.storyNameMutated=function(e,t){return function(n,o){var a=o(),l=a.access,c=a.auth.idTokenPayload.exp,d=a.routing.locationBeforeTransitions.query.organization_id,p=r(r({},l),{organizations:l.organizations.map((function(n){return n.id===d?r(r({},n),{stories:n.stories.map((function(n){return n.id===e?r(r({},n),{name:t}):n}))}):n}))});i.default.updateSession({stories_hash:i.default.generateOrgsHash(p)},c),s(p),n({type:u.STORY_NAME_MUTATION,accessData:p})}};t.storyDeleted=function(e){return function(t,n){var o=n(),a=o.access,l=o.auth.idTokenPayload.exp,c=o.routing.locationBeforeTransitions.query.organization_id,d=r(r({},a),{organizations:a.organizations.map((function(t){return t.id===c?r(r({},t),{stories:t.stories.filter((function(t){return t.id!==e}))}):t}))});i.default.updateSession({story_id:"",stories_hash:i.default.generateStoriesHash(d)},l),s(d),t({type:u.STORY_DELETED,accessData:d})}};var s=function(e){try{localStorage.setItem(t.ACCESS_CACHE_KEY,JSON.stringify(e))}catch(e){console.warn("Failed to cache access list in local storage.")}},u={SET:"access/SET",CLEAR:"access/CLEAR",STORY_ADDED:"access/STORY_ADDED",STORY_NAME_MUTATION:"access/STORY_NAME_MUTATION",ORG_NAME_MUTATION:"access/ORG_NAME_MUTATION",STORY_DELETED:"access/STORY_DELETED"};t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=function(e){function t(t){var n=e.call(this,t)||this;return n.inputRef=a.createRef(),n}return o(t,e),t.prototype.onChange=function(e){var t=e.target.value;t=""===t?null:parseFloat(t),this.props.onChange(t)},t.prototype.onSelectFocus=function(){},t.prototype.onSelectBlur=function(){},t.prototype.handleLabelDrag=function(e){var t=this.props.value+e;this.props.onChange(t)},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.placeholder,o=t.width,s=t.readOnly,u=t.buttons,l=t.tooltip,c=t.info,d=t.labelPosition,p=t.min,f=t.max,h=this.props.value;return null===h&&(h=""),a.createElement(i.default,{customClass:"number-field",label:n,tooltip:l,buttons:u,info:c,labelPosition:d,width:o},a.createElement("input",{ref:this.inputRef,type:"number",pattern:"/^-?(0|[1-9]d*)(.d+)?$/",placeholder:r,value:h,readOnly:s,min:p,max:f,onFocus:function(){return e.onSelectFocus()},onBlur:function(){return e.onSelectBlur()},onChange:function(t){return e.onChange(t)}}))},t}(a.PureComponent);t.default=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(108),o=n(68);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(385),o=n(386),a=n(387),i=n(388),s=n(389);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(74);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(19)(Object,"create");e.exports=r},function(e,t,n){var r=n(407);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(422),o=n(75),a=n(423),i=n(424),s=n(425),u=n(18),l=n(111),c=l(r),d=l(o),p=l(a),f=l(i),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||a&&"[object Promise]"!=m(a.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(79);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(123),o=n(124);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=a?a(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),i?o(n,l,c):r(n,l,c)}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),a=n(8),i=r.memo((function(e){if("string"!=typeof e.copy)throw new Error("Prop passed to Tag is not string: ");var t=e.colorize?""+a.string2HexCode(e.copy):"",n="function"==typeof e.removeHandler&&r.createElement("div",{className:"remove-tag",onClick:e.removeHandler},o.ICON_TIMES);return r.createElement("div",{key:e.copy,style:{borderLeftColor:t},className:"imposium-tag"},e.copy,n)}));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAssetUpload=t.uploadAssets=t.toggleAssignToStory=t.toggleAutoTag=void 0;var r=n(17),o=n(27),a={TOGGLE_AUTO_TAG:"assetUploads/TOGGLE_AUTO_TAG",TOGGLE_ASSIGN_TO_STORY:"assetUploads/TOGGLE_ASSIGN_TO_STORY",ADD_UPLOAD:"assetUploads/ADD_UPLOAD",UPDATE_PERCENT_UPLOADED:"assetUploads/UPDATE_PERCENT_UPLOADED",REMOVE_UPLOAD:"assetUploads/REMOVE_UPLOAD"};t.toggleAutoTag=function(e){return{type:a.TOGGLE_AUTO_TAG,toggle:e}};t.toggleAssignToStory=function(e){return{type:a.TOGGLE_ASSIGN_TO_STORY,toggle:e}};t.uploadAssets=function(e,t,n,s){return function(u,l){for(var c=l().assetUploads,d=c.autoTag,p=c.uploads,f=c.assignToStory,h=0,m=[],_=t.length>5?4:t.length-1,y=t.map((function(e){var t=p.filter((function(t){return t.filename.includes(e.name)})),n=t.length>0?e.name+" ("+t.length+")":e.name,r=d?e.name.substr(0,e.name.lastIndexOf(".")).split("_").join(","):"";return u({type:a.ADD_UPLOAD,uploadMeta:{filename:n,percent:0}}),{file:e,tags:r,filename:n,onUploadProgress:function(e){u({type:a.UPDATE_PERCENT_UPLOADED,percent:Math.floor(100*e.loaded/e.total),filename:n})}}})),g=function(t){var l=y.length,c=f&&n?n:null;e.uploadAsset(c,y[t].tags,y[t].file,y[t].onUploadProgress,y[t].filename).then((function(o){m.push((s&&s(o[0]),{footageId:o[0].id,jobId:o[0].job_id,filename:y[t].filename,onProcessed:function(){var t=m.filter((function(e){return e.jobId===o[0].job_id}))[0].filename;u({type:a.REMOVE_UPLOAD,filename:t}),r.doAssetTableHydration(e,n)}})),h!==l-1?g(h+=1):(m=m.filter((function(t,o){var i="string"==typeof t.jobId;return i||(u({type:a.REMOVE_UPLOAD,filename:t.filename}),r.doAssetTableHydration(e,n)),i}))).length>0&&i(e,m,-1)})).catch((function(e){o.default.isCancel(e)&&h!==l-1&&g(h+=1)}))},v=0;v<=_;v++)g(v),h=v}};var i=function(e,t,n){n=window.setTimeout((function(){var r=t.map((function(t){return e.getJob(t.jobId)}));Promise.all(r).then((function(r){var o;clearTimeout(n),r.forEach((function(e){"processing"!==e.status&&"completed"!==e.status||(o=t.find((function(t){return t.jobId===e.id})))&&(o.onProcessed(),t=t.filter((function(t){return t.jobId!==e.id})))})),t.length>0&&i(e,t,n)})).catch((function(e){console.error("Failed to poll for processing jobs:",e)}))}),5e3)};t.cancelAssetUpload=function(e,t){return function(n){t.cancelUploadAssets(e),n({type:a.REMOVE_UPLOAD,filename:e})}},t.default=a},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getNewCompositionLayer=t.VARIABLE_TYPES=t.TEXT_SIZE_OPTIONS=t.DEFAULT_FONT=t.FILL_MODES=t.STADARD_FONTS=t.FONT_TYPE_OPTIONS=t.FONT_TYPES=void 0;var o=n(8);t.FONT_TYPES={STANDARD:"standard",CUSTOM:"custom"},t.FONT_TYPE_OPTIONS=[{label:"Standard",value:t.FONT_TYPES.STANDARD},{label:"Custom",value:t.FONT_TYPES.CUSTOM}],t.STADARD_FONTS=["Arial","Courier New","Georgia","Impact","Times New Roman","Trebuchet MS","Verdana"],t.FILL_MODES={FIT:"fit",FILL:"fill",STRETCH:"stretch"},t.DEFAULT_FONT="Arial",t.TEXT_SIZE_OPTIONS=[{label:"6px",value:6},{label:"8px",value:8},{label:"9px",value:9},{label:"10px",value:10},{label:"11px",value:11},{label:"12px",value:12},{label:"14px",value:14},{label:"16px",value:16},{label:"18px",value:18},{label:"24px",value:24},{label:"30px",value:30},{label:"36px",value:36},{label:"48px",value:48},{label:"60px",value:60},{label:"72px",value:72}],t.VARIABLE_TYPES={TEXT:"text",NUMBER:"number",BOOLEAN:"boolean",ENUM:"enum",IMAGE:"image",VIDEO:"video",AUDIO:"audio"};t.getNewCompositionLayer=function(){var e=r({},a);return e.id=o.generateUUID(),e};var a={id:null,x:0,y:0,width:200,height:100,rotation:0,name:"New Layer",content:"",color:"#000000",background_color:"transparent",font_size:24,font_type:"standard",font_weight:400,font:t.DEFAULT_FONT,custom_font_id:null,custom_font_url:null,letter_spacing:null,word_spacing:null,line_height:null,horizontal_alignment:"center",vertical_alignment:"center",text_wrap:!0,text_fit:!0}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BigLink=t.WizardError=t.TabHeader=t.TabContent=t.BigButton=void 0;var u=n(0),l=n(5),c=n(29),d=n(16),p=n(4),f=n(7),h=n(24),m=n(507),_=n(508),y=n(135),g=n(512),v=n(271),b=n(10),w=n(55),M=n(9),L=function(e){function n(t){var n=e.call(this,t)||this;return n.onSelectOption=function(e){n.props.publishData.publishing&&alert("WARNING: Your publish is still in progress, your changes will not be present in the rendered videos until the publish is complete"),n.setState({screenIndex:e,done:!1})},n.onCompositionChange=function(e){n.setState({selectedComposition:e})},n.onCredentialsChange=function(e){n.setState({accessKey:e})},n.onDoneHandler=function(){n.setState({done:!0})},n.state={compositions:[],selectedComposition:null,newPublish:!0,status:"",queryRunning:!0,publishMessage:"",screenIndex:0,accessKey:null,credentials:[],done:!1},n.hiddenFileInputRef=u.createRef(),n}return o(n,e),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.story,r=t.api,o=t.handleError,s=t.activeComposition;r.getAssets({type:h.ASSET_TYPES.VIDEO_COMPOSITION},n.id).then((function(t){var n=t.assets[0]?t.assets[0].id:null;if(e.setState({compositions:t.assets,selectedComposition:s||n}),t.assets.length>0){var r=t.assets[0],o={value:r.id,label:r.name};e.setState({selectedComposition:o})}})).catch((function(e){o(f.integration.errorPullingComps)})),r.getAccssCredentials().then((function(t){0===t.length?r.createAccessCredentials("default").then((function(t){var n=e.state.credentials,r=i(i([],a(n)),[t]);e.setState({credentials:r,accessKey:t[0].access_key_id})})):e.setState({credentials:t,accessKey:t[0].access_key_id})})).catch((function(e){o(f.integration.errorGettingCreds)}))},n.prototype.checkStatus=function(){var e=this,t=this.props,n=t.project.storyId,r=t.api,o=t.handleError;n&&this.setState({queryRunning:!0,newPublish:!1,status:""},(function(){r.getStoryStatus(n).then((function(t){t?t.publishing&&e.setState({status:f.header.publishing},(function(){e.pollStatus(t.job_id)})):e.setState({queryRunning:!1,status:f.header.working})})).catch((function(t){e.setState({queryRunning:!1},(function(){404===t.response.status?e.setState({queryRunning:!1,status:f.header.working}):(o(f.header.statusError),e.setState({status:""}))}))}))}))},n.prototype.pollStatus=function(e){var t=this,n=this.props,r=n.api,o=n.handleError;r.pollJob(e).then((function(){t.checkStatus()})).catch((function(){o(f.header.publishPollError),t.setState({status:""})}))},n.prototype.handlePublish=function(){var e=this.props,t=e.story.id,n=e.api,r=e.handleError;this.props.publishVersion(n,t).catch((function(e){r(e)})),this.setState({screenIndex:1})},n.prototype.renderLowerButtons=function(){var e=this,t=this.state,n=t.screenIndex,r=t.done,o=this.props.publishing,a=[];if(0===n)a.push(u.createElement(l.default,{tooltip:f.publish.btnPublish,size:"large",disabled:o,key:"btn-publish",onClick:function(){return e.handlePublish()},color:"primary"},f.publish.btnPublish)),a.push(u.createElement(l.default,{tooltip:f.publish.btnSkip,key:"btn-skip",size:"large",onClick:function(){return e.setState({screenIndex:1})},color:"primary"},f.publish.btnSkip));else{r&&a.push(u.createElement(l.default,{tooltip:f.publish.btnFinished,size:"large",key:"btn-finish",onClick:function(){return e.props.onClose()},color:"primary"},f.publish.btnFinished));var i=1===n?0:1;a.push(u.createElement(l.default,{tooltip:f.publish.btnBack,size:"large",key:"btn-back",onClick:function(){return e.setState({screenIndex:i})},color:"primary"},f.publish.btnBack))}return a},n.prototype.renderPublish=function(){return u.createElement("div",null,u.createElement("h2",null,f.publish.publishStepTitle),u.createElement(d.default,null),u.createElement("p",null,f.publish.publishStepDesc))},n.prototype.renderDistributionOptions=function(){var e,n,r,o,a=this,i=[],l=[],h=this.state,m=h.compositions,_=h.selectedComposition,y=h.credentials,g=h.accessKey;try{for(var v=s(m),b=v.next();!b.done;b=v.next()){var w=b.value;i.push({value:w.id,label:w.name})}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}try{for(var M=s(y),L=M.next();!L.done;L=M.next()){var T=L.value;l.push({value:T.access_key_id,label:T.name})}}catch(e){r={error:e}}finally{try{L&&!L.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}var k=[{label:u.createElement("span",null,p.ICON_GLOBE," ",f.publish.btnWebsite),onClick:function(e){return a.onSelectOption(2)}},{label:u.createElement("span",null,p.ICON_EMAIL," ",f.publish.btnEmail),onClick:function(e){return a.onSelectOption(3)}},{label:u.createElement("span",null,p.ICON_HUBSPOT," ",f.publish.btnHubspot),onClick:function(e){return a.onSelectOption(5)}},{label:u.createElement("span",null,p.ICON_PROJECT_DIAGRAM," ",f.publish.btnAPI),onClick:function(e){return a.onSelectOption(6)}},{label:u.createElement("span",null,p.ICON_DOWNLOAD," ",f.publish.btnExport),onClick:function(e){return a.onSelectOption(7)}}];return u.createElement("div",null,u.createElement("h2",null,f.publish.distributeStepTitle),u.createElement(d.default,null),u.createElement("p",null,f.publish.distributeStepDesc),u.createElement(d.default,null),!this.state.selectedComposition&&u.createElement("p",{className:"text-danger"},f.publish.noCompErrorDesc),u.createElement("div",{style:{marginTop:"10px"}},u.createElement(c.default,{label:f.project.compName,value:_,onChange:this.onCompositionChange,options:i,tooltip:f.project.tooltipCompId}),u.createElement(c.default,{label:f.publish.accessKey,value:g,onChange:this.onCredentialsChange,options:l,tooltip:f.publish.tooltipAccessKey}),u.createElement("div",{className:"link-wrapper"},null==k?void 0:k.map((function(e,n){return u.createElement(t.BigButton,{key:n,disabled:!a.state.selectedComposition,label:e.label,onClick:e.onClick})})))))},n.prototype.render=function(){var e,t=this.props,n=t.story,r=t.api,o=t.handleError,a=t.createFreshBatch,i=t.getBatches,s=t.getBatchExport,l=t.importBatchFromCsv,c=t.handleNotification,p=t.renderBatch,h=t.batchJobs,b=this.state,w=b.screenIndex,M=b.status,L=b.selectedComposition,T=b.compositions,k=b.accessKey,x=(null===(e=T.find((function(e){return e.id===L})))||void 0===e?void 0:e.name)||"";return u.createElement("div",{className:"publish-wizard"},u.createElement("div",{className:"publish-wizard-header"},f.publish.publishTitle,u.createElement(v.default,{api:r})),u.createElement("div",null,0===w&&this.renderPublish(),1===w&&this.renderDistributionOptions(),2===w&&u.createElement(y.default,{story:n,compositionId:L,accessKey:k}),(3===w||7===w)&&u.createElement(g.default,{isExport:7===w,api:r,story:n,onDone:this.onDoneHandler,status:M,renderBatch:p,batchJobs:h,accessKey:k,compositionId:L,compositionName:x,handleError:o,createFreshBatch:a,getBatches:i,getBatchExport:s,importBatchFromCsv:l}),5===w&&u.createElement(m.default,{handleError:o,status:M,accessKey:k,story:n,handleNotification:c,compositionId:L}),6===w&&u.createElement(_.default,null),u.createElement("br",null),u.createElement(d.default,null),u.createElement("div",{className:"lower-buttons"},this.renderLowerButtons())))},n}(u.PureComponent);t.default=M.connect((function(e){return{publishData:e.publish}}),(function(e){return b.bindActionCreators({publishVersion:w.publishVersion},e)}))(L);t.BigButton=function(e){return u.createElement("div",{className:"big-link "+(e.disabled&&"disabled"),onClick:function(){return e.onClick()},style:e.style},u.createElement("h1",null,e.label))};t.TabContent=function(e){var t=e.children;return u.createElement("div",{className:"tab-content"},u.createElement("div",{className:"settings-tab"},u.createElement("div",{className:"integration-details"},t)))};t.TabHeader=function(e){var t=e.className,n=e.title;return u.createElement("div",{className:"tab-header"},u.createElement("div",{className:t||"tab-header-option active"},n))};t.WizardError=function(e){var t=e.description,n=e.title;return u.createElement("div",{className:"publish-wizard-error"},u.createElement("h3",null,n),u.createElement("p",null,t))};t.BigLink=function(e){return u.createElement("a",{className:"big-link",target:"_blank",href:e.link},u.createElement("h1",null,e.label))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearStoryPublishStatus=t.publishVersion=t.cancelPublish=t.getStoryPublishStatus=void 0;var r=n(7),o={CLEAR_PUBLISH_STATUS:"publish/CLEAR_PUBLISH_STATUS",UPDATE_PUBLISH_STATUS:"publish/UPDATE_PUBLISH_STATUS"};t.getStoryPublishStatus=function(e,n){return function(a){return new Promise((function(i,s){e.getStoryStatus(n).then((function(i){if(i&&(a({type:o.UPDATE_PUBLISH_STATUS,data:i}),i.publishing)){var u=i.job_id;e.pollJob(u).then((function(){return a(t.getStoryPublishStatus(e,n))})).catch((function(e){console.error(e),s(r.header.publishPollError)}))}})).catch((function(e){var t;404!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&(console.error(e),s(r.header.publishPollError))}))}))}};t.cancelPublish=function(e,n){return function(r){return new Promise((function(o,a){e.cancelPublish(n).then((function(){e.cancelJobPolling().then((function(){r(t.getStoryPublishStatus(e,n))})).catch((function(e){throw a(e),e}))})).catch((function(e){throw a(e),e}))}))}};t.publishVersion=function(e,n){return function(o){return new Promise((function(a,i){e.runPublish(n,"").then((function(r){o(t.getStoryPublishStatus(e,n))})).catch((function(){i(r.header.publishJobError)}))}))}};t.clearStoryPublishStatus=function(e){return function(t){e.cancelJobPolling(),t({type:o.CLEAR_PUBLISH_STATUS})}},t.default=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(38))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z";t.definition={prefix:"fas",iconName:"user-lock",icon:[640,512,r,"f502",o]},t.faUserLock=t.definition,t.prefix="fas",t.iconName="user-lock",t.width=640,t.height=512,t.ligatures=r,t.unicode="f502",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";t.definition={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,r,"f071",o]},t.faExclamationTriangle=t.definition,t.prefix="fas",t.iconName="exclamation-triangle",t.width=576,t.height=512,t.ligatures=r,t.unicode="f071",t.svgPathData=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=function(e){function t(n){var r=e.call(this,n)||this;return r.resizeHandler=function(){return r.onResize()},r.clickHandler=function(e){return r.detectOutsideClick(e)},r.escHandler=function(e){return r.onEsc(e)},r.dropdownRef=null,r.onResize=function(){var e=r.props.toggleRef;if(void 0!==e){var t=e.current.getBoundingClientRect(),n=t.top,o=t.left,a=t.bottom,i=t.right;r.setState({offset:{top:n,left:o,bottom:a,right:i}})}},r.cancelRender=function(e){void 0===e&&(e=!1);var t=r.props.onOutsideClick;window.removeEventListener("resize",r.resizeHandler),window.removeEventListener("mousedown",r.clickHandler),window.addEventListener("keydown",r.onEsc),r.setState({build:!1,offset:{}}),e&&t()},r.onEsc=function(e){e.keyCode===t.ESC_CODE&&r.cancelRender(!0)},r.detectOutsideClick=function(e){var t=r.props.toggleRef,n=e.target,o=!(!r.dropdownRef.current||!r.dropdownRef.current.contains(n)),a=!!(t&&t.current&&t.current.contains(n));o||a||r.cancelRender(!0)},r.state={build:!1,offset:{}},r.dropdownRef=a.createRef(),r}return o(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.show&&!e.show&&(this.onResize(),this.setState({build:!0},(function(){window.addEventListener("resize",t.resizeHandler),window.addEventListener("mousedown",t.clickHandler),window.addEventListener("keydown",t.onEsc)}))),!this.props.show&&e.show&&this.cancelRender()},t.prototype.render=function(){var e=this.state,t=e.build,n=e.offset,r=this.props,o=r.show,i=r.position,s=r.children,u={position:r.fixed?"fixed":"absolute",transform:t?"scaleY(1)":"scaleY(0)",opacity:t?"1":"0"};if(!o)return null;if(n){var l=document.documentElement.clientWidth,c=(n.top,n.left),d=n.bottom,p=n.right;switch(i){case"topleft":case"topright":case"bottomleft":u.top=d+5+"px",u.left=c+"px",u.transformOrigin="top left";break;case"bottomright":u.top=d+5+"px",u.right=l-p+"px",u.transformOrigin="top right"}}return a.createElement("div",{className:"imposium-dropdown",style:u,ref:this.dropdownRef},s)},t.ESC_CODE=27,t}(a.PureComponent);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=t.renderTooltipProps=void 0;var r=n(0),o=n(35),a=n(351);t.renderTooltipProps=function(e,t){return t?{"data-tip":"object"==typeof t?t.content:t,"data-for":e}:{}};t.renderTooltip=function(e,t){var n=document.getElementById("tooltips");if(t&&n){var i="light",s="top";"object"==typeof t&&(i=t.theme?t.theme:"light",s=t.position?t.position:"top");var u=r.createElement(a,{place:s,offset:{top:0,right:0,bottom:0,left:0},id:e,className:"imposium-button-tooltip-"+i,delayShow:1e3,effect:"solid"});return o.createPortal(u,n)}return null}},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(11),u=n(60),l=function(e){function t(t){var n=e.call(this,t)||this;return n.clickCounter=0,n.handleMultipleClicks=function(e,t){n.clickCounter++,1===n.clickCounter&&(n.clickTimeout=window.setTimeout((function(){n.clickCounter=0,e()}),300)),2===n.clickCounter&&(clearTimeout(n.clickTimeout),n.clickCounter=0,t())},n.render=function(){var e=n.props,t=e.value,r=e.label,o=e.options,l=e.width,c=e.tooltip,d=e.info,p=e.labelPosition,f={width:100/o.length+"%"};return i.createElement(s.default,{customClass:"button-group-field",label:r,tooltip:c,info:d,labelPosition:p,width:l},i.createElement("div",{className:"button-group"},o.map((function(e,r){var o=e.value,s=e.label,l=e.icon?e.icon:null,c=o+"-"+r,d=o===t,p=d?"active":"",h=d?null:function(){n.props.onChange(o)};return i.createElement("div",a({key:"option-"+o,style:f,className:"button-group-option "+p},u.renderTooltipProps(c,e.tooltip),{onClick:"function"==typeof e.onDoubleClick?function(){return n.handleMultipleClicks(h,e.onDoubleClick)}:h}),l||s,u.renderTooltip(c,e.tooltip))}))))},n}return o(t,e),t}(i.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(5),l=n(11),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={internalValue:t.value,editing:!1},n.evtHandlers={toggleEditing:function(e){return n.toggleEditing(e)},copyToClipboard:function(e){return n.copyToClipboard(e)}},n.inputRef=s.createRef(),n}return o(t,e),t.prototype.blur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.focus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.getValue=function(){var e=this.props,t=e.controlled,n=e.value,r=this.state.internalValue;return t?r:n},t.prototype.onChange=function(e){this.props.controlled?this.setState({internalValue:e.target.value}):this.props.onChange(e.target.value)},t.prototype.renderButtons=function(){var e=this.props,t=e.controlled,n=(e.readOnly,e.buttons),r=e.showCopy,o=this.state.editing,l=n?i([],a(n)):[];if(t){var d=o?c.ICON_CHECK:c.ICON_EDIT;l.push(s.createElement(u.default,{key:"btn-edit",style:"subtle",color:"secondary",onClick:this.evtHandlers.toggleEditing},d))}return r&&l.push(s.createElement(u.default,{key:"btn-copy",style:"subtle",tooltip:"Copy to Clipboard",color:"primary",onClick:this.evtHandlers.copyToClipboard},c.ICON_CLIPBOARD)),l},t.prototype.toggleEditing=function(e){var t=this,n=this.state,r=n.editing,o=n.internalValue,a=this.props.value;r?this.setState({editing:!1},(function(){o!==a&&t.props.onSubmit(t.state.internalValue)})):this.setState({editing:!0},(function(){var e=t.inputRef.current;e&&e.focus()}))},t.prototype.componentDidUpdate=function(e){this.props.controlled&&e.value!==this.props.value&&this.setState({internalValue:this.props.value})},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.placeholder,o=t.controlled,a=t.disabled,i=t.readOnly,u=t.width,c=t.tooltip,d=t.info,p=t.labelPosition,f=this.state.editing,h=o&&!f||a;return s.createElement(l.default,{customClass:"text-area-field",label:n,tooltip:c,buttons:this.renderButtons(),info:d,labelPosition:p,width:u},s.createElement("textarea",{placeholder:r,value:this.getValue(),disabled:h,readOnly:i,ref:this.inputRef,onChange:function(t){return e.onChange(t)},onFocus:function(t){return e.focus(t)},onBlur:function(t){return e.blur(t)}}))},t}(s.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=n(529),u=function(e){function t(t){var n=e.call(this,t)||this;return n.transparentBg='url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center',n.state={pickerOpen:!1},n.picker=a.createRef(),n.clickOutsideHandler=function(e){return n.handleClickOutside(e)},n}return o(t,e),t.prototype.togglePicker=function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=!this.state.pickerOpen;this.setState({pickerOpen:n},(function(){t.state.pickerOpen?document.addEventListener("click",t.clickOutsideHandler):document.removeEventListener("click",t.clickOutsideHandler)}))},t.prototype.handleClickOutside=function(e){var t=e.target,n=this.picker.current;do{if(t===n)return;t=t.parentNode}while(t);document.removeEventListener("click",this.clickOutsideHandler),this.setState({pickerOpen:!1})},t.prototype.handleChangeComplete=function(e,t){return this.props.onChange(e)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.label,o=(n.placeholder,n.width),u=(n.readOnly,n.buttons),l=n.tooltip,c=n.value,d=n.enableAlpha,p=n.presetColors,f=n.info,h=n.labelPosition,m=!d,_=n.pickerPosition||"left",y=this.state.pickerOpen?a.createElement(s.SketchPicker,{color:c,disableAlpha:m,presetColors:p,onChangeComplete:function(e,n){return t.handleChangeComplete(e,n)}}):null;return e="transparent"===c?{background:this.transparentBg,border:"1px solid #1d1d1d",boxSizing:"border-box"}:{backgroundColor:c},a.createElement(i.default,{customClass:"color-field",label:r,tooltip:l,buttons:u,info:f,labelPosition:h,width:o},a.createElement("div",{className:"swatch",style:e,onClick:function(e){return t.togglePicker(e)}}),a.createElement("div",{className:"picker picker-"+_,ref:this.picker},y))},t}(a.PureComponent);t.default=u},function(e,t,n){var r=n(102),o=n(379);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){(function(e){var r=n(14),o=n(375),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(this,n(42)(e))},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(101),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(42)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(107)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(44),o=n(390),a=n(391),i=n(392),s=n(393),u=n(394);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(19)(n(14),"Map");e.exports=r},function(e,t,n){var r=n(399),o=n(406),a=n(408),i=n(409),s=n(410);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(421),o=n(118),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},function(e,t,n){var r=n(12),o=n(79),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(18),o=n(15);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(103),o=n(450),a=n(43);e.exports=function(e){return a(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(114);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAssetTagToList=t.getAssetTagList=void 0;var r={GET:"assetTags/GET",ADD:"assetTags/ADD"};t.getAssetTagList=function(e,t){return function(n){return new Promise((function(o,a){e.getAssetTags(t).then((function(e){n({type:r.GET,assetTags:e}),o()})).catch((function(e){console.error("Failed to get tag list",e),a()}))}))}};t.addAssetTagToList=function(e){return{type:r.ADD,freshTags:e}},t.default=r},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(477),i=n(61);t.default=function(e){var t=r(i.useDrop({accept:[a.NativeTypes.FILE],drop:function(t,n){e.onDrop&&e.onDrop(e,n)},collect:function(e){return{isOver:e.isOver,canDrop:e.canDrop}}}),2),n=t[0],s=(n.canDrop,n.isOver,t[1]);return o.createElement("div",{className:e.className||"",ref:e.disable?void 0:s},e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(24),a=n(7),i=n(4),s=r.memo((function(e){var t={color:o.ASSET_COLORS[e.type]};switch(e.type){case"filter":return r.createElement("span",null,i.ICON_FILTER);case"all":return r.createElement("span",{title:a.assets.iconTypes.all},i.ICON_TIMES);case o.ASSET_TYPES.VIDEO:return r.createElement("span",{title:a.assets.iconTypes.video,style:t},i.ICON_VIDEO);case o.ASSET_TYPES.AUDIO:return r.createElement("span",{title:a.assets.iconTypes.audio,style:t},i.ICON_AUDIO_TYPE);case o.ASSET_TYPES.IMAGE:return r.createElement("span",{title:a.assets.iconTypes.image,style:t},i.ICON_IMAGE);case o.ASSET_TYPES.IMAGE_SEQUENCE:return r.createElement("span",{title:a.assets.iconTypes.image_sequence,style:t},i.ICON_IMAGE_SEQ_TYPE);case o.ASSET_TYPES.TEMPLATE:return r.createElement("span",{title:a.assets.iconTypes.template,style:t},i.ICON_FILE_ARCHIVE);case o.ASSET_TYPES.VIDEO_COMPOSITION:return r.createElement("span",{title:a.assets.iconTypes.video_composition,style:t},i.ICON_LAYER_GROUP);case o.ASSET_TYPES.LUT:return r.createElement("span",{title:a.assets.iconTypes.lut},i.ICON_CUBE);case o.ASSET_TYPES.FONT:return r.createElement("span",{title:a.assets.iconTypes.font},i.ICON_FONT);case o.ASSET_TYPES.STATIC_COMPOSITION:return r.createElement("span",{title:a.assets.iconTypes.static_composition},i.ICON_FILE_CODE);default:return null}}));t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(24),s=n(53),u=n(8),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={fontError:!1,fontLoaded:!1},n.innerTextRef=a.createRef(),n}return o(t,e),t.prototype.componentDidMount=function(){this.loadFont()},t.prototype.componentDidUpdate=function(e){var t=this.state.fontLoaded,n=this.props.options,r=n.font,o=n.custom_font_id,a=n.content;e.options.font===r&&e.options.custom_font_id===o||this.loadFont(),e.options.content!==a&&t&&this.fitText()},t.prototype.fitElement=function(e,t,n){for(var r=window.getComputedStyle(e,null),o=parseFloat(r.getPropertyValue("font-size")),a=parseFloat(r.getPropertyValue("letter-spacing")),i=parseFloat(r.getPropertyValue("line-height")),s=parseFloat(r.getPropertyValue("word-spacing")),u=a/o,l=i/o,c=s/o,d=e.offsetWidth,p=e.offsetHeight;d>t||p>n;)o--,a=Math.round(o*u),i=Math.round(o*l),s=Math.round(o*c),e.style.fontSize=o+"px",e.style.letterSpacing=a+"px",e.style.wordSpacing=s+"px",e.style.lineHeight=i+"px",d=e.offsetWidth,p=e.offsetHeight},t.prototype.loadFont=function(){var e=this,t=this.props.options,n=t.font,r=t.font_size,o=t.font_type,a=t.custom_font_url;if(o===s.FONT_TYPES.CUSTOM&&r&&a){var l=u.s3Url(a,i.ASSET_DISTRO,i.ASSET_ORIGIN),c=!1;try{c=document.fonts.check(r+"px "+n)}catch(e){this.errorLoadingFont()}c?this.fontReady():this.setState({fontLoaded:!1},(function(){var t=new FontFace(n,"url("+l+")",{style:"normal",weight:"normal"});t.load().then((function(n){document.fonts.add(t),e.fontReady()})).catch((function(t){e.errorLoadingFont()}))}))}else o===s.FONT_TYPES.STANDARD&&this.fontReady()},t.prototype.formatContent=function(){var e=this.props,t=e.options.content,n=e.inventory,r=t||"";if(n)for(var o in n)if(n.hasOwnProperty(o)){var i=new RegExp("{{"+o+"}}","g"),s=n[o];s&&(s=s.toString(),r=r.replace(i,s))}for(var u=r.split("\n"),l=[],c=0;c<u.length;c++)l.push(a.createElement("span",{key:"s-"+c},u[c])),u[c+1]&&l.push(a.createElement("br",{key:"b-"+c}));return l},t.prototype.fitText=function(){if(this.props.options.text_fit){var e=this.innerTextRef.current;e&&this.fitElement(e,this.props.options.width,this.props.options.height)}},t.prototype.errorLoadingFont=function(){var e=this;this.setState({fontError:!0},(function(){e.fontReady()}))},t.prototype.fontReady=function(){var e=this;this.setState({fontLoaded:!0},(function(){e.fitText(),e.props.onReady&&e.props.onReady()}))},t.prototype.getFlexStart=function(e){switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end"}},t.prototype.render=function(){var e=this.props.options,t=e.color,n=e.background_color,r=e.line_height,o=e.word_spacing,i=e.letter_spacing,s=e.font_size,u=e.font_weight,l=e.font,c=e.horizontal_alignment,d=e.vertical_alignment,p={color:t,lineHeight:r?r+"px":"normal",wordSpacing:o?o+"px":"normal",letterSpacing:i?i+"px":"normal",fontSize:s?s+"px":"0px",fontWeight:u||400,whiteSpace:e.text_wrap?"normal":"nowrap",fontFamily:this.state.fontError?"Arial, helvetica, sans-serif":l},f={display:"flex",textAlign:c,justifyContent:this.getFlexStart(c),alignItems:d,backgroundColor:n};return a.createElement("div",{className:"composition-text-layer",style:f},a.createElement("div",{className:"inner-text",style:p,ref:this.innerTextRef},this.formatContent()))},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(35);t.default=function(e){var t=e.children,n=e.id,a=document.getElementById(n),i=document.createElement("div");return r.useEffect((function(){return a.appendChild(i),function(){a.removeChild(i)}}),[i,a]),o.createPortal(t,i)}},function(e,t,n){"use strict";(function(e){var r=n(56),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.a.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();t.a=s}).call(this,n(82)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssetsTableTypeCell=t.AssetsTableTypeFilter=t.AssetsTableSelectCell=t.AssetsTableSelectFilter=t.AssetsTablePreviewCell=t.AssetsTableDropzone=t.AssetsTableDateCell=t.AssetsTypeIcon=t.ImageSequencePlayer=t.ImagePreview=t.VideoPreview=t.AudioPlayer=t.VideoPlayer=t.ImagePlayer=t.AssetDetails=t.Portal=t.ShortcutMenu=t.StoryPreviewer=t.LogViewer=t.ServiceIcon=t.NoAccess=t.Spinner=t.DeterminateLoader=t.Section=t.SliderField=t.ToastService=t.TextAreaField=t.TextField=t.Tag=t.Tabs=t.ColorField=t.SelectField=t.NumberField=t.Modal=t.ListField=t.HRule=t.FieldWrapper=t.DataTablePaginator=t.DataTable=t.ControlledList=t.CheckboxField=t.Card=t.ButtonMenuItem=t.ButtonMenu=t.ButtonGroupField=t.Button=t.ImposiumDropdown=t.ImposiumHeader=t.AuthGate=t.AppWrapper=void 0,t.LegacyAPI=t.API=t.SessionService=t.AuthService=t.assetActions=t.assetTags=t.addAssetTagToList=t.getAssetTagList=t.selectedAssets=t.assetUploads=t.assetList=t.assetFilters=t.resetSelection=t.deselectAsset=t.selectAsset=t.uploadAssets=t.toggleAutoTag=t.doAssetTableHydration=t.updateAssetData=t.updateAssetName=t.deleteAssetTag=t.addAssetTag=t.deleteAssets=t.getAssets=t.updateFilters=t.storyDeleted=t.orgNameMutated=t.storyNameMutated=t.storyAdded=t.clearCachedAccessList=t.cacheAccessData=t.access=t.clearCachedAuth=t.login=t.auth=t.StaticCompositionRenderer=t.StaticCompositionEditor=t.PreviewNotAvailable=t.DroppableAssetRenderer=t.FontAssetPreview=t.AssetsUploadMenu=t.AssetField=t.AssetsTableComplexTagCell=t.AssetsTableTagsPivot=t.AssetsTableTagsFilter=t.AssetsTableTagsCell=t.AssetsTableDurationCell=t.AssetsTableNameCell=t.AssetsTableNameFilter=t.AssetsTableStatusCell=void 0,t.PublishStatusIndicator=t.getStoryPublishStatus=t.clearStoryPublishStatus=t.publishVersion=t.publish=t.PublishWizard=t.ASSET_TYPES=t.CompositionRendererLayer=t.TextLayer=t.formatDateDefault=t.padStart=t.toFixed=t.validateAssetMimetype=t.mimetypeConformsToOverlay=t.filterHotkeys=t.formattedTime=t.fitToContainer=t.scrapeEmail=t.parameterizeServiceUrl=t.string2HexCode=t.getFirstStoryInOrg=t.validateAccessLevel=t.Timer=t.StorageService=void 0;var r=n(276);t.AppWrapper=r.default;var o=n(344);t.AuthGate=o.default;var a=n(91);t.ImposiumHeader=a.default;var i=n(59);t.ImposiumDropdown=i.default;var s=n(5);t.Button=s.default;var u=n(96);t.ButtonMenu=u.default;var l=n(97);t.ButtonMenuItem=l.default;var c=n(98);t.Card=c.default;var d=n(99);t.ControlledList=d.default;var p=n(352);t.DataTable=p.default;var f=n(357);t.DataTablePaginator=f.default;var h=n(358);t.Modal=h.default;var m=n(359);t.Tabs=m.default;var _=n(11);t.FieldWrapper=_.default;var y=n(30);t.CheckboxField=y.default;var g=n(360);t.ListField=g.default;var v=n(63);t.ButtonGroupField=v.default;var b=n(41);t.NumberField=b.default;var w=n(29);t.SelectField=w.default;var M=n(13);t.TextField=M.default;var L=n(64);t.TextAreaField=L.default;var T=n(362);t.ToastService=T.default;var k=n(366);t.SliderField=k.default;var x=n(65);t.ColorField=x.default;var E=n(51);t.Tag=E.default;var S=n(16);t.HRule=S.default;var D=n(473);t.Section=D.default;var O=n(21);t.Spinner=O.default;var Y=n(90);t.NoAccess=Y.default;var C=n(92);t.ServiceIcon=C.default;var A=n(126);t.DeterminateLoader=A.default;var j=n(474);t.AssetsTableDateCell=j.default;var P=n(475);t.AssetsTablePreviewCell=P.default;var H=n(476);t.AssetsTableDurationCell=H.default;var I=n(127);t.AssetField=I.default;var N=n(84);t.AssetsTableDropzone=N.default;var R=n(479);t.AssetsTableNameCell=R.default;var F=n(480);t.AssetsTableNameFilter=F.default;var z=n(481);t.AssetsTableSelectCell=z.default;var U=n(482);t.AssetsTableSelectFilter=U.default;var W=n(483);t.AssetsTableTagsCell=W.default;var B=n(484);t.AssetsTableTagsFilter=B.default;var V=n(485);t.AssetsTableTagsPivot=V.default;var q=n(486);t.AssetsTableComplexTagCell=q.default;var G=n(487);t.AssetsTableTypeCell=G.default;var J=n(488);t.AssetsTableStatusCell=J.default;var K=n(489);t.AssetsTableTypeFilter=K.default;var $=n(85);t.AssetsTypeIcon=$.default;var X=n(490);t.FontAssetPreview=X.default;var Z=n(491);t.AssetsUploadMenu=Z.default;var Q=n(492);Object.defineProperty(t,"PreviewNotAvailable",{enumerable:!0,get:function(){return Q.PreviewNotAvailable}});var ee=n(128);t.DroppableAssetRenderer=ee.default;var te=n(129);t.ImagePlayer=te.default;var ne=n(25);t.VideoPlayer=ne.default;var re=n(493);t.AudioPlayer=re.default;var oe=n(494);t.VideoPreview=oe.default;var ae=n(495);t.ImagePreview=ae.default;var ie=n(496);t.ImageSequencePlayer=ie.default;var se=n(130);t.LogViewer=se.default;var ue=n(498);t.StoryPreviewer=ue.default;var le=n(501);t.StaticCompositionEditor=le.default;var ce=n(133);t.StaticCompositionRenderer=ce.default;var de=n(505);t.ShortcutMenu=de.default;var pe=n(86);t.TextLayer=pe.default;var fe=n(24);Object.defineProperty(t,"ASSET_TYPES",{enumerable:!0,get:function(){return fe.ASSET_TYPES}});var he=n(87);t.Portal=he.default;var me=n(506);t.AssetDetails=me.default;var _e=n(54);t.PublishWizard=_e.default;var ye=n(516);t.auth=ye.default;var ge=n(39);Object.defineProperty(t,"login",{enumerable:!0,get:function(){return ge.login}}),Object.defineProperty(t,"clearCachedAuth",{enumerable:!0,get:function(){return ge.clearCachedAuth}});var ve=n(517);t.access=ve.default;var be=n(518);t.publish=be.default;var we=n(55);Object.defineProperty(t,"publishVersion",{enumerable:!0,get:function(){return we.publishVersion}}),Object.defineProperty(t,"clearStoryPublishStatus",{enumerable:!0,get:function(){return we.clearStoryPublishStatus}}),Object.defineProperty(t,"getStoryPublishStatus",{enumerable:!0,get:function(){return we.getStoryPublishStatus}});var Me=n(40);Object.defineProperty(t,"cacheAccessData",{enumerable:!0,get:function(){return Me.cacheAccessData}}),Object.defineProperty(t,"clearCachedAccessList",{enumerable:!0,get:function(){return Me.clearCachedAccessList}}),Object.defineProperty(t,"storyAdded",{enumerable:!0,get:function(){return Me.storyAdded}}),Object.defineProperty(t,"storyNameMutated",{enumerable:!0,get:function(){return Me.storyNameMutated}}),Object.defineProperty(t,"orgNameMutated",{enumerable:!0,get:function(){return Me.orgNameMutated}}),Object.defineProperty(t,"storyDeleted",{enumerable:!0,get:function(){return Me.storyDeleted}});var Le=n(23);Object.defineProperty(t,"updateFilters",{enumerable:!0,get:function(){return Le.updateFilters}});var Te=n(17);Object.defineProperty(t,"getAssets",{enumerable:!0,get:function(){return Te.getAssets}}),Object.defineProperty(t,"deleteAssets",{enumerable:!0,get:function(){return Te.deleteAssets}}),Object.defineProperty(t,"addAssetTag",{enumerable:!0,get:function(){return Te.addAssetTag}}),Object.defineProperty(t,"deleteAssetTag",{enumerable:!0,get:function(){return Te.deleteAssetTag}}),Object.defineProperty(t,"updateAssetName",{enumerable:!0,get:function(){return Te.updateAssetName}}),Object.defineProperty(t,"updateAssetData",{enumerable:!0,get:function(){return Te.updateAssetData}}),Object.defineProperty(t,"doAssetTableHydration",{enumerable:!0,get:function(){return Te.doAssetTableHydration}});var ke=n(83);Object.defineProperty(t,"getAssetTagList",{enumerable:!0,get:function(){return ke.getAssetTagList}}),Object.defineProperty(t,"addAssetTagToList",{enumerable:!0,get:function(){return ke.addAssetTagToList}});var xe=n(52);Object.defineProperty(t,"toggleAutoTag",{enumerable:!0,get:function(){return xe.toggleAutoTag}}),Object.defineProperty(t,"uploadAssets",{enumerable:!0,get:function(){return xe.uploadAssets}});var Ee=n(33);Object.defineProperty(t,"selectAsset",{enumerable:!0,get:function(){return Ee.selectAsset}}),Object.defineProperty(t,"deselectAsset",{enumerable:!0,get:function(){return Ee.deselectAsset}}),Object.defineProperty(t,"resetSelection",{enumerable:!0,get:function(){return Ee.resetSelection}});var Se=n(519);t.assetFilters=Se.default;var De=n(520);t.assetList=De.default;var Oe=n(521);t.assetTags=Oe.default;var Ye=n(522);t.assetUploads=Ye.default;var Ce=n(523);t.selectedAssets=Ce.default;var Ae=n(17);t.assetActions=Ae.default;var je=n(28);t.AuthService=je.default;var Pe=n(26);t.SessionService=Pe.default;var He=n(524);t.API=He.default;var Ie=n(526);t.LegacyAPI=Ie.default;var Ne=n(527);t.StorageService=Ne.default;var Re=n(132);t.Timer=Re.default;var Fe=n(8);Object.defineProperty(t,"getFirstStoryInOrg",{enumerable:!0,get:function(){return Fe.getFirstStoryInOrg}}),Object.defineProperty(t,"string2HexCode",{enumerable:!0,get:function(){return Fe.string2HexCode}}),Object.defineProperty(t,"toFixed",{enumerable:!0,get:function(){return Fe.toFixed}}),Object.defineProperty(t,"padStart",{enumerable:!0,get:function(){return Fe.padStart}}),Object.defineProperty(t,"parameterizeServiceUrl",{enumerable:!0,get:function(){return Fe.parameterizeServiceUrl}}),Object.defineProperty(t,"scrapeEmail",{enumerable:!0,get:function(){return Fe.scrapeEmail}}),Object.defineProperty(t,"fitToContainer",{enumerable:!0,get:function(){return Fe.fitToContainer}}),Object.defineProperty(t,"filterHotkeys",{enumerable:!0,get:function(){return Fe.filterHotkeys}}),Object.defineProperty(t,"mimetypeConformsToOverlay",{enumerable:!0,get:function(){return Fe.mimetypeConformsToOverlay}}),Object.defineProperty(t,"validateAssetMimetype",{enumerable:!0,get:function(){return Fe.validateAssetMimetype}}),Object.defineProperty(t,"formatDateDefault",{enumerable:!0,get:function(){return Fe.formatDateDefault}}),Object.defineProperty(t,"validateAccessLevel",{enumerable:!0,get:function(){return Fe.validateAccessLevel}}),Object.defineProperty(t,"formattedTime",{enumerable:!0,get:function(){return Fe.formattedTime}});var ze=n(134);t.CompositionRendererLayer=ze.default;var Ue=n(271);t.PublishStatusIndicator=Ue.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(37),a=n(57),i=n(58);t.default=function(e){if(!e.type)throw new Error("NoAccess requires a type of either: request or restrict");var t="request"===e.type;return r.createElement("div",{className:"no-access"},t?r.createElement(o.FontAwesomeIcon,{icon:a.faUserLock,size:"6x"}):r.createElement(o.FontAwesomeIcon,{icon:i.faExclamationTriangle,size:"6x"}),r.createElement("div",{className:"no-access-copy"},r.createElement("h1",{className:"no-access-heading"},t?"You don't have access to Imposium yet":"Service not found"),t&&r.createElement("a",{href:"mailto:info@imposium.com?subject=My access to Imposium is restricted"},"Request Access")))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(59),s=n(92),u=n(8),l=n(4),c=function(e){function t(n){var r=e.call(this,n)||this;return r.serviceToggleRef=null,r.storyToggleRef=null,r.orgsToggleRef=null,r.componentDidMount=function(){var e=r.props,t=e.accessData,n=e.activeOrganization;t&&r.parseAccessData(t,n)},r.componentDidUpdate=function(e){var n=r.props,o=n.accessData,a=n.activeOrganization,i=e.accessData,s=e.activeOrganization;o&&o!==i&&r.parseAccessData(o,a),"string"==typeof a&&a.length===t.UUID_LENGTH&&a!==s&&r.parseAccessData(o,a)},r.parseAccessData=function(e,n){var o=e.organizations,a=e.services,i=n?e.organizations.find((function(e){return e.id===n})):void 0,s=o.length>1?o.filter((function(e){return e.id!==n})):[],l=a&&i?a.filter((function(e){return i.services.includes(e.id)})):[],c=l.length>1?a.find((function(e){return window.location.href.includes(e.url)})):void 0,d=t.DEFAULT_ACCOUNT_TOGGLE_COLOR,p="";i&&i.hasOwnProperty("name")&&(d=u.string2HexCode(i.name),p=r.pullFirstChar(i.name)),r.setState({servicesByOrganization:l,activeServiceBlob:c,inactiveOrganizations:s,activeOrganizationBlob:i,dropdownToggleColor:d,activeFirstChar:p})},r.changeStory=function(e){var t=r.props.onStoryChange;"function"==typeof t&&(t(e),r.setState({showStoriesDropdown:!1}))},r.toggleAccountDropdown=function(e,t){void 0===t&&(t="");var n=r.props.onOrganizationChange;e?r.setState({showAccountDropdown:!0}):(r.setState({showAccountDropdown:!1}),t&&n&&n(t),t&&!n&&window.location.replace(r.getHomeUrl()+"?organization_id="+t))},r.getHomeUrl=function(){var e=window.location,t=e.hostname,n=e.host;return"localhost"===t?"http://localhost:3036":n.includes(".staging.")?"https://launchpad.staging.imposium.com":"https://launchpad.imposium.com"},r.doLogout=function(){r.setState({showAccountDropdown:!1}),r.props.logout()},r.pullFirstChar=function(e){return e?e.substring(0,1):""},r.renderDropdownChevron=function(e){return e?t.UP:t.DOWN},r.renderServiceAnchor=function(e,t,n){return a.createElement("div",{className:"anchor-wrapper",key:e.id},a.createElement("a",{href:u.parameterizeServiceUrl(t,n,e.url,e.id)},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:e.icon,color:"#"+e.color})),e.name))},r.state={inactiveOrganizations:[],servicesByOrganization:[],activeServiceBlob:void 0,activeOrganizationBlob:void 0,showAccountDropdown:!1,showStoriesDropdown:!1,showServiceDropdown:!1,dropdownToggleColor:t.DEFAULT_ACCOUNT_TOGGLE_COLOR,activeFirstChar:""},r.serviceToggleRef=a.createRef(),r.storyToggleRef=a.createRef(),r.orgsToggleRef=a.createRef(),r}return o(t,e),t.prototype.render=function(){var e,n,r,o,c,d,p,f,h,m,_,y,g=this,v=this.props,b=v.email,w=v.accessData,M=v.activeOrganization,L=v.activeStory,T=v.hideStoryPicker,k=this.state,x=k.showAccountDropdown,E=k.servicesByOrganization,S=k.activeServiceBlob,D=k.showStoriesDropdown,O=k.inactiveOrganizations,Y=k.activeOrganizationBlob,C=k.activeFirstChar,A=k.dropdownToggleColor,j=k.showServiceDropdown,P={};return w&&((r=E.find((function(e){return window.location.href.includes(e.url)})))&&(P={color:"#"+r.color},n={borderBottom:"4px solid #"+r.color}),o=E.filter((function(e){return!e.private&&-1===t.PRIVATE_IDS.indexOf(e.id)})).map((function(e){return g.renderServiceAnchor(e,M,L)})),c=E.filter((function(e){return!e.private&&t.PRIVATE_IDS.indexOf(e.id)>-1})).map((function(e){return g.renderServiceAnchor(e,M,L)})),y=a.createElement("div",{className:"service-menu"},a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.SERVICE_MESH_ALIAS),a.createElement("div",{className:"service-menu-anchors"},o)),c.length>0&&a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.PRIVATE_HEADER),a.createElement("div",{className:"service-menu-anchors"},c)),a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.DOCS_HEADER),a.createElement("div",{className:"service-menu-anchors"},a.createElement("div",{className:"anchor-wrapper doc"},a.createElement("a",{target:"__blank",href:t.API_DOCS_LINK},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:"FaCogs"})),t.API_DOCS_LINK_COPY)),a.createElement("div",{className:"anchor-wrapper doc"},a.createElement("a",{target:"__blank",href:t.SDK_DOCS_LINK},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:"FaJsSquare"})),t.SDK_DOCS_LINK_COPY))))),_=a.createElement("button",{id:"btn-toggle-services",className:"btn-toggle-services",style:P,ref:this.serviceToggleRef,onClick:function(){return g.setState({showServiceDropdown:!g.state.showServiceDropdown})}},a.createElement("span",null,S?S.name:t.SERVICE_MESH_ALIAS),this.renderDropdownChevron(j)),d=a.createElement("button",{id:"btn-toggle-orgs",className:"btn-toggle-orgs",ref:this.orgsToggleRef,style:{backgroundColor:A},onClick:function(){return g.toggleAccountDropdown(!x)}},C)),w&&Y&&(p=a.createElement("div",{className:"orgs-menu-active-org"},a.createElement("div",{className:"active-first-char",style:{backgroundColor:A}},this.pullFirstChar(Y.name)),a.createElement("div",null,Y.name))),w&&Y&&!T&&(e=Y.stories.find((function(e){return e.id===L})),f=a.createElement("button",{id:"btn-toggle-story",className:"btn-toggle-story",ref:this.storyToggleRef,onClick:function(){g.setState({showStoriesDropdown:!g.state.showStoriesDropdown})}},a.createElement("div",{className:"story-name"},e?e.name:t.DEFAULT_SERVICE_TOGGLE_COPY),this.renderDropdownChevron(D)),m=0===Y.stories.length?a.createElement("div",{className:"no-stories-dialog"},t.NO_STORIES_COPY):Y.stories.map((function(e){return a.createElement("button",{key:e.id,className:"btn-change-story",onClick:function(){return g.changeStory(e)}},e.name)}))),x&&(h=a.createElement("div",{className:"orgs-menu-org-picker"},O.map((function(e){return a.createElement("button",{key:e.name,className:"menu-item inactive-org-button",onClick:function(){return g.toggleAccountDropdown(!1,e.id)}},a.createElement("div",{className:"inactive-first-char",style:{backgroundColor:u.string2HexCode(e.name)}},g.pullFirstChar(e.name)),e.name)})))),a.createElement("nav",{id:"imposium-header",className:"imposium-header",style:n},a.createElement("div",{className:"inner-content"},a.createElement("span",{className:"inner-left"},a.createElement("a",{className:"title",href:u.parameterizeServiceUrl(M,L,this.getHomeUrl())},a.createElement("div",{className:"logo"}),a.createElement("h1",{className:"heading"},t.DEFAULT_TITLE)),_),a.createElement("span",{className:"inner-right"},f,d,a.createElement("a",{href:"https://support.imposium.com",target:"_blank"},a.createElement("div",{className:"btn-help"},l.ICON_HELP)))),a.createElement(i.default,{key:"services-dropdown",position:"bottomleft",show:j,toggleRef:this.serviceToggleRef,onOutsideClick:function(){return g.setState({showServiceDropdown:!1})}},y),a.createElement(i.default,{key:"stories-dropdown",position:"bottomright",show:D,toggleRef:this.storyToggleRef,onOutsideClick:function(){return g.setState({showStoriesDropdown:!1})}},a.createElement("div",{className:"stories-menu"},m)),a.createElement(i.default,{key:"org-dropdown",position:"bottomright",show:x,toggleRef:this.orgsToggleRef,onOutsideClick:function(){return g.toggleAccountDropdown(!1)}},a.createElement("div",{className:"orgs-menu"},p,h,a.createElement("div",{className:"orgs-menu-footer"},a.createElement("div",{className:"email"},b),a.createElement("button",{className:"btn-logout",onClick:function(){return g.doLogout()}},t.LOGOUT_COPY)))))},t.DEFAULT_TITLE="imposium",t.SERVICE_MESH_ALIAS="services",t.DOCS_HEADER="documentation",t.PRIVATE_HEADER="admin",t.API_DOCS_LINK_COPY="REST API",t.SDK_DOCS_LINK_COPY="Javascript SDK",t.API_DOCS_LINK="https://docs.imposium.com",t.SDK_DOCS_LINK="https://docs.imposium.com/js-sdk/",t.DEFAULT_SERVICE_TOGGLE_COPY="stories",t.DEFAULT_ACCOUNT_TOGGLE_COLOR="royalblue",t.NO_STORIES_COPY="No stories were found",t.LOGOUT_COPY="logout",t.UUID_LENGTH=36,t.UP=l.ICON_CHEVRON_UP,t.DOWN=l.ICON_CHEVRON_DOWN,t.PRIVATE_IDS=[9,10,11,12],t}(a.PureComponent);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(37),a=n(277),i=n(278),s=n(279),u=n(280),l=n(93),c=n(94),d=n(281),p=n(282),f=n(283),h=n(284),m=n(57),_=n(285),y=n(286),g=n(287);t.default=function(e){switch(e.iconName){case"FaFilm":return r.createElement(o.FontAwesomeIcon,{icon:i.faFilm,color:e.color});case"FaRegFileVideo":return r.createElement(o.FontAwesomeIcon,{icon:l.faFileVideo,color:e.color});case"FaChartBar":return r.createElement(o.FontAwesomeIcon,{icon:d.faChartBar,color:e.color});case"FaGavel":return r.createElement(o.FontAwesomeIcon,{icon:s.faGavel,color:e.color});case"FaDatabase":return r.createElement(o.FontAwesomeIcon,{icon:u.faDatabase,color:e.color});case"FaVideo":return r.createElement(o.FontAwesomeIcon,{icon:c.faVideo,color:e.color});case"FaUsersCog":return r.createElement(o.FontAwesomeIcon,{icon:p.faUsersCog,color:e.color});case"FaPlayCircle":return r.createElement(o.FontAwesomeIcon,{icon:h.faPlayCircle,color:e.color});case"FaUserLock":return r.createElement(o.FontAwesomeIcon,{icon:m.faUserLock,color:e.color});case"FaSiteMap":return r.createElement(o.FontAwesomeIcon,{icon:_.faSitemap,color:e.color});case"FaFileAlt":return r.createElement(o.FontAwesomeIcon,{icon:g.faFileAlt,color:e.color});case"FaChartArea":return r.createElement(o.FontAwesomeIcon,{icon:y.faChartArea,color:e.color});case"FaCogs":return r.createElement(o.FontAwesomeIcon,{icon:f.faCogs});case"FaJsSquare":return r.createElement(o.FontAwesomeIcon,{icon:a.faJsSquare});default:return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z";t.definition={prefix:"fas",iconName:"file-video",icon:[384,512,r,"f1c8",o]},t.faFileVideo=t.definition,t.prefix="fas",t.iconName="file-video",t.width=384,t.height=512,t.ligatures=r,t.unicode="f1c8",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z";t.definition={prefix:"fas",iconName:"video",icon:[576,512,r,"f03d",o]},t.faVideo=t.definition,t.prefix="fas",t.iconName="video",t.width=576,t.height=512,t.ligatures=r,t.unicode="f03d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z";t.definition={prefix:"fas",iconName:"info-circle",icon:[512,512,r,"f05a",o]},t.faInfoCircle=t.definition,t.prefix="fas",t.iconName="info-circle",t.width=512,t.height=512,t.ligatures=r,t.unicode="f05a",t.svgPathData=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={open:n.props.isOpen||!1},n.evtHandlers={toggleMenu:function(e){return n.toggleMenu(e)},clickOutside:function(e){return n.handleClickOutside(e)}},n.toggleRef=i.createRef(),n}return o(t,e),t.prototype.handleClickOutside=function(e){!!(this.toggleRef&&this.toggleRef.current&&this.toggleRef.current.contains(e.target))||(document.removeEventListener("click",this.evtHandlers.clickOutside),this.setState({open:!1}))},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.evtHandlers.clickOutside)},t.prototype.toggleMenu=function(e){var t=this,n=!this.state.open;this.setState({open:n},(function(){t.state.open?document.addEventListener("click",t.evtHandlers.clickOutside):document.removeEventListener("click",t.evtHandlers.clickOutside)}))},t.prototype.renderItems=function(){var e,t,n=this,r=this.props.items,o=[],s=function(e){var t=i.cloneElement(e,{onClick:function(t){t.preventDefault(),t.stopPropagation(),document.removeEventListener("click",n.evtHandlers.clickOutside),n.setState({open:!1},(function(){e.props.onClick(t)}))}});o.push(t)};try{for(var u=a(r),l=u.next();!l.done;l=u.next()){s(l.value)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return o},t.prototype.renderMenu=function(){var e=this.props.position;if(this.state.open)return i.createElement("div",{className:"menu "+e},this.renderItems())},t.prototype.render=function(){var e=this.props.button,t=this.state.open,n=i.cloneElement(e,{buttonRef:this.toggleRef,onClick:this.evtHandlers.toggleMenu,active:t});return i.createElement("div",{className:"button-menu"},n,this.renderMenu())},t}(i.PureComponent);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.active;return a.createElement("div",{className:"button-menu-item "+(r?"active":null)+" ",onClick:function(t){return e.props.onClick(t)}},n)},t}(a.Component);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={open:t.open},n.evtHandlers={toggleOpen:function(e){return n.toggleOpen(e)}},n}return o(t,e),t.prototype.toggleOpen=function(e){var t=this;e.persist(),e.preventDefault();var n=this.props,r=n.collapsable,o=n.onOpen,a=n.onClose;r&&("function"==typeof this.props.onToggle&&this.props.onToggle(!this.state.open),this.setState({open:!this.state.open},(function(){t.state.open&&o?o(e):!t.state.open&&a&&a(e)})))},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.open;t.collapsable;e.open!==n&&this.setState({open:n})},t.prototype.renderTitle=function(e){var t=this.props.title;return"small"===e?a.createElement("p",null,t):"large"===e?a.createElement("h1",null,t):a.createElement("h2",null,t)},t.prototype.renderContent=function(){if(this.state.open)return a.createElement("div",{className:"card-content"},this.props.children)},t.prototype.render=function(){var e=this.props,t=e.collapsable,n=(e.title,e.style),r=t?"collapsable":"",o=!this.state.open&&t?"closed":"",i=n||"default";return a.createElement("div",{className:"card "+o+" "+r+" "+i},a.createElement("div",{className:"card-header",onClick:this.evtHandlers.toggleOpen},this.renderTitle(i),this.renderButtons()),this.renderContent())},t.prototype.renderButtons=function(){var e=this.props.collapsable,t=this.state.open?s.ICON_CARET_UP:s.ICON_CARET_DOWN;if(e)return a.createElement("div",{className:"header-buttons"},a.createElement(i.default,{style:"subtle",onClick:this.evtHandlers.toggleOpen},t))},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderRemoveButton=function(e){var t=this;if(this.props.removable)return a.createElement("div",{className:"buttons"},a.createElement(i.default,{style:"subtle",color:"danger",onClick:function(){return t.props.onRemove(e)}},s.ICON_TIMES))},t.prototype.render=function(){var e,t=this,n=this.props.items;return n&&(e=n.map((function(e,n){return a.createElement("div",{className:"item",key:"item-"+n},e,t.renderRemoveButton(n))}))),a.createElement("div",{className:"controlled-list"},e)},t}(a.PureComponent);t.default=u},function(e,t){e.exports=u},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(38))},function(e,t,n){var r=n(371),o=n(32);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(373),o=n(104),a=n(12),i=n(67),s=n(105),u=n(106),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&o(e),d=!n&&!c&&i(e),p=!n&&!c&&!d&&u(e),f=n||c||d||p,h=f?r(e.length,String):[],m=h.length;for(var _ in e)!t&&!l.call(e,_)||f&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||h.push(_);return h}},function(e,t,n){var r=n(374),o=n(15),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(376),o=n(69),a=n(70),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(18),o=n(22);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(411),o=n(15);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},function(e,t,n){var r=n(412),o=n(415),a=n(416);e.exports=function(e,t,n,i,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var p=u.get(e),f=u.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,_=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var y=e[h],g=t[h];if(i)var v=l?i(g,y,h,t,e,u):i(y,g,h,e,t,u);if(void 0!==v){if(v)continue;m=!1;break}if(_){if(!o(t,(function(e,t){if(!a(_,t)&&(y===e||s(y,e,n,i,u)))return _.push(t)}))){m=!1;break}}else if(y!==g&&!s(y,g,n,i,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},function(e,t,n){var r=n(14).Uint8Array;e.exports=r},function(e,t,n){var r=n(116),o=n(77),a=n(32);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(117),o=n(12);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(22);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(122),o=n(49);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(12),o=n(78),a=n(429),i=n(432);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t,n){var r=n(124),o=n(74),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(447);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(117),o=n(72),a=n(77),i=n(118),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=e.progress?"scaleX("+e.progress/100+")":"scaleX(0)";return r.createElement("div",{className:"determinate-loader"},r.createElement("div",{className:"progress-bg",style:{transform:t}}),r.createElement("div",{className:"progress-copy"},Math.round(e.progress)+"%"))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(5),u=n(13),l=n(84),c=n(128),d=n(8),p=n(23),f=n(52),h=n(9),m=n(10),_=n(4),y=function(e){function t(t){var n=e.call(this,t)||this;return n.onFileDrop=function(e,t){var r=n.props,o=r.accepts,a=r.storyId,i=r.api;if(t){var s=t.getItem().files;d.mimetypeConformsToOverlay(o,s[0])&&(n.setState({assetUploading:!0}),n.props.uploadAssets(i,[s[0]],a,(function(e){n.setState({assetName:e.name,error:!1},(function(){n.setState({assetUploading:!1}),n.props.onChange(e)}))})))}},n.state={assetName:"",error:!1,assetUploading:!1},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.assetId;e.api;t&&!this.state.assetName&&this.loadAsset()},t.prototype.componentDidUpdate=function(e,t){var n=this.props.assetId;n&&n!==e.assetId?this.loadAsset():n||this.setState({error:!1,assetName:""})},t.prototype.loadAsset=function(){var e=this,t=this.props,n=t.assetId;t.api.getAssetItem(n).then((function(t){e.setState({error:!1,assetName:t.name})})).catch((function(t){e.setState({error:!0,assetName:"Could not find asset: "+n})}))},t.prototype.setFilter=function(e){var t=this.props.accepts;this.props.updateFilters({type:t||"",page:1})},t.prototype.onAssetDrop=function(e,t){var n=this,r=e.rowData,o=e.rowData,a=o.name,s=(o.id,o.type),u=this.props.accepts;s===u?this.setState({assetName:a,error:!1},(function(){n.props.onChange(r)})):this.props.onError&&this.props.onError(i.assets.field.fieldMismatchError.replace("[accepts]",u))},t.prototype.clearAsset=function(e){var t=this;this.setState({assetName:"",error:!1},(function(){t.props.onChange(null)}))},t.prototype.render=function(){var e=this,t=this.props,n=t.assetId,r=t.label,o=t.width,d=t.tooltip,p=t.labelPosition,f=this.state,h=f.assetName,m=f.assetUploading,y=f.error?"error":"",g=n?"":i.assets.field.dragPrompt,v={width:o||"100%"},b=[];return b.push(a.createElement(s.default,{key:"btn-filter",onClick:function(t){return e.setFilter(t)},style:"subtle",tooltip:i.assets.field.tooltipFilter,color:"primary"},_.ICON_FILTER)),n&&!m&&b.unshift(a.createElement(s.default,{key:"btn-clear-asset",tooltip:i.assets.field.tooltipClear,onClick:function(t){return e.clearAsset(t)},style:"subtle"},_.ICON_TIMES)),a.createElement("div",{style:v,className:"asset-field "+y},a.createElement(l.default,{onDrop:function(t,n){return e.onFileDrop(t,n)},disable:m},a.createElement(c.default,{onDrop:function(t,n){return e.onAssetDrop(t,n)}},a.createElement(u.default,{readOnly:!0,label:r,tooltip:d,loading:m,placeholder:g,buttons:b,labelPosition:p,value:h}))))},t}(a.PureComponent);t.default=h.connect(null,(function(e){return m.bindActionCreators({updateFilters:p.updateFilters,uploadAssets:f.uploadAssets},e)}))(y)},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(61),i=n(478);t.default=function(e){var t=r(a.useDrop({accept:i.ASSET_DND_TYPES.ASSET_NAME,drop:e.onDrop,collect:function(e){return{isOver:e.isOver(),canDrop:e.canDrop()}}}),2),n=t[0],s=n.canDrop,u=n.isOver,l=t[1],c=s&&u?"1px solid royalblue":"";return o.createElement("div",{ref:l,className:"asset-target",style:{border:c}},e.children)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imageHeight:1080,imageWidth:1920},n.imgNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.state,t=e.imageHeight,n=e.imageWidth,r=this.props,o=r.padding,a=r.width,u=r.height,l=void 0!==o?o:i.DEFAULT_PADDING;return t&&n?s.getPlayerStyle(a,u,n,t,l,n,t):{}},t.prototype.metadataLoaded=function(e){this.setState({imageWidth:e.target.naturalWidth,imageHeight:e.target.naturalHeight})},t.prototype.render=function(){var e=this,t=this.props,n=t.url;return!1!==t.active?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()},a.createElement("img",{onLoad:function(t){return e.metadataLoaded(t)},src:n,ref:this.imgNode}))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(497),s=n(7),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={loading:!0,log:""},n.ansi_up=new i.default,n.ansi_up.use_classes=!0,n}return o(t,e),t.prototype.getJobLogs=function(){var e=this,t=this.props,n=t.api,r=t.onError,o=t.jobId;n.getJobLogUrl(this.props.jobId).then((function(t){var a=t.signed_url;n.getJobLog(a).then((function(t){e.setState({loading:!1,log:t})})).catch((function(t){r&&r(s.previewer.logDownloadError.replace("[jobId]",o)),e.setState({loading:!1,log:""})}))})).catch((function(t){r&&r(s.previewer.logURLError.replace("[jobId]",e.props.jobId)),e.setState({loading:!1,log:""})}))},t.prototype.componentDidMount=function(){this.props.jobId&&this.getJobLogs()},t.prototype.componentDidUpdate=function(e){e.jobId!==this.props.jobId&&this.props.jobId&&this.getJobLogs()},t.prototype.render=function(){var e=this.ansi_up.ansi_to_html(this.state.log);return a.createElement("div",{className:"log-viewer"},a.createElement("div",{className:"log-html",dangerouslySetInnerHTML:{__html:e}}))},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BOOLEAN_DEFAULT_OPTIONS=t.VARIABLE_TYPES=void 0,t.VARIABLE_TYPES={TEXT:"text",NUMBER:"number",BOOLEAN:"boolean",ENUM:"enum",IMAGE:"image",VIDEO:"video",AUDIO:"audio"},t.BOOLEAN_DEFAULT_OPTIONS=[{value:!0,label:"True"},{value:!1,label:"False"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.config=e}return e.prototype.stop=function(){this.running=!1,clearInterval(this.timeInterval)},e.prototype.start=function(){var e=this;this.running=!0,clearInterval(this.timeInterval),this.startTime=Date.now(),this.timeInterval=setInterval((function(){return e.updateTimeElapsed()}),this.config.interval)},e.prototype.updateTimeElapsed=function(){var e=Date.now()-this.startTime;this.config.onUpdate(e)},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(134),c=function(e){function t(t){var n=e.call(this,t)||this;return n.bgRef=u.createRef(),n}return o(t,e),t.prototype.renderLayers=function(){var e=this,t=this.props,n=t.composition.layers,r=t.inventory,o=t.selectedLayer,a=function(t){e.props.onSelectLayer(t)},s=[],c=[];return n?(n.map((function(t,n){var i,d=t.id&&t.id===o;c.push(new Promise((function(e,t){i=e,t}))),s.push(u.createElement(l.default,{onUpdate:function(t){return e.updateLayer(n,t)},onReady:i,onClick:a,selected:d,layer:t,inventory:r,key:t.id||n}))})),Promise.all(c).then((function(t){i(t,1)[0];e.props.onReady&&e.props.onReady()})),s):null},t.prototype.updateLayer=function(e,t){var n=a({},this.props.composition),r=s([],i(n.layers));r[e]=t,n.layers=r,this.props.onUpdate(n)},t.prototype.resetSelected=function(e){e.preventDefault(),e.stopPropagation();var t=this.bgRef.current;!t||e.target},t.prototype.render=function(){var e=this,t=this.props.composition,n=t.width,r=t.height,o=t.background_color,a={width:n+"px",height:r+"px"};return o&&(a.backgroundColor=o),u.createElement("div",{ref:this.bgRef,className:"static-composition-renderer",style:a,onClick:function(t){return e.resetSelected(t)}},this.renderLayers())},t}(u.PureComponent);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(504),u=n(62),l=n(86),c=function(e){function t(t){var n=e.call(this,t)||this;return n.layerRefMount=function(e){return n.onRefMount(e)},n.evtHandlers={onDrag:function(e){return n.handleDrag(e)},onResize:function(e){return n.handleResize(e)},onRotate:function(e){return n.handleRotate(e)},onClick:function(e){return n.layerClicked(e)},onShift:function(e){return n.onShift(e)},onLeft:function(e){return n.move(e,-1,0)},onRight:function(e){return n.move(e,1,0)},onUp:function(e){return n.move(e,0,-1)},onDown:function(e){return n.move(e,0,1)}},n.moveable=i.createRef(),n.state={lockRatio:!1},n}return o(t,e),t.prototype.move=function(e,t,n){if(this.props.selected){var r=e.shiftKey?10*t:t,o=e.shiftKey?10*n:n,i=a({},this.props.layer);i.x=i.x+r,i.y=i.y+o,this.props.onUpdate(i)}},t.prototype.onShift=function(e){if("Shift"===e.key&&16===e.keyCode&&this.props.selected){var t="keydown"===e.type;this.setState({lockRatio:t})}},t.prototype.componentDidUpdate=function(){var e=this.moveable.current;e&&e.updateRect()},t.prototype.componentDidMount=function(){u.default("*",{keyup:!0},this.evtHandlers.onShift),u.default("left, shift+left",this.evtHandlers.onLeft),u.default("right, shift+right",this.evtHandlers.onRight),u.default("up, shift+up",this.evtHandlers.onUp),u.default("down, shift+down",this.evtHandlers.onDown)},t.prototype.componentWillUnmount=function(){u.default.unbind("*",this.evtHandlers.onShift),u.default.unbind("left, shift+left",this.evtHandlers.onLeft),u.default.unbind("right, shift+right",this.evtHandlers.onRight),u.default.unbind("up, shift+up",this.evtHandlers.onUp),u.default.unbind("down, shift+down",this.evtHandlers.onDown)},t.prototype.handleDrag=function(e){var t=a({},this.props.layer);t.x=Math.round(e.left),t.y=Math.round(e.top),this.props.onUpdate(t)},t.prototype.handleResize=function(e){var t=e.drag.beforeDelta,n=e.width,r=e.height,o=a({},this.props.layer);o.width=Math.round(n),o.height=Math.round(r),o.x=Math.round(o.x+t[0]),o.y=Math.round(o.y+t[1]),this.props.onUpdate(o)},t.prototype.handleRotate=function(e){var t=a({},this.props.layer);t.rotation=Math.round(e.beforeDelta+t.rotation),this.props.onUpdate(t)},t.prototype.layerClicked=function(e){e.preventDefault(),e.stopPropagation(),this.props.onClick(this.props.layer.id)},t.prototype.onRefMount=function(e){this.layerRef=e,this.forceUpdate()},t.prototype.renderLayerContent=function(){var e=this.props,t=e.layer,n=e.inventory;return i.createElement(l.default,{onReady:this.props.onReady,inventory:n,options:t})},t.prototype.render=function(){var e=this.props,t=e.selected,n=e.layer,r=this.state.lockRatio,o="comp-layer-"+n.id,a={top:n.y+"px",left:n.x+"px",width:n.width+"px",height:n.height+"px",transform:"rotate("+n.rotation+"deg)"},u=t?i.createElement(s.default,{ref:this.moveable,target:document.querySelector("."+o),onDrag:this.evtHandlers.onDrag,onDragEnd:this.evtHandlers.onDragEnd,onResize:this.evtHandlers.onResize,onResizeEnd:this.evtHandlers.onResizeEnd,onRotate:this.evtHandlers.onRotate,onRotateEnd:this.evtHandlers.onRotateEnd,keepRatio:r,resizable:!0,rotatable:!0,origin:!1,draggable:!0}):null;return i.createElement(i.Fragment,null,u,i.createElement("div",{ref:this.layerRefMount,className:"composition-renderer-layer "+o,onClick:this.evtHandlers.onClick,style:a},this.renderLayerContent()))},t}(i.PureComponent);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.documentationLinks=void 0;var a=n(0),i=n(7),s=n(54),u=n(4),l=n(509),c=n(511),d=n(16);t.documentationLinks=[{key:"js-sdk-link",label:a.createElement("span",null,u.ICON_JS," ",i.integration.js),link:i.integration.jsSdkLink},{key:"rest-link",label:a.createElement("span",null,u.ICON_PROJECT_DIAGRAM," ",i.integration.rest),link:i.integration.restLink}];var p=function(e){function n(t){var n=e.call(this,t)||this;return n.downloadSampleWebPage=function(){var e,t,r=n.props,o=r.story,a=r.compositionId,s=r.accessKey,u=n.getFirstAct(o);o.id&&o.name&&void 0!==u&&u.hasOwnProperty("inventory")&&(e=o.name+i.integration.sdkArchiveSuffix,t={storyId:o.id,compositionId:a,storyName:o.name,accessToken:s,inventory:u.inventory},l.downloadSDKArchive(e,t))},n.getFirstAct=function(e){for(var t in e.acts)if(e.acts.hasOwnProperty(t))return e.acts[t]},n}return o(n,e),n.prototype.linkToDemoPage=function(){var e=this.props,t=e.accessKey,n=e.compositionId,r=e.story.id;if(t){var o=c.getDemoURL()+"/"+t+"/"+r+"/"+n;window.open(o,"_blank")}},n.prototype.render=function(){var e=this,n=[{label:a.createElement("span",null,u.ICON_GLOBE," ",i.publish.webPageHosted),onClick:function(){return e.linkToDemoPage()}},{label:a.createElement("span",null,u.ICON_DOWNLOAD," ",i.publish.sampleWebpage),onClick:function(){return e.downloadSampleWebPage()}}];return a.createElement("div",null,a.createElement("h2",null,i.publish.webpageTitle),a.createElement(d.default,null),a.createElement("p",null,i.publish.webpageDesc),a.createElement(d.default,null),a.createElement("div",{className:"link-wrapper"},null==n?void 0:n.map((function(e,t){return a.createElement(s.BigButton,{key:t,label:e.label,onClick:function(){return e.onClick()}})}))),a.createElement("br",null),a.createElement("br",null),a.createElement("h2",null,i.integration.documentation),a.createElement(d.default,null),a.createElement("p",null,i.integration.docParagraph),a.createElement("div",{className:"link-wrapper"},null===t.documentationLinks||void 0===t.documentationLinks?void 0:t.documentationLinks.map((function(e){return a.createElement(s.BigLink,{key:e.key,label:e.label,link:e.link})}))))},n}(a.PureComponent);t.default=p},function(e,t,n){!function(e){"use strict";
|
|
3
|
+
o.version="2.29.1",t=xt,o.fn=yn,o.min=function(){var e=[].slice.call(arguments,0);return Dt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Dt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=h,o.unix=function(e){return xt(1e3*e)},o.months=function(e,t){return wn(e,t,"months")},o.isDate=d,o.locale=it,o.invalid=y,o.duration=Ut,o.isMoment=M,o.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},o.parseZone=function(){return xt.apply(null,arguments).parseZone()},o.localeData=ut,o.isDuration=Ct,o.monthsShort=function(e,t){return wn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(D(tt[e]._config,t)):(null!=(r=at(e))&&(o=r._config),t=D(o,t),null==r&&(t.abbr=e),(n=new O(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return k(tt)},o.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},o.normalizeUnits=z,o.relativeTimeRounding=function(e){return void 0===e?qn:"function"==typeof e&&(qn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=yn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(42)(e))},function(e,t,n){e.exports=n(364)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(367)),o=l(n(443)),a=l(n(469)),i=l(n(470)),s=l(n(471)),u=l(n(472));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=i.default,t.handleHover=i.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var s=(0,r.default)(n),u=(0,o.default)(e,s);return(0,a.default)(u)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICON_FILE_CODE=t.ICON_CUBE=t.ICON_LAYER_GROUP=t.ICON_EXPAND_ARROWS=t.ICON_EXPAND=t.ICON_COMPRESS=t.ICON_ARROW_RIGHT=t.ICON_ARROW_CENTER_H=t.ICON_ARROW_LEFT=t.ICON_ARROW_DOWN=t.ICON_ARROW_CENTER_V=t.ICON_ARROW_UP=t.ICON_BARS=t.ICON_ALIGN_CENTER=t.ICON_ALIGN_RIGHT=t.ICON_ALIGN_LEFT=t.ICON_FONT=t.ICON_INFO_CIRCLE=t.ICON_TIMES_CIRCLE=t.SORT_DOWN=t.SORT_UP=t.ICON_BAN=t.ICON_USER_LOCK=t.ICON_CHEVRON_UP=t.ICON_CHEVRON_DOWN=t.ICON_ANGLE_DOUBLE_RIGHT=t.ICON_ANGLE_RIGHT=t.ICON_ANGLE_DOUBLE_LEFT=t.ICON_ANGLE_LEFT=t.ICON_EXCLAIMATION_TRIANGLE=t.ICON_CLIPBOARD=t.ICON_PLUS=t.ICON_SEARCH=t.ICON_EDIT=t.ICON_CHECK=t.ICON_CARET_DOWN=t.ICON_CARET_UP=t.ICON_CIRCLE_NOTCH=t.ICON_TIMES=t.ICON_COPY=t.ICON_AUDIO_TYPE=t.ICON_IMAGE_SEQ_TYPE=t.ICON_FILE_ARCHIVE=t.ICON_FILE_IMAGE=t.ICON_FILE_AUDIO=t.ICON_FILE_VIDEO=t.ICON_FILTER=t.ICON_STICKY_NOTE=t.ICON_IMAGE=t.ICON_VIDEO=void 0,t.ICON_UPLOAD=t.ICON_DOWNLOAD=t.ICON_JS=t.ICON_PROJECT_DIAGRAM=t.ICON_GLOBE=t.ICON_EMAIL=t.ICON_HUBSPOT=t.ICON_HELP=void 0;var r=n(0),o=n(37),a=n(288),i=n(289),s=n(290),u=n(291),l=n(292),c=n(93),d=n(293),p=n(294),f=n(295),h=n(296),m=n(297),_=n(298),y=n(299),g=n(300),v=n(301),b=n(58),w=n(302),M=n(303),L=n(304),T=n(305),k=n(306),x=n(307),E=n(57),S=n(94),D=n(308),O=n(309),Y=n(310),C=n(311),A=n(312),j=n(313),P=n(314),H=n(315),I=n(95),N=n(316),R=n(317),F=n(318),z=n(319),U=n(320),W=n(321),B=n(322),V=n(323),q=n(324),G=n(325),J=n(326),K=n(327),$=n(328),X=n(329),Z=n(330),Q=n(331),ee=n(332),te=n(333),ne=n(334),re=n(335),oe=n(336),ae=n(337),ie=n(338),se=n(339),ue=n(340);t.ICON_VIDEO=r.createElement(o.FontAwesomeIcon,{icon:S.faVideo}),t.ICON_IMAGE=r.createElement(o.FontAwesomeIcon,{icon:D.faImage}),t.ICON_STICKY_NOTE=r.createElement(o.FontAwesomeIcon,{icon:O.faStickyNote}),t.ICON_FILTER=r.createElement(o.FontAwesomeIcon,{icon:u.faFilter}),t.ICON_FILE_VIDEO=r.createElement(o.FontAwesomeIcon,{icon:c.faFileVideo}),t.ICON_FILE_AUDIO=r.createElement(o.FontAwesomeIcon,{icon:d.faFileAudio}),t.ICON_FILE_IMAGE=r.createElement(o.FontAwesomeIcon,{icon:p.faFileImage}),t.ICON_FILE_ARCHIVE=r.createElement(o.FontAwesomeIcon,{icon:f.faFileArchive}),t.ICON_IMAGE_SEQ_TYPE=r.createElement(o.FontAwesomeIcon,{icon:C.faImages}),t.ICON_AUDIO_TYPE=r.createElement(o.FontAwesomeIcon,{icon:A.faHeadphones}),t.ICON_COPY=r.createElement(o.FontAwesomeIcon,{icon:h.faCopy}),t.ICON_TIMES=r.createElement(o.FontAwesomeIcon,{icon:m.faTimes}),t.ICON_CIRCLE_NOTCH=r.createElement(o.FontAwesomeIcon,{icon:l.faCircleNotch}),t.ICON_CARET_UP=r.createElement(o.FontAwesomeIcon,{icon:a.faCaretUp}),t.ICON_CARET_DOWN=r.createElement(o.FontAwesomeIcon,{icon:i.faCaretDown}),t.ICON_CHECK=r.createElement(o.FontAwesomeIcon,{icon:s.faCheck}),t.ICON_EDIT=r.createElement(o.FontAwesomeIcon,{icon:_.faEdit}),t.ICON_SEARCH=r.createElement(o.FontAwesomeIcon,{icon:y.faSearch}),t.ICON_PLUS=r.createElement(o.FontAwesomeIcon,{icon:g.faPlus}),t.ICON_CLIPBOARD=r.createElement(o.FontAwesomeIcon,{icon:v.faClipboard}),t.ICON_EXCLAIMATION_TRIANGLE=r.createElement(o.FontAwesomeIcon,{icon:b.faExclamationTriangle}),t.ICON_ANGLE_LEFT=r.createElement(o.FontAwesomeIcon,{icon:w.faAngleLeft}),t.ICON_ANGLE_DOUBLE_LEFT=r.createElement(o.FontAwesomeIcon,{icon:M.faAngleDoubleLeft}),t.ICON_ANGLE_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:L.faAngleRight}),t.ICON_ANGLE_DOUBLE_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:T.faAngleDoubleRight}),t.ICON_CHEVRON_DOWN=r.createElement(o.FontAwesomeIcon,{icon:k.faChevronDown}),t.ICON_CHEVRON_UP=r.createElement(o.FontAwesomeIcon,{icon:x.faChevronUp}),t.ICON_USER_LOCK=r.createElement(o.FontAwesomeIcon,{icon:E.faUserLock}),t.ICON_BAN=r.createElement(o.FontAwesomeIcon,{icon:Y.faBan}),t.SORT_UP=r.createElement(o.FontAwesomeIcon,{icon:j.faSortUp}),t.SORT_DOWN=r.createElement(o.FontAwesomeIcon,{icon:P.faSortDown}),t.ICON_TIMES_CIRCLE=r.createElement(o.FontAwesomeIcon,{icon:H.faTimesCircle}),t.ICON_INFO_CIRCLE=r.createElement(o.FontAwesomeIcon,{icon:I.faInfoCircle}),t.ICON_FONT=r.createElement(o.FontAwesomeIcon,{icon:N.faFont}),t.ICON_ALIGN_LEFT=r.createElement(o.FontAwesomeIcon,{icon:R.faAlignLeft}),t.ICON_ALIGN_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:F.faAlignRight}),t.ICON_ALIGN_CENTER=r.createElement(o.FontAwesomeIcon,{icon:z.faAlignCenter}),t.ICON_BARS=r.createElement(o.FontAwesomeIcon,{icon:U.faBars}),t.ICON_ARROW_UP=r.createElement(o.FontAwesomeIcon,{icon:W.faArrowToTop}),t.ICON_ARROW_CENTER_V=r.createElement(o.FontAwesomeIcon,{icon:V.faArrowsV}),t.ICON_ARROW_DOWN=r.createElement(o.FontAwesomeIcon,{icon:B.faArrowToBottom}),t.ICON_ARROW_LEFT=r.createElement(o.FontAwesomeIcon,{icon:q.faArrowToLeft}),t.ICON_ARROW_CENTER_H=r.createElement(o.FontAwesomeIcon,{icon:J.faArrowsH}),t.ICON_ARROW_RIGHT=r.createElement(o.FontAwesomeIcon,{icon:G.faArrowToRight}),t.ICON_COMPRESS=r.createElement(o.FontAwesomeIcon,{icon:X.faCompress}),t.ICON_EXPAND=r.createElement(o.FontAwesomeIcon,{icon:$.faExpand}),t.ICON_EXPAND_ARROWS=r.createElement(o.FontAwesomeIcon,{icon:K.faExpandArrowsAlt}),t.ICON_LAYER_GROUP=r.createElement(o.FontAwesomeIcon,{icon:Z.faLayerGroup}),t.ICON_CUBE=r.createElement(o.FontAwesomeIcon,{icon:Q.faCube}),t.ICON_FILE_CODE=r.createElement(o.FontAwesomeIcon,{icon:ee.faFileCode}),t.ICON_HELP=r.createElement(o.FontAwesomeIcon,{icon:te.faQuestionCircle}),t.ICON_HUBSPOT=r.createElement(o.FontAwesomeIcon,{icon:ne.faHubspot}),t.ICON_EMAIL=r.createElement(o.FontAwesomeIcon,{icon:re.faEnvelope}),t.ICON_GLOBE=r.createElement(o.FontAwesomeIcon,{icon:oe.faGlobe}),t.ICON_PROJECT_DIAGRAM=r.createElement(o.FontAwesomeIcon,{icon:ae.faProjectDiagram}),t.ICON_JS=r.createElement(o.FontAwesomeIcon,{icon:ie.faJs}),t.ICON_DOWNLOAD=r.createElement(o.FontAwesomeIcon,{icon:se.faDownload}),t.ICON_UPLOAD=r.createElement(o.FontAwesomeIcon,{icon:ue.faUpload})},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(8),u=n(60),l=n(4),c=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipId="imposium-button-"+s.generateUUID(),n}return o(t,e),t.prototype.onClick=function(e){this.props.onClick&&!this.props.loading&&this.props.onClick(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.color,o=t.size,s=t.customStyles,c=this.props,d=c.width,p=c.loading,f=(c.tooltip,this.props),h=f.active,m=f.disabled,_=f.buttonRef,y=h?"active":"",g=m?"disabled":"";o||(o=""),n||(n="default"),r||(r=""),d&&(s?s.width=d:s={width:d});var v=p?i.createElement("span",{className:"loading-icon"},l.ICON_CIRCLE_NOTCH):this.props.children;return i.createElement("div",a({},u.renderTooltipProps(this.tooltipId,this.props.tooltip),{ref:_,className:"imposium-btn btn-"+n+" "+o+" "+r+" "+y+" "+g,onClick:function(t){return e.onClick(t)},style:s}),v,u.renderTooltip(this.tooltipId,this.props.tooltip))},t}(i.PureComponent);t.default=c},function(e,t,n){"use strict";var r=n(56),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BATCHES_COPY=t.project=t.header=t.integration=t.publish=t.compositions=t.previewer=t.assets=void 0,t.assets={tooltipFilter:"Filter by Asset type",previewNotAvailable:"Preview Not Available for this Asset Type",iconTypes:{filter:"Filter By Type",lut:"LUT",all:"All Types",video:"Video Files",audio:"Audio Files",video_composition:"Composition",image:"Image Files",image_sequence:"Image Sequences (Archive)",template:"Custom Template",static_composition:"Template",font:"Font Files"},uploads:{noUploads:"There are currently no assets uploading...",preparePhase:"Preparing asset...",autoTagInput:"Tag by filename",assignToStoryInput:"Assign to Story",assignToStoryInfo:"If selected, any assets uploaded will only be available to use with the currently selected story.",uploadButton:"Upload"},tags:{add:"Add new tag"},field:{fieldMismatchError:'Asset Type mismatch. Field only accepts "[accepts]" assets.',dragPrompt:"Drag Asset Here",tooltipClear:"Clear the selected Asset",tooltipFilter:"Filter assets to match Asset type"},details:"Asset Details",newDetails:"New Asset Details",name:"Name",date:"Date Created",addTag:"Add Tag",assetTag:"Tags",sessionExpired:"Your session has expired, please log in again to continue."},t.previewer={previewVars:"Preview Variables",time:"Time Elapsed:",expRunning:"Rendering Experience",runExpStart:"Creating Experience",runExpError:"Error running experience - ID: [expId]",triggerExpError:"Error triggering experience - ID: [expId]",expId:"Running Experience - ID: [expId]",createExpError:"Error creating experience",logDownloadError:"Could not download log of Job: [jobId]",logURLError:"Could not retrieve log URL of Job: [jobId]",btnLog:"Job Log",btnRender:"Render",btnReRender:"Re-Render",expIdField:"Exp. ID"},t.compositions={name:"Name",width:"Width",height:"Height",rotation:"Rotation",color:"Color",x:"X",y:"Y",wrap:"Wrap",fit:"Fit",fillMode:"Fill Mode",hAlign:"H. Align",vAlign:"V. Align",backgroundColor:"Background",layers:"Layers",layerText:"Text",fontType:"Font Type",layerImage:"Image",fontSize:"Font Size",lineHeight:"Line Height",font:"Font",letterSpacing:"Letter Spacing",wordSpacing:"Word Spacing",tooltipName:"Display name of this composition.",tooltipBackgroundColor:"Background color of this composition. Can also be transparent.",tooltipWidth:"Width of the composition, in pixels",tooltipHeight:"Height of the composition, in pixels",tooltipAddLayer:"Add a new layer to the composition",tooltipLayerRotation:"Rotation angle of the layer, in degrees",tooltipLayerX:"Layer X position.",tooltipLayerY:"Layer Y position",tooltipLayerWidth:"Layer width, in pixels.",tooltipLayerHeight:"Layer height, in pixels",textOptions:"Text Options",textLayerContent:"Content",tooltipTextLayerContent:"The copy rendered in this layer. Wrap variables like so: {{variable_id}}."},t.publish={accessKey:"Access Key",tooltipAccessKey:"API access key to use for this video distribution.",publishTitle:"Publish & Deliver",publishStepTitle:"STEP 1: Publish your Project",publishStepDesc:"Your project needs to be published before your changes can be seen. If you haven't made any changes since the last time you published, you can skip to the next step.",distributeStepTitle:"STEP 2: How do you want your users to view their video?",distributeStepDesc:"Select which Composition you want to deliver, access credentials you want to use, and distribution channel.",compositionError:"Please Select Composition",btnWebsite:"Webpage",webpageTitle:"STEP 3: Webpage",webPageHosted:"Webpage hosted on Imposium",webpageDesc:"You can share a demo page that is hosted on Imposium or you can download a sample webpage you can customize and use to generate videos. Please ensure you include a column for every variable on your story.",sampleWebpage:"Download sample webpage",btnEmail:"Email",exporting:"Exporting CSV... (please wait)",emailTitle:"STEP 3: Upload a CSV file with your user information in it.",emailDesc:"You can download a sample CSV with fields to populate as a starting point. Or you can upload one that already has the data in it.",downloadSampleCsvLink:"Download Sample CSV",uploadCsv:"Upload Your CSV UserList",generatingLink:"STEP 4: Generating embed links",downloadLink:"STEP 5: Download Your Userlist CSV file",btnDownload:"Download CSV",generatingLinkDesc:"Please wait while we generate the link for your users. This may take few minutes.",missingColumns:"Error: missing required columns",renderBatchFailed:"Error: Failed to render batch",createBatchFailed:"Error: Failed to create batch",downloadError:"Error downloading sample CSV.",embeddedCodeCopyError:"Error copying embed code.",creatingLinks:"Creating User Links... (please wait)",importingData:"Importing Data... (please wait)",downloadDesc:"Your CSV data file is ready to download with an embed code you can import into your email platform to send out.",csvMissingColumns:"Warning: Some of your column names did not match up with the variables in the story. Please ensure these variables line up and then re-upload the csv: ",exportBatchOfVideo:"Export batch of videos",btnHubspot:"Hubspot",hubspotTitle:"STEP 3: Copy Hubspot code snippet",hubspotDesc:"Copy the provided embed code into HubSpot. Replace the placeholder variable values with HubSpot template strings, to splice in your user data.",saveChanges:"Save Changes",embeddedCode:"Embed Url: ",btnAPI:"API integration",btnExport:"Export",btnPublish:"Publish",btnSkip:"Skip",btnBack:"Back",btnFinished:"Done",noCompErrorTitle:"No Compositions Found",noCompErrorDesc:"You must have at least 1 composition on your story to render and distribute videos."},t.integration={errorPullingComps:" Error getting composition IDs, contact your Imposium admin for support.",errorCreatingCreds:" Error creating credentials, contact your Imposium admin for support.",errorGettingCreds:" Error getting credentials, contact your Imposium admin for support.",documentation:"Documentation",docParagraph:"Use the links below for more information on integrating Imposium into your application.",js:"JavaScript SDK",jsSdkLink:"https://docs.imposium.com/js-sdk/#/",restLink:"https://docs.imposium.com",rest:"REST API",sdkArchiveSuffix:" - JS SDK Integration.zip"},t.header={publishing:"Publishing...",working:"Using Working Copy",statusError:"Error getting story status",publishJobError:"Error creating publish story job",publishPollError:"Error polling publish job status"},t.project={compName:"Composition",tooltipCompId:"Unique ID of the selected composition. Used to render that specific composition via the API and Imposium JS-SDK."},t.BATCHES_COPY={progress:{notRendered:"not rendered",rendering:"rendering",rendered:"rendered",cancelled:"cancelled",queued:"queued",malformed:"unknown"}}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0}),t.s3Url=t.formattedTime=t.formatDateDefault=t.padStart=t.toFixed=t.mimetypeConformsToOverlay=t.isFont=t.validateAssetMimetype=t.isObjEmpty=t.filterHotkeys=t.fitToContainer=t.generateUUID=t.string2HexCode=t.parameterizeServiceUrl=t.scrapeEmail=t.getFirstStoryInOrg=t.validateAccessLevel=t.getActiveOrg=t.isLocal=void 0;t.isLocal=function(){return"localhost"===window.location.hostname};t.getActiveOrg=function(e,t){return t.organizations.find((function(t){return t.id===e}))};t.validateAccessLevel=function(e,n,r){var o=t.getActiveOrg(e,r);return!!o&&o.services.includes(n)};t.getFirstStoryInOrg=function(e,n){var r=t.getActiveOrg(e,n);return r&&"object"==typeof r.stories[0]?r.stories[0].id:""};t.scrapeEmail=function(e){return e&&e.idTokenPayload&&e.idTokenPayload["https://imposium.com/email"]?e.idTokenPayload["https://imposium.com/email"]:""};t.parameterizeServiceUrl=function(e,t,n,r){if(!e||!t)return e&&!t?n+"?organization_id="+e:n;switch(r){case 1:case 4:case 5:case 6:case 8:return n+"/"+t+"?organization_id="+e;case 3:return n+"/dashboard/live/"+t+"?organization_id="+e;default:return n+"?organization_id="+e}};t.string2HexCode=function(e){var t=(16777215&e.split("").map((function(t,n){return e.charCodeAt(n)})).reduce((function(e,t){return t+((e<<5)-e)}),0)).toString(16).toUpperCase();return"#"+("00000".substring(0,6-t.length)+t)};t.generateUUID=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:7&n|8).toString(16)}))};t.fitToContainer=function(e,t,n){var r,o,a,i,s=t.width/t.height,u=n.padding?e.width-2*n.padding:e.width,l=n.padding?e.height-2*n.padding:e.height,c=n.padding?n.padding:0;return"proportionalInside"===n.scaleMode?(r=(o=u)/s)>l&&(o=(r=l)*s):"proportionalOutside"===n.scaleMode?(r=(o=u)/s)<l&&(o=(r=l)*s):"none"!==n.scaleMode&&n.scaleMode||(o=t.width,r=t.height),n.maxWidth&&o>n.maxWidth&&(r=(o=n.maxWidth)/s),n.maxHeight&&r>n.maxHeight&&(o=(r=n.maxHeight)*s),i="left"===n.hAlign?0:"right"===n.hAlign?u-o:(u-o)/2,a="top"===n.vAlign?0:"bottom"===n.vAlign?l-r:(l-r)/2,{width:o,height:r,top:a+=c,left:i+=c}};t.filterHotkeys=function(e){var t=(e.target||e.srcElement).tagName,n=t.isContentEditable||"INPUT"===t||"SELECT"===t||"TEXTAREA"===t,r="Enter"===e.code,o="Escape"===e.code,a=!0===e.metaKey;return!!(!n||n&&r||n&&o||n&&a)};t.isObjEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};t.validateAssetMimetype=function(e){var n=r(e.type.split("/"),2),o=n[0],a=n[1],i=e.name.split("."),s=i[i.length-1];switch(o){case"image":case"video":case"audio":return!0;case"application":switch(a){case"zip":case"x-gzip":return!0}}return!!t.isFont(o,s)||(-1!==e.name.indexOf(".CUBE")||(console.warn("Mimetype: "+e.type+" is not a supported asset type."),!1))};t.isFont=function(e,t){var n=["font","otf","sfnt","ttf","woff","woff2","font-sfnt","font-woff","vnd.ms-fontobject","font/otf","font/sfnt","font/ttf","font/woff","font/woff2","font/font-sfnt","font/font-woff","font/vnd.ms-fontobject"];return e?-1!==n.indexOf(e):-1!==n.indexOf(t)};t.mimetypeConformsToOverlay=function(e,t){var n=r(t.type.split("/"),2),o=n[0],a=n[1];return"video"===e&&"video"===o||"image"===e&&"image"===o||"audio"===e&&"audio"===o||"template"===e&&"application"===o&&("zip"===a||"x-gzip"===a)||"image_sequence"===e&&"application"===o&&("zip"===a||"x-gzip"===a)};t.toFixed=function(e,t){var n=new RegExp("^-?\\d+(?:.\\d{0,"+(t||-1)+"})?");return e.toString().match(n)[0]};t.padStart=function(e,t){return new Array(t+1-(e+"").length).join("0")+e};t.formatDateDefault=function(e){var t=new Date(1e3*e),n=t.getMonth()+1,r=t.getDate(),o=t.getFullYear(),a=t.getHours(),i=a>=12?"PM":"AM";a>12&&(a-=12),0===a&&(a=12);var s=t.getMinutes();return s<10&&(s="0"+s),n+"/"+r+"/"+o+" "+a+":"+s+" "+i};t.formattedTime=function(e){var t=Math.floor(e/6e4),n=(e%6e4/1e3).toFixed(0);return(t<10?"0":"")+t+":"+(n<10?"0":"")+n};t.s3Url=function(e,t,n){return e?e.replace(t,n):""}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(8),u=n(60),l=n(4),c=n(5),d=function(e){function t(t){var n=e.call(this,t)||this;return n.tooltipId=s.generateUUID(),n.state={showInfo:!1},n.toggleIDInfo=function(){n.setState({showInfo:!n.state.showInfo})},n}return o(t,e),t.prototype.getLabelClass=function(){return this.props.label?"label-"+(this.props.labelPosition?this.props.labelPosition:"left"):"no-label"},t.prototype.renderLabel=function(){var e=this.state.showInfo,t=this.props,n=t.info,r=t.label,o=e?l.ICON_TIMES_CIRCLE:l.ICON_INFO_CIRCLE,s=n?i.createElement(c.default,{onClick:this.toggleIDInfo,size:"small",style:"subtle"},o):null;return s||r?i.createElement("label",a({},u.renderTooltipProps(this.tooltipId,this.props.tooltip),{className:this.getLabelClass()}),s,s&&" ",r):null},t.prototype.render=function(){var e=this.props,t=e.label,n=e.width,r=e.customClass,o=this.renderLabel(),s={},l={};return t||(l=u.renderTooltipProps(this.tooltipId,this.props.tooltip)),n&&(s.width="string"==typeof n?n:n+"px"),i.createElement("div",{className:"form-field "+r+" "+this.getLabelClass(),style:s},o,i.createElement("div",a({className:"form-field-content "+this.getLabelClass()},l),this.props.children,this.renderButtons()),u.renderTooltip(this.tooltipId,this.props.tooltip),this.renderInfo())},t.prototype.renderInfo=function(){var e=this.props.info,t=this.state.showInfo;return e&&t?i.createElement("p",null,e):null},t.prototype.renderButtons=function(){if(this.props.buttons)return i.createElement("div",{className:"form-field-buttons"},this.props.buttons)},t}(i.PureComponent);t.default=d},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(62),c=n(5),d=n(11),p=n(8),f=n(4),h=n(361),m=function(e){function t(t){var n=e.call(this,t)||this;if(n.evtHandlers={submittable:function(){return n.forceSubmit()},controlled:function(e){return n.toggleEditing(e)},cancel:function(){return n.cancelEdit()},clear:function(){return n.forceSubmit(!0)},toggleEditing:function(e){return n.toggleEditing(e)},forceSubmit:function(){return n.forceSubmit()},clearValue:function(){return n.clearValue()},copyToClipboard:function(e){return n.copyToClipboard(e)},onSuggestionsFetchRequested:function(e){return n.onSuggestionsFetchRequested(e)},onSuggestionsClearRequested:function(){return n.onSuggestionsClearRequested()},getSuggestionValue:function(e){return n.getSuggestionValue(e)},renderSuggestion:function(e){return n.renderSuggestion(e)}},n.componentDidUpdate=function(e,t){(n.props.controlled||n.props.submittable)&&(e.value!==n.props.value&&n.setState({internalValue:n.props.value}),""===n.props.value&&!n.state.editing&&t.editing&&n.setState({internalValue:""}))},n.forceSubmit=function(e){void 0===e&&(e=!1);var t=n.state.internalValue;e||(n.props.doSubmit(t),"add"===n.props.submittableType&&n.setState({internalValue:""})),e&&(n.props.doSubmit(""),n.setState({internalValue:""}))},n.renderSubmittableIcon=function(){switch(n.props.submittableType){case"search":return f.ICON_SEARCH;case"check":return f.ICON_CHECK;case"add":return f.ICON_PLUS;default:return null}},n.onSuggestionsFetchRequested=function(e){var t=e.value;n.setState({suggestions:n.getSuggestions(t)})},n.onSuggestionsClearRequested=function(){n.setState({suggestions:[]})},n.props.controlled&&n.props.submittable)throw new Error("Actionable TextField(s) must be one of either: controlled or submittable.");return n.state={internalValue:t.value||"",suggestions:[],editing:!1},n.inputRef=u.createRef(),l.default.filter=function(e){return p.filterHotkeys(e)},n}return o(t,e),t.prototype.componentDidMount=function(){this.props.focusOnMount&&this.inputRef.current&&this.inputRef.current.focus()},t.prototype.componentWillUnmount=function(){this.props.submittable?(l.default.unbind("enter",this.evtHandlers.submittable),l.default.unbind("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default.unbind("enter",this.evtHandlers.controlled),l.default.unbind("esc",this.evtHandlers.cancel))},t.prototype.setEditing=function(e){var t=this;this.setState({editing:e},(function(){t.inputRef.current.focus()}))},t.prototype.blur=function(e){this.props.onBlur&&this.props.onBlur(e),this.props.submittable?(l.default.unbind("enter",this.evtHandlers.submittable),l.default.unbind("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default.unbind("enter",this.evtHandlers.controlled),l.default.unbind("esc",this.evtHandlers.cancel))},t.prototype.focus=function(e){this.props.onFocus&&this.props.onFocus(e),this.props.submittable?(l.default("enter",this.evtHandlers.submittable),l.default("esc",this.evtHandlers.clear)):this.props.controlled&&(l.default("enter",this.evtHandlers.controlled),l.default("esc",this.evtHandlers.cancel))},t.prototype.cancelEdit=function(){this.setState({editing:!1,internalValue:this.props.value})},t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.getValue=function(){var e=this.props,t=e.controlled,n=e.submittable,r=e.value,o=this.state.internalValue;return t||n?o:r||""},t.prototype.onChange=function(e,t){var n=this,r=this.props.pattern,o=t?t.newValue:e.target.value;if(this.props.controlled||this.props.submittable)this.setState({internalValue:o},(function(){t&&"click"===t.method&&n.evtHandlers.submittable()}));else{if(r&&!r.test(o))return;""===o&&(o=null),this.props.onChange(o)}},t.prototype.toggleEditing=function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=this.state,r=n.editing,o=n.internalValue,a=this.props.value;r?this.setState({editing:!1},(function(){if(o!==a){var e=t.state.internalValue;""===e&&(e=null),t.props.onSubmit(e)}})):this.setState({editing:!0},(function(){var e=t.inputRef.current;e&&e.focus()}))},t.prototype.clearValue=function(){var e=this;this.setState({internalValue:""},(function(){e.props.doSubmit("")}))},t.prototype.getSuggestions=function(e){var t=e.trim().toLowerCase(),n=t.length;return 0===n?[]:this.props.suggestions.filter((function(e){return e.toLowerCase().slice(0,n)===t}))},t.prototype.getSuggestionValue=function(e){return e},t.prototype.renderSuggestion=function(e){return u.createElement("div",{className:"suggestion"},e)},t.prototype.renderButtons=function(){var e,t=this.props,n=t.controlled,r=t.submittable,o=(t.readOnly,t.buttons),a=t.showCopy,l=t.submittableType,d=t.value,p=t.hideButtons,h=this.state,m=h.editing;h.internalValue;o?Array.isArray(o)?e=s([],i(o)):(e=[]).push(o):e=[];var _="search"===l?"Search":"Confirm";if(p)return[];if(n){var y=m?f.ICON_CHECK:f.ICON_EDIT;e.push(u.createElement(c.default,{key:"btn-edit",style:"subtle",tooltip:"Edit",color:"secondary",onClick:this.evtHandlers.toggleEditing},y))}return r&&(e.push(u.createElement(c.default,{key:"btn-submit",style:"subtle",tooltip:_,color:"secondary",onClick:this.evtHandlers.forceSubmit},this.renderSubmittableIcon())),d&&e.push(u.createElement(c.default,{key:"btn-clear",style:"subtle",tooltip:"Clear",onClick:this.evtHandlers.clearValue},f.ICON_TIMES))),a&&e.push(u.createElement(c.default,{key:"btn-copy",style:"subtle",color:"primary",tooltip:"Copy to Clipboard",onClick:this.evtHandlers.copyToClipboard},f.ICON_CLIPBOARD)),e},t.prototype.renderInput=function(){var e=this,t=this.props,n=t.placeholder,r=t.controlled,o=t.submittable,i=t.disabled,s=t.readOnly,l=t.loading,c=this.state.suggestions,d=this.state.editing,p=r&&!d||i,f=r||o?"controlled-input":"",m={type:"text",placeholder:n,value:this.getValue(),disabled:p||l,readOnly:s,ref:this.inputRef,onFocus:function(t){return e.focus(t)},onBlur:function(t){return e.blur(t)}};return this.props.suggestions?(m.onChange=function(t,n){return e.onChange(t,n)},u.createElement(h,{suggestions:c,onSuggestionsFetchRequested:this.evtHandlers.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.evtHandlers.onSuggestionsClearRequested,getSuggestionValue:this.evtHandlers.getSuggestionValue,renderSuggestion:this.evtHandlers.renderSuggestion,inputProps:m})):(m.onChange=function(t){return e.onChange(t)},u.createElement("input",a({className:""+f},m)))},t.prototype.render=function(){var e=this.props,t=e.label,n=e.width,r=e.tooltip,o=e.info,a=e.labelPosition;return u.createElement(d.default,{customClass:"text-field",label:t,buttons:this.renderButtons(),tooltip:r,info:o,labelPosition:a,width:n},this.renderInput())},t}(u.PureComponent);t.default=m},function(e,t,n){var r=n(101),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=e.style;return t||(t="default"),r.createElement("div",{className:"horizontal-rule "+t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteAssetTag=t.updateAssetData=t.updateAssetName=t.addAssetTag=t.deleteAssets=t.getAssets=t.doAssetTableHydration=t.toggleLoading=void 0;var r=n(83),o=n(33),a={TOGGLE_LOADING:"assetList/TOGGLE_LOADING",GET:"assetList/GET",ADD_TAG:"assetList/ADD_TAG",DELETE_TAG:"assetList/DELETE_TAG",UPDATE_NAME:"assetList/UPDATE_NAME",UPDATE_DATA:"assetList/UPDATE_DATA"};t.toggleLoading=function(e){return{type:a.TOGGLE_LOADING,toggle:e}};t.doAssetTableHydration=function(e,n,a){return function(i){return new Promise((function(s,u){Promise.all([i(t.getAssets(e,n)),i(r.getAssetTagList(e,n))]).then((function(){i(o.resetSelection),s()})).catch((function(e){"function"==typeof a&&a(),u()}))}))}};t.getAssets=function(e,n){return function(r,o){return new Promise((function(i,s){var u=o(),l=u.assetFilters;u.loading||r(t.toggleLoading(!0)),e.getAssets(l,n,!0).then((function(e){r({type:a.GET,assetList:e}),r(t.toggleLoading(!1)),i()})).catch((function(e){r(t.toggleLoading(!1)),s()}))}))}};t.deleteAssets=function(e,n,r){return function(o){if(window.confirm("Are you sure you want to delete "+n.length+" assets?"))return new Promise((function(a,i){o(t.toggleLoading(!0)),e.deleteAssets(n).then((function(){o(t.getAssets(e,r)),a()})).catch((function(e){o(t.toggleLoading(!1)),i()}))}))}};t.addAssetTag=function(e,t,n,r){return function(r,o){return new Promise((function(o){var i,s=n.includes(",")?n.split(",").filter(String).map((function(e){return e.trim()})):[n];0===s.length&&o(),s.length>0&&(i=s.map((function(n){return e.addAssetTag(t,n).then((function(){return o()})).catch((function(e){return o(e)}))})),Promise.all(i).then((function(e){o()})),r({type:a.ADD_TAG,id:t,freshTags:s}))}))}};t.updateAssetName=function(e,t,n,r){return void 0===r&&(r=!1),function(o){return new Promise((function(i,s){o({type:a.UPDATE_NAME,id:t,name:n}),r||e.updateAsset(t,{name:n}).then((function(){i()})).catch((function(e){s()}))}))}};t.updateAssetData=function(e,t,n){return function(r){return new Promise((function(o,i){r({type:a.UPDATE_DATA,id:t,name:name}),e.updateAsset(t,{data:JSON.stringify(n)}).then((function(){o()})).catch((function(e){i()}))}))}};t.deleteAssetTag=function(e,t,n){return function(r){return new Promise((function(o,i){r({type:a.DELETE_TAG,id:t,tag:n}),e.deleteAssetTag(t,n).then((function(){o()})).catch((function(e){i()}))}))}},t.default=a},function(e,t,n){var r=n(31),o=n(369),a=n(370),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(395),o=n(398);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";(function(e){var r=n(6),o=n(272),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||o.a;t.a=u}).call(this,n(82)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4);t.default=function(){return r.createElement("div",{className:"spinner"},r.createElement("div",{className:"icon"},o.ICON_CIRCLE_NOTCH))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateFilters=void 0;var r={UPDATE:"assetFilters/UPDATE",RESET:"footageFilters/RESET"};t.updateFilters=function(e){return{type:r.UPDATE,newFilters:e}},t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_COLORS=t.ASSET_TYPES=t.ASSET_ORIGIN=t.ASSET_DISTRO=void 0,t.ASSET_DISTRO="https://d188rqu2y6x0ew.cloudfront.net",t.ASSET_ORIGIN="https://imposium-footage.s3.us-east-1.amazonaws.com",t.ASSET_TYPES={VIDEO_COMPOSITION:"video_composition",STATIC_COMPOSITION:"static_composition",VIDEO:"video",IMAGE:"image",TEMPLATE:"template",AUDIO:"audio",IMAGE_SEQUENCE:"image_sequence",FONT:"font",LUT:"lut",ALL:"all"},t.ASSET_COLORS=((r={})[t.ASSET_TYPES.VIDEO]="rgba(236,22,150, 1)",r[t.ASSET_TYPES.IMAGE]="rgba(241,191,21, 1)",r[t.ASSET_TYPES.AUDIO]="rgba(72,177,222,1)",r[t.ASSET_TYPES.TEMPLATE]="rgba(208, 80, 35, 1)",r[t.ASSET_TYPES.VIDEO_COMPOSITION]="rgba(215, 22, 22, 1)",r[t.ASSET_TYPES.IMAGE_SEQUENCE]="rgba(241,191,21, 1)",r)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayerStyle=void 0;var a=n(0),i=n(8),s=n(34);t.getPlayerStyle=function(e,t,n,r,o,a,s){var u={width:e,height:t},l={width:n,height:r},c=i.fitToContainer(u,l,{scaleMode:"proportionalInside",maxWidth:a,maxHeight:s,padding:o}),d=c.width,p=c.height;return{top:c.top+"px",left:c.left+"px",width:d+"px",height:p+"px"}};var u=function(e){function n(t){var r=e.call(this,t)||this;return r.state={videoHeight:1080,videoWidth:1920,scaleMode:n.SCALE_MODES.AUTOMATIC},r.videoNode=a.createRef(),r}return o(n,e),n.prototype.getVideoStyle=function(){var e=this.state,n=e.videoHeight,r=e.videoWidth,o=this.props,a=o.padding,i=o.width,u=o.height,l=o.maxWidth,c=o.maxHeight,d=void 0!==a?a:s.DEFAULT_PADDING;return n&&r?t.getPlayerStyle(i,u,r,n,d,l,c):{}},n.prototype.setTime=function(e){var t=this.videoNode.current;t&&(t.currentTime=e)},n.prototype.metadataLoaded=function(e){this.setState({videoWidth:e.target.videoWidth,videoHeight:e.target.videoHeight})},n.prototype.renderCustomControls=function(){var e=this.props.customControls;return e?a.cloneElement(e,{videoNode:this.videoNode}):null},n.prototype.render=function(){var e=this,t=this.props,n=t.url,r=t.active,o=t.muted,i=t.customControls,s=t.hideDefaultControls,u=!i&&!s,l=!!this.props.autoPlay&&this.props.autoPlay;return!1!==r?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getVideoStyle()},a.createElement("video",{controls:u,onLoadedMetadata:function(t){return e.metadataLoaded(t)},muted:o,src:n,ref:this.videoNode,preload:"auto",autoPlay:l}),this.renderCustomControls())):null},n.SCALE_MODES={MANUAL:"manual",AUTOMATIC:"automatic"},n}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(341),s=n(27),u=function(){function e(){}return e.LAST_STORY_ID_CACHE="imp_hub_last_story_id",e.LAST_ORG_ID_CACHE="imp_hub_last_org_id",e.SESSION_COOKIE_NAME="auth_state",e.FRESH_COOKIE={sub:"",organization_id:"",story_id:"",stories_hash:0,orgs_hash:0},e.getAccessData=function(t,n){return new Promise((function(r,o){var a=n?n+"/access":e.determineAccessUrl();s.default.get(a,{headers:{Authorization:"Bearer "+t}}).then((function(e){r(e.data?e.data:[])})).catch((function(e){o(e)}))}))},e.getSession=function(){return i.getJSON(e.SESSION_COOKIE_NAME)},e.removeSession=function(){var t=e.scrapeDomain();i.remove(e.SESSION_COOKIE_NAME,{domain:t})},e.buildFreshSession=function(t,n){var r,o,a,i,s=t.idTokenPayload,u=s.sub,l=s.exp,c=n.organizations,d="",p="";try{o=localStorage.getItem(e.LAST_ORG_ID_CACHE),a=localStorage.getItem(e.LAST_STORY_ID_CACHE)}catch(e){console.warn("Failed to look up cached hub settings",e)}o&&"object"==typeof(i=n.organizations.find((function(e){return e.id===o})))&&i.hasOwnProperty("id")&&(d=o),a&&d&&i.stories.find((function(e){return e.id===a}))&&(p=a),!d&&c.length>0&&"object"==typeof c[0]&&c[0].hasOwnProperty("id")&&(d=c[0].id),!p&&c[0].stories.length>0&&"object"==typeof c[0].stories[0]&&c[0].stories[0].hasOwnProperty("id")&&(p=c[0].stories[0].id),r={sub:u,organization_id:d,story_id:p,stories_hash:e.generateStoriesHash(n),orgs_hash:e.generateOrgsHash(n)},e.storeSession(r,l)},e.storeSession=function(t,n){var o=r(r({},e.FRESH_COOKIE),t),a=e.scrapeDomain(),s=new Date(1e3*n);i.set(e.SESSION_COOKIE_NAME,o,{domain:a,expires:s})},e.updateSession=function(t,n){var o=e.getSession(),a=r(r({},o),t);if(t.hasOwnProperty("organization_id"))try{localStorage.setItem(e.LAST_ORG_ID_CACHE,t.organization_id)}catch(e){console.warn("Failed to cache last organization id selected",e)}if(t.hasOwnProperty("story_id"))try{localStorage.setItem(e.LAST_STORY_ID_CACHE,t.story_id)}catch(e){console.warn("Failed to cache last story id selected",e)}e.storeSession(a,n)},e.generateOrgsHash=function(t){var n=t.organizations.map((function(e){return e.id})).join("");return e.string2Hash(n)},e.generateStoriesHash=function(t){var n=t.organizations.reduce((function(e,t){return a(a([],o(e)),o(t.stories))}),[]).map((function(e){return""+e.id+e.name})).join("");return e.string2Hash(n)},e.string2Hash=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},e.scrapeDomain=function(){var e=window.location.host.split(".").reverse();return e.length>2?"."+e[1]+"."+e[0].split(":")[0]:null},e.determineAccessUrl=function(){var e=window.location,t=e.hostname,n=e.host;return"localhost"===t?"https://api/access":n.includes(".staging.")?"https://api.staging.imposium.com/access":"https://api.imposium.com/access"},e}();t.default=u},function(e,t){e.exports=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(342),a=function(){function e(){}return e.IMPOSIUM_APP_DEFAULTS={domain:"imposium.auth0.com",scope:"openid",responseType:"token id_token",redirectUri:window.location.origin+"/auth"},e.bindToClient=function(t){e.auth0Client=new o.WebAuth(r({clientID:t},e.IMPOSIUM_APP_DEFAULTS))},e.login=function(){e.auth0Client.authorize()},e.logout=function(){e.auth0Client.logout({returnTo:window.location.origin+"/auth"})},e.checkExpiry=function(e){return e>Date.now().valueOf()/1e3},e.parseIdFromHash=function(t){return new Promise((function(n,r){e.auth0Client.parseHash({options:t},(function(e,t){e?r(e):n(t)}))}))},e.checkSession=function(){return new Promise((function(t,n){e.auth0Client.checkSession({},(function(e,r){e?n(e):t(r)}))}))},e}();t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(11),l=n(4),c=n(5),d=function(e){function t(t){var n=e.call(this,t)||this;return n.evtHandlers={copyToClipboard:function(e){return n.copyToClipboard(e)}},n}return o(t,e),t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.onChange=function(e){var t=e.target.value;"true"===t&&(t=!0),"false"===t&&(t=!1),this.props.onChange(t)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.label,o=n.showCopy,d=(n.placeholder,n.options),p=n.value,f=n.width,h=n.buttons,m=n.selectRef,_=n.disable,y=n.tooltip,g=n.info,v=n.labelPosition,b=n.disableFirst,w=[],M=null==p?"":p,L=s.createElement("div",{key:"caret",className:"caret"},l.ICON_CARET_DOWN);return e=h?Array.isArray(h)?i([L],a(h)):[L,h]:[L],o&&e.push(s.createElement(c.default,{key:"btn-copy",style:"subtle",color:"primary",tooltip:"Copy to Clipboard",onClick:this.evtHandlers.copyToClipboard},l.ICON_CLIPBOARD)),d&&(w=d.map((function(e,t){var n=!(0!==t||!b),r=void 0!==e.value?e.value:e,o=void 0!==e.label?e.label:e;return s.createElement("option",{disabled:n,key:"option-"+r,value:r},o)}))),s.createElement(u.default,{customClass:"select-field",label:r,tooltip:y,buttons:e,info:g,labelPosition:v,width:f},s.createElement("select",{value:M,onChange:function(e){return t.onChange(e)},ref:m,disabled:_},w))},t}(s.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=n(4),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.toggle=function(e){this.props.propagate||e.stopPropagation(),this.props.onChange(!this.props.value,e)},t.prototype.render=function(){var e=this,t=this.props,n=t.value,r=t.label,o=t.width,u=t.tooltip,l=t.info,c=t.labelPosition,d=!0===n?s.ICON_CHECK:null;return a.createElement(i.default,{customClass:"checkbox-field",label:r,tooltip:u,info:l,labelPosition:c,width:o},a.createElement("div",{className:"checkbox",onClick:function(t){return e.toggle(t)}},d))},t}(a.PureComponent);t.default=u},function(e,t,n){var r=n(14).Symbol;e.exports=r},function(e,t,n){var r=n(103),o=n(377),a=n(43);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectMultipleAssets=t.selectAsset=t.resetSelection=t.deselectAsset=t.selectAll=void 0;t.selectAll=function(){return function(e,t){var n=t().assetList.assets.map((function(e){return e.id}));e({type:o.SELECT_ALL,allIds:n})}};t.deselectAsset=function(e){return{type:o.DESELECT_ASSET,id:e}};t.resetSelection=function(){return{type:o.RESET_SELECTION}};t.selectAsset=function(e){return{type:o.SELECT_ASSET,id:e}};t.selectMultipleAssets=function(e){return function(t,n){for(var a=n(),i=a.selectedAssets,s=a.assetList.assets,u=i[i.length-1],l=r(s,u),c=r(s,e),d=l<c?c:l,p=[],f=l<c?l:c;f<=d;f++){var h=s[f];p.push(h.id)}t({type:o.SELECT_MULTIPLE,assets:p}),window.getSelection().removeAllRanges()}};var r=function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return n}},o={SELECT_ALL:"selectAssets/SELECT_ALL",SELECT_MULTIPLE:"selectAssets/SELECT_MULTIPLE",SELECT_ASSET:"selectedAssets/SELECT_ASSET",DESELECT_ASSET:"selectedAssets/DESELECT_ASSET",RESET_SELECTION:"selectedAssets/RESET_SELECTION"};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PADDING=void 0,t.DEFAULT_PADDING=35},function(e,t){e.exports=o},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,s=0,u=o.round,l=o.min,c=o.max,d=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,u=null,d=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(O[e])e=O[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:R(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:R(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(B(e.r)&&B(e.g)&&B(e.b)?(f=e.r,h=e.g,m=e.b,t={r:255*A(f,255),g:255*A(h,255),b:255*A(m,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(r=I(e.s),s=I(e.v),t=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),s=n*(1-a*t),u=n*(1-(1-a)*t),l=r%6;return{r:255*[n,s,i,i,u,n][l],g:255*[u,n,n,s,i,i][l],b:255*[i,i,u,n,n,s][l]}}(e.h,r,s),d=!0,p="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(r=I(e.s),u=I(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=i(u,s,e+1/3),o=i(u,s,e),a=i(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,u),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,h,m;return n=C(n),{ok:d,format:e.format||p,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function f(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=c(e,t,n),i=l(e,t,n),s=(a+i)/2;if(a==i)r=o=0;else{var u=a-i;switch(o=s>.5?u/(2-a-i):u/(a+i),a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,l:s}}function h(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,a=c(e,t,n),i=l(e,t,n),s=a,u=a-i;if(o=0===a?0:u/a,a==i)r=0;else{switch(a){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,v:s}}function m(e,t,n,r){var o=[H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function _(e,t,n,r){return[H(N(r)),H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=j(n.s),p(n)}function g(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=j(n.s),p(n)}function v(e){return p(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=j(n.l),p(n)}function w(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=c(0,l(255,n.r-u(-t/100*255))),n.g=c(0,l(255,n.g-u(-t/100*255))),n.b=c(0,l(255,n.b-u(-t/100*255))),p(n)}function M(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=j(n.l),p(n)}function L(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function T(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function k(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function x(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function E(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),o=360/n,a=[p(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(p(r));return a}function D(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(p({h:r,s:o,v:a})),a=(a+s)%1;return i}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=C(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[H(u(e).toString(16)),H(u(t).toString(16)),H(u(n).toString(16)),H(N(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*A(this._r,255))+"%",g:u(100*A(this._g,255))+"%",b:u(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%)":"rgba("+u(100*A(this._r,255))+"%, "+u(100*A(this._g,255))+"%, "+u(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Y[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);n="#"+_(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),o=p(t).toRgb(),a=n/100;return p({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,o,a=p.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},p.mostReadable=function(e,t,n){var r,o,a,i,s=null,u=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var l=0;l<t.length;l++)(r=p.readability(e,t[l]))>u&&(u=r,s=p(t[l]));return p.isReadable(e,s,{level:a,size:i})||!o?s:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var O=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Y=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(O);function C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return l(1,c(0,e))}function P(e){return parseInt(e,16)}function H(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function N(e){return o.round(255*parseFloat(e)).toString(16)}function R(e){return P(e)/255}var F,z,U,W=(z="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",U="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t){e.exports=a},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearCachedAuth=t.login=t.AUTH_CACHE_KEY=void 0,t.AUTH_CACHE_KEY="imposium_hub_creds";t.login=function(e){try{localStorage.setItem(t.AUTH_CACHE_KEY,JSON.stringify(e))}catch(e){console.warn("Failed to cache auth creds...")}return{type:r.LOGIN,auth:e}};t.clearCachedAuth=function(){try{localStorage.removeItem(t.AUTH_CACHE_KEY)}catch(e){console.warn("Failed to remove cached creds")}return{type:r.CLEAR}};var r={LOGIN:"auth/LOGIN",CLEAR:"auth/CLEAR"};t.default=r},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.storyDeleted=t.storyNameMutated=t.orgNameMutated=t.storyAdded=t.clearCachedAccessList=t.cacheAccessData=t.ACCESS_CACHE_KEY=void 0;var i=n(26);t.ACCESS_CACHE_KEY="imposium_access_list";t.cacheAccessData=function(e){return s(e),{type:u.SET,accessData:e}};t.clearCachedAccessList=function(){try{localStorage.removeItem(t.ACCESS_CACHE_KEY)}catch(e){console.warn("Failed to clear access list cache from local storage.")}return{type:u.CLEAR}};t.storyAdded=function(e,t){return function(n,l){var c=l(),d=c.access,p=c.auth.idTokenPayload.exp,f=c.routing.locationBeforeTransitions.query.organization_id,h=r(r({},d),{organizations:d.organizations.map((function(n){return n.id===f?r(r({},n),{stories:a(a([],o(n.stories)),[{id:e,name:t}]).sort((function(e,t){return e.name.localeCompare(t.name)}))}):n}))});i.default.updateSession({stories_hash:i.default.generateStoriesHash(h)},p),s(h),n({type:u.STORY_ADDED,accessData:h})}};t.orgNameMutated=function(e,t){return function(n,o){var a=o(),l=a.access,c=a.auth.idTokenPayload.exp,d=r(r({},l),{organizations:l.organizations.map((function(n){return n.id===e?r(r({},n),{name:t}):n}))});i.default.updateSession({stories_hash:i.default.generateOrgsHash(d)},c),s(d),n({type:u.ORG_NAME_MUTATION,accessData:d})}};t.storyNameMutated=function(e,t){return function(n,o){var a=o(),l=a.access,c=a.auth.idTokenPayload.exp,d=a.routing.locationBeforeTransitions.query.organization_id,p=r(r({},l),{organizations:l.organizations.map((function(n){return n.id===d?r(r({},n),{stories:n.stories.map((function(n){return n.id===e?r(r({},n),{name:t}):n}))}):n}))});i.default.updateSession({stories_hash:i.default.generateOrgsHash(p)},c),s(p),n({type:u.STORY_NAME_MUTATION,accessData:p})}};t.storyDeleted=function(e){return function(t,n){var o=n(),a=o.access,l=o.auth.idTokenPayload.exp,c=o.routing.locationBeforeTransitions.query.organization_id,d=r(r({},a),{organizations:a.organizations.map((function(t){return t.id===c?r(r({},t),{stories:t.stories.filter((function(t){return t.id!==e}))}):t}))});i.default.updateSession({story_id:"",stories_hash:i.default.generateStoriesHash(d)},l),s(d),t({type:u.STORY_DELETED,accessData:d})}};var s=function(e){try{localStorage.setItem(t.ACCESS_CACHE_KEY,JSON.stringify(e))}catch(e){console.warn("Failed to cache access list in local storage.")}},u={SET:"access/SET",CLEAR:"access/CLEAR",STORY_ADDED:"access/STORY_ADDED",STORY_NAME_MUTATION:"access/STORY_NAME_MUTATION",ORG_NAME_MUTATION:"access/ORG_NAME_MUTATION",STORY_DELETED:"access/STORY_DELETED"};t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=function(e){function t(t){var n=e.call(this,t)||this;return n.inputRef=a.createRef(),n}return o(t,e),t.prototype.onChange=function(e){var t=e.target.value;t=""===t?null:parseFloat(t),this.props.onChange(t)},t.prototype.onSelectFocus=function(){},t.prototype.onSelectBlur=function(){},t.prototype.handleLabelDrag=function(e){var t=this.props.value+e;this.props.onChange(t)},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.placeholder,o=t.width,s=t.readOnly,u=t.buttons,l=t.tooltip,c=t.info,d=t.labelPosition,p=t.min,f=t.max,h=this.props.value;return null===h&&(h=""),a.createElement(i.default,{customClass:"number-field",label:n,tooltip:l,buttons:u,info:c,labelPosition:d,width:o},a.createElement("input",{ref:this.inputRef,type:"number",pattern:"/^-?(0|[1-9]d*)(.d+)?$/",placeholder:r,value:h,readOnly:s,min:p,max:f,onFocus:function(){return e.onSelectFocus()},onBlur:function(){return e.onSelectBlur()},onChange:function(t){return e.onChange(t)}}))},t}(a.PureComponent);t.default=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(108),o=n(68);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(385),o=n(386),a=n(387),i=n(388),s=n(389);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(74);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(19)(Object,"create");e.exports=r},function(e,t,n){var r=n(407);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(422),o=n(75),a=n(423),i=n(424),s=n(425),u=n(18),l=n(111),c=l(r),d=l(o),p=l(a),f=l(i),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||a&&"[object Promise]"!=m(a.resolve())||i&&"[object Set]"!=m(new i)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(79);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(123),o=n(124);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=a?a(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),i?o(n,l,c):r(n,l,c)}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(4),a=n(8),i=r.memo((function(e){if("string"!=typeof e.copy)throw new Error("Prop passed to Tag is not string: ");var t=e.colorize?""+a.string2HexCode(e.copy):"",n="function"==typeof e.removeHandler&&r.createElement("div",{className:"remove-tag",onClick:e.removeHandler},o.ICON_TIMES);return r.createElement("div",{key:e.copy,style:{borderLeftColor:t},className:"imposium-tag"},e.copy,n)}));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAssetUpload=t.uploadAssets=t.toggleAssignToStory=t.toggleAutoTag=void 0;var r=n(17),o=n(27),a={TOGGLE_AUTO_TAG:"assetUploads/TOGGLE_AUTO_TAG",TOGGLE_ASSIGN_TO_STORY:"assetUploads/TOGGLE_ASSIGN_TO_STORY",ADD_UPLOAD:"assetUploads/ADD_UPLOAD",UPDATE_PERCENT_UPLOADED:"assetUploads/UPDATE_PERCENT_UPLOADED",REMOVE_UPLOAD:"assetUploads/REMOVE_UPLOAD"};t.toggleAutoTag=function(e){return{type:a.TOGGLE_AUTO_TAG,toggle:e}};t.toggleAssignToStory=function(e){return{type:a.TOGGLE_ASSIGN_TO_STORY,toggle:e}};t.uploadAssets=function(e,t,n,s){return function(u,l){for(var c=l().assetUploads,d=c.autoTag,p=c.uploads,f=c.assignToStory,h=0,m=[],_=t.length>5?4:t.length-1,y=t.map((function(e){var t=p.filter((function(t){return t.filename.includes(e.name)})),n=t.length>0?e.name+" ("+t.length+")":e.name,r=d?e.name.substr(0,e.name.lastIndexOf(".")).split("_").join(","):"";return u({type:a.ADD_UPLOAD,uploadMeta:{filename:n,percent:0}}),{file:e,tags:r,filename:n,onUploadProgress:function(e){u({type:a.UPDATE_PERCENT_UPLOADED,percent:Math.floor(100*e.loaded/e.total),filename:n})}}})),g=function(t){var l=y.length,c=f&&n?n:null;e.uploadAsset(c,y[t].tags,y[t].file,y[t].onUploadProgress,y[t].filename).then((function(o){m.push((s&&s(o[0]),{footageId:o[0].id,jobId:o[0].job_id,filename:y[t].filename,onProcessed:function(){var t=m.filter((function(e){return e.jobId===o[0].job_id}))[0].filename;u({type:a.REMOVE_UPLOAD,filename:t}),r.doAssetTableHydration(e,n)}})),h!==l-1?g(h+=1):(m=m.filter((function(t,o){var i="string"==typeof t.jobId;return i||(u({type:a.REMOVE_UPLOAD,filename:t.filename}),r.doAssetTableHydration(e,n)),i}))).length>0&&i(e,m,-1)})).catch((function(e){o.default.isCancel(e)&&h!==l-1&&g(h+=1)}))},v=0;v<=_;v++)g(v),h=v}};var i=function(e,t,n){n=window.setTimeout((function(){var r=t.map((function(t){return e.getJob(t.jobId)}));Promise.all(r).then((function(r){var o;clearTimeout(n),r.forEach((function(e){"processing"!==e.status&&"completed"!==e.status||(o=t.find((function(t){return t.jobId===e.id})))&&(o.onProcessed(),t=t.filter((function(t){return t.jobId!==e.id})))})),t.length>0&&i(e,t,n)})).catch((function(e){console.error("Failed to poll for processing jobs:",e)}))}),5e3)};t.cancelAssetUpload=function(e,t){return function(n){t.cancelUploadAssets(e),n({type:a.REMOVE_UPLOAD,filename:e})}},t.default=a},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getNewCompositionLayer=t.VARIABLE_TYPES=t.TEXT_SIZE_OPTIONS=t.DEFAULT_FONT=t.FILL_MODES=t.STADARD_FONTS=t.FONT_TYPE_OPTIONS=t.FONT_TYPES=void 0;var o=n(8);t.FONT_TYPES={STANDARD:"standard",CUSTOM:"custom"},t.FONT_TYPE_OPTIONS=[{label:"Standard",value:t.FONT_TYPES.STANDARD},{label:"Custom",value:t.FONT_TYPES.CUSTOM}],t.STADARD_FONTS=["Arial","Courier New","Georgia","Impact","Times New Roman","Trebuchet MS","Verdana"],t.FILL_MODES={FIT:"fit",FILL:"fill",STRETCH:"stretch"},t.DEFAULT_FONT="Arial",t.TEXT_SIZE_OPTIONS=[{label:"6px",value:6},{label:"8px",value:8},{label:"9px",value:9},{label:"10px",value:10},{label:"11px",value:11},{label:"12px",value:12},{label:"14px",value:14},{label:"16px",value:16},{label:"18px",value:18},{label:"24px",value:24},{label:"30px",value:30},{label:"36px",value:36},{label:"48px",value:48},{label:"60px",value:60},{label:"72px",value:72}],t.VARIABLE_TYPES={TEXT:"text",NUMBER:"number",BOOLEAN:"boolean",ENUM:"enum",IMAGE:"image",VIDEO:"video",AUDIO:"audio"};t.getNewCompositionLayer=function(){var e=r({},a);return e.id=o.generateUUID(),e};var a={id:null,x:0,y:0,width:200,height:100,rotation:0,name:"New Layer",content:"",color:"#000000",background_color:"transparent",font_size:24,font_type:"standard",font_weight:400,font:t.DEFAULT_FONT,custom_font_id:null,custom_font_url:null,letter_spacing:null,word_spacing:null,line_height:null,horizontal_alignment:"center",vertical_alignment:"center",text_wrap:!0,text_fit:!0}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.BigLink=t.WizardError=t.TabHeader=t.TabContent=t.BigButton=void 0;var u=n(0),l=n(5),c=n(29),d=n(16),p=n(4),f=n(7),h=n(24),m=n(507),_=n(508),y=n(135),g=n(512),v=n(271),b=n(10),w=n(55),M=n(9),L=function(e){function n(t){var n=e.call(this,t)||this;return n.onSelectOption=function(e){n.props.publishData.publishing&&alert("WARNING: Your publish is still in progress, your changes will not be present in the rendered videos until the publish is complete"),n.setState({screenIndex:e,done:!1})},n.onCompositionChange=function(e){n.setState({selectedComposition:e})},n.onCredentialsChange=function(e){n.setState({accessKey:e})},n.onDoneHandler=function(){n.setState({done:!0})},n.state={compositions:[],selectedComposition:null,newPublish:!0,status:"",queryRunning:!0,publishMessage:"",screenIndex:0,accessKey:null,credentials:[],done:!1},n.hiddenFileInputRef=u.createRef(),n}return o(n,e),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.story,r=t.api,o=t.handleError,s=t.activeComposition;r.getAssets({type:h.ASSET_TYPES.VIDEO_COMPOSITION},n.id).then((function(t){var n=t.assets[0]?t.assets[0].id:null,r=s||n;e.setState({compositions:t.assets,selectedComposition:r})})).catch((function(e){o(f.integration.errorPullingComps)})),r.getAccssCredentials().then((function(t){0===t.length?r.createAccessCredentials("default").then((function(t){var n=e.state.credentials,r=i(i([],a(n)),[t]);e.setState({credentials:r,accessKey:t[0].access_key_id})})):e.setState({credentials:t,accessKey:t[0].access_key_id})})).catch((function(e){o(f.integration.errorGettingCreds)}))},n.prototype.checkStatus=function(){var e=this,t=this.props,n=t.project.storyId,r=t.api,o=t.handleError;n&&this.setState({queryRunning:!0,newPublish:!1,status:""},(function(){r.getStoryStatus(n).then((function(t){t?t.publishing&&e.setState({status:f.header.publishing},(function(){e.pollStatus(t.job_id)})):e.setState({queryRunning:!1,status:f.header.working})})).catch((function(t){e.setState({queryRunning:!1},(function(){404===t.response.status?e.setState({queryRunning:!1,status:f.header.working}):(o(f.header.statusError),e.setState({status:""}))}))}))}))},n.prototype.pollStatus=function(e){var t=this,n=this.props,r=n.api,o=n.handleError;r.pollJob(e).then((function(){t.checkStatus()})).catch((function(){o(f.header.publishPollError),t.setState({status:""})}))},n.prototype.handlePublish=function(){var e=this.props,t=e.story.id,n=e.api,r=e.handleError;this.props.publishVersion(n,t).catch((function(e){r(e)})),this.setState({screenIndex:1})},n.prototype.renderLowerButtons=function(){var e=this,t=this.state,n=t.screenIndex,r=t.done,o=this.props.publishing,a=[];if(0===n)a.push(u.createElement(l.default,{tooltip:f.publish.btnPublish,size:"large",disabled:o,key:"btn-publish",onClick:function(){return e.handlePublish()},color:"primary"},f.publish.btnPublish)),a.push(u.createElement(l.default,{tooltip:f.publish.btnSkip,key:"btn-skip",size:"large",onClick:function(){return e.setState({screenIndex:1})},color:"primary"},f.publish.btnSkip));else{r&&a.push(u.createElement(l.default,{tooltip:f.publish.btnFinished,size:"large",key:"btn-finish",onClick:function(){return e.props.onClose()},color:"primary"},f.publish.btnFinished));var i=1===n?0:1;a.push(u.createElement(l.default,{tooltip:f.publish.btnBack,size:"large",key:"btn-back",onClick:function(){return e.setState({screenIndex:i})},color:"primary"},f.publish.btnBack))}return a},n.prototype.renderPublish=function(){return u.createElement("div",null,u.createElement("h2",null,f.publish.publishStepTitle),u.createElement(d.default,null),u.createElement("p",null,f.publish.publishStepDesc))},n.prototype.renderDistributionOptions=function(){var e,n,r,o,a=this,i=[],l=[],h=this.state,m=h.compositions,_=h.selectedComposition,y=h.credentials,g=h.accessKey;try{for(var v=s(m),b=v.next();!b.done;b=v.next()){var w=b.value;i.push({value:w.id,label:w.name})}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}try{for(var M=s(y),L=M.next();!L.done;L=M.next()){var T=L.value;l.push({value:T.access_key_id,label:T.name})}}catch(e){r={error:e}}finally{try{L&&!L.done&&(o=M.return)&&o.call(M)}finally{if(r)throw r.error}}var k=[{label:u.createElement("span",null,p.ICON_GLOBE," ",f.publish.btnWebsite),onClick:function(e){return a.onSelectOption(2)}},{label:u.createElement("span",null,p.ICON_EMAIL," ",f.publish.btnEmail),onClick:function(e){return a.onSelectOption(3)}},{label:u.createElement("span",null,p.ICON_HUBSPOT," ",f.publish.btnHubspot),onClick:function(e){return a.onSelectOption(5)}},{label:u.createElement("span",null,p.ICON_PROJECT_DIAGRAM," ",f.publish.btnAPI),onClick:function(e){return a.onSelectOption(6)}},{label:u.createElement("span",null,p.ICON_DOWNLOAD," ",f.publish.btnExport),onClick:function(e){return a.onSelectOption(7)}}];return u.createElement("div",null,u.createElement("h2",null,f.publish.distributeStepTitle),u.createElement(d.default,null),u.createElement("p",null,f.publish.distributeStepDesc),u.createElement(d.default,null),!this.state.selectedComposition&&u.createElement("p",{className:"text-danger"},f.publish.noCompErrorDesc),u.createElement("div",{style:{marginTop:"10px"}},u.createElement(c.default,{label:f.project.compName,value:_,onChange:this.onCompositionChange,options:i,tooltip:f.project.tooltipCompId}),u.createElement(c.default,{label:f.publish.accessKey,value:g,onChange:this.onCredentialsChange,options:l,tooltip:f.publish.tooltipAccessKey}),u.createElement("div",{className:"link-wrapper"},null==k?void 0:k.map((function(e,n){return u.createElement(t.BigButton,{key:n,disabled:!a.state.selectedComposition,label:e.label,onClick:e.onClick})})))))},n.prototype.render=function(){var e,t=this.props,n=t.story,r=t.api,o=t.handleError,a=t.createFreshBatch,i=t.getBatches,s=t.getBatchExport,l=t.importBatchFromCsv,c=t.handleNotification,p=t.renderBatch,h=t.batchJobs,b=this.state,w=b.screenIndex,M=b.status,L=b.selectedComposition,T=b.compositions,k=b.accessKey,x=(null===(e=T.find((function(e){return e.id===L})))||void 0===e?void 0:e.name)||"";return u.createElement("div",{className:"publish-wizard"},u.createElement("div",{className:"publish-wizard-header"},f.publish.publishTitle,u.createElement(v.default,{api:r})),u.createElement("div",null,0===w&&this.renderPublish(),1===w&&this.renderDistributionOptions(),2===w&&u.createElement(y.default,{story:n,compositionId:L,accessKey:k}),(3===w||7===w)&&u.createElement(g.default,{isExport:7===w,api:r,story:n,onDone:this.onDoneHandler,status:M,renderBatch:p,batchJobs:h,accessKey:k,compositionId:L,compositionName:x,handleError:o,createFreshBatch:a,getBatches:i,getBatchExport:s,importBatchFromCsv:l}),5===w&&u.createElement(m.default,{handleError:o,status:M,accessKey:k,story:n,handleNotification:c,compositionId:L}),6===w&&u.createElement(_.default,null),u.createElement("br",null),u.createElement(d.default,null),u.createElement("div",{className:"lower-buttons"},this.renderLowerButtons())))},n}(u.PureComponent);t.default=M.connect((function(e){return{publishData:e.publish}}),(function(e){return b.bindActionCreators({publishVersion:w.publishVersion},e)}))(L);t.BigButton=function(e){return u.createElement("div",{className:"big-link "+(e.disabled&&"disabled"),onClick:function(){return e.onClick()},style:e.style},u.createElement("h1",null,e.label))};t.TabContent=function(e){var t=e.children;return u.createElement("div",{className:"tab-content"},u.createElement("div",{className:"settings-tab"},u.createElement("div",{className:"integration-details"},t)))};t.TabHeader=function(e){var t=e.className,n=e.title;return u.createElement("div",{className:"tab-header"},u.createElement("div",{className:t||"tab-header-option active"},n))};t.WizardError=function(e){var t=e.description,n=e.title;return u.createElement("div",{className:"publish-wizard-error"},u.createElement("h3",null,n),u.createElement("p",null,t))};t.BigLink=function(e){return u.createElement("a",{className:"big-link",target:"_blank",href:e.link},u.createElement("h1",null,e.label))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearStoryPublishStatus=t.publishVersion=t.cancelPublish=t.getStoryPublishStatus=void 0;var r=n(7),o={CLEAR_PUBLISH_STATUS:"publish/CLEAR_PUBLISH_STATUS",UPDATE_PUBLISH_STATUS:"publish/UPDATE_PUBLISH_STATUS"};t.getStoryPublishStatus=function(e,n){return function(a){return new Promise((function(i,s){e.getStoryStatus(n).then((function(i){if(i&&(a({type:o.UPDATE_PUBLISH_STATUS,data:i}),i.publishing)){var u=i.job_id;e.pollJob(u).then((function(){return a(t.getStoryPublishStatus(e,n))})).catch((function(e){console.error(e),s(r.header.publishPollError)}))}})).catch((function(e){var t;404!==(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&(console.error(e),s(r.header.publishPollError))}))}))}};t.cancelPublish=function(e,n){return function(r){return new Promise((function(o,a){e.cancelPublish(n).then((function(){e.cancelJobPolling().then((function(){r(t.getStoryPublishStatus(e,n))})).catch((function(e){throw a(e),e}))})).catch((function(e){throw a(e),e}))}))}};t.publishVersion=function(e,n){return function(o){return new Promise((function(a,i){e.runPublish(n,"").then((function(r){o(t.getStoryPublishStatus(e,n))})).catch((function(){i(r.header.publishJobError)}))}))}};t.clearStoryPublishStatus=function(e){return function(t){e.cancelJobPolling(),t({type:o.CLEAR_PUBLISH_STATUS})}},t.default=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(38))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z";t.definition={prefix:"fas",iconName:"user-lock",icon:[640,512,r,"f502",o]},t.faUserLock=t.definition,t.prefix="fas",t.iconName="user-lock",t.width=640,t.height=512,t.ligatures=r,t.unicode="f502",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";t.definition={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,r,"f071",o]},t.faExclamationTriangle=t.definition,t.prefix="fas",t.iconName="exclamation-triangle",t.width=576,t.height=512,t.ligatures=r,t.unicode="f071",t.svgPathData=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=function(e){function t(n){var r=e.call(this,n)||this;return r.resizeHandler=function(){return r.onResize()},r.clickHandler=function(e){return r.detectOutsideClick(e)},r.escHandler=function(e){return r.onEsc(e)},r.dropdownRef=null,r.onResize=function(){var e=r.props.toggleRef;if(void 0!==e){var t=e.current.getBoundingClientRect(),n=t.top,o=t.left,a=t.bottom,i=t.right;r.setState({offset:{top:n,left:o,bottom:a,right:i}})}},r.cancelRender=function(e){void 0===e&&(e=!1);var t=r.props.onOutsideClick;window.removeEventListener("resize",r.resizeHandler),window.removeEventListener("mousedown",r.clickHandler),window.addEventListener("keydown",r.onEsc),r.setState({build:!1,offset:{}}),e&&t()},r.onEsc=function(e){e.keyCode===t.ESC_CODE&&r.cancelRender(!0)},r.detectOutsideClick=function(e){var t=r.props.toggleRef,n=e.target,o=!(!r.dropdownRef.current||!r.dropdownRef.current.contains(n)),a=!!(t&&t.current&&t.current.contains(n));o||a||r.cancelRender(!0)},r.state={build:!1,offset:{}},r.dropdownRef=a.createRef(),r}return o(t,e),t.prototype.componentDidUpdate=function(e){var t=this;this.props.show&&!e.show&&(this.onResize(),this.setState({build:!0},(function(){window.addEventListener("resize",t.resizeHandler),window.addEventListener("mousedown",t.clickHandler),window.addEventListener("keydown",t.onEsc)}))),!this.props.show&&e.show&&this.cancelRender()},t.prototype.render=function(){var e=this.state,t=e.build,n=e.offset,r=this.props,o=r.show,i=r.position,s=r.children,u={position:r.fixed?"fixed":"absolute",transform:t?"scaleY(1)":"scaleY(0)",opacity:t?"1":"0"};if(!o)return null;if(n){var l=document.documentElement.clientWidth,c=(n.top,n.left),d=n.bottom,p=n.right;switch(i){case"topleft":case"topright":case"bottomleft":u.top=d+5+"px",u.left=c+"px",u.transformOrigin="top left";break;case"bottomright":u.top=d+5+"px",u.right=l-p+"px",u.transformOrigin="top right"}}return a.createElement("div",{className:"imposium-dropdown",style:u,ref:this.dropdownRef},s)},t.ESC_CODE=27,t}(a.PureComponent);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTooltip=t.renderTooltipProps=void 0;var r=n(0),o=n(35),a=n(351);t.renderTooltipProps=function(e,t){return t?{"data-tip":"object"==typeof t?t.content:t,"data-for":e}:{}};t.renderTooltip=function(e,t){var n=document.getElementById("tooltips");if(t&&n){var i="light",s="top";"object"==typeof t&&(i=t.theme?t.theme:"light",s=t.position?t.position:"top");var u=r.createElement(a,{place:s,offset:{top:0,right:0,bottom:0,left:0},id:e,className:"imposium-button-tooltip-"+i,delayShow:1e3,effect:"solid"});return o.createPortal(u,n)}return null}},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(11),u=n(60),l=function(e){function t(t){var n=e.call(this,t)||this;return n.clickCounter=0,n.handleMultipleClicks=function(e,t){n.clickCounter++,1===n.clickCounter&&(n.clickTimeout=window.setTimeout((function(){n.clickCounter=0,e()}),300)),2===n.clickCounter&&(clearTimeout(n.clickTimeout),n.clickCounter=0,t())},n.render=function(){var e=n.props,t=e.value,r=e.label,o=e.options,l=e.width,c=e.tooltip,d=e.info,p=e.labelPosition,f={width:100/o.length+"%"};return i.createElement(s.default,{customClass:"button-group-field",label:r,tooltip:c,info:d,labelPosition:p,width:l},i.createElement("div",{className:"button-group"},o.map((function(e,r){var o=e.value,s=e.label,l=e.icon?e.icon:null,c=o+"-"+r,d=o===t,p=d?"active":"",h=d?null:function(){n.props.onChange(o)};return i.createElement("div",a({key:"option-"+o,style:f,className:"button-group-option "+p},u.renderTooltipProps(c,e.tooltip),{onClick:"function"==typeof e.onDoubleClick?function(){return n.handleMultipleClicks(h,e.onDoubleClick)}:h}),l||s,u.renderTooltip(c,e.tooltip))}))))},n}return o(t,e),t}(i.PureComponent);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),u=n(5),l=n(11),c=n(4),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={internalValue:t.value,editing:!1},n.evtHandlers={toggleEditing:function(e){return n.toggleEditing(e)},copyToClipboard:function(e){return n.copyToClipboard(e)}},n.inputRef=s.createRef(),n}return o(t,e),t.prototype.blur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.copyToClipboard=function(e){var t=this.props,n=t.onNotification,r=t.onError;navigator.clipboard.writeText(this.props.value).then((function(){n&&n("Copied to clipboard!")}),(function(){r&&r("Error copying to clipboard.")}))},t.prototype.focus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.getValue=function(){var e=this.props,t=e.controlled,n=e.value,r=this.state.internalValue;return t?r:n},t.prototype.onChange=function(e){this.props.controlled?this.setState({internalValue:e.target.value}):this.props.onChange(e.target.value)},t.prototype.renderButtons=function(){var e=this.props,t=e.controlled,n=(e.readOnly,e.buttons),r=e.showCopy,o=this.state.editing,l=n?i([],a(n)):[];if(t){var d=o?c.ICON_CHECK:c.ICON_EDIT;l.push(s.createElement(u.default,{key:"btn-edit",style:"subtle",color:"secondary",onClick:this.evtHandlers.toggleEditing},d))}return r&&l.push(s.createElement(u.default,{key:"btn-copy",style:"subtle",tooltip:"Copy to Clipboard",color:"primary",onClick:this.evtHandlers.copyToClipboard},c.ICON_CLIPBOARD)),l},t.prototype.toggleEditing=function(e){var t=this,n=this.state,r=n.editing,o=n.internalValue,a=this.props.value;r?this.setState({editing:!1},(function(){o!==a&&t.props.onSubmit(t.state.internalValue)})):this.setState({editing:!0},(function(){var e=t.inputRef.current;e&&e.focus()}))},t.prototype.componentDidUpdate=function(e){this.props.controlled&&e.value!==this.props.value&&this.setState({internalValue:this.props.value})},t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.placeholder,o=t.controlled,a=t.disabled,i=t.readOnly,u=t.width,c=t.tooltip,d=t.info,p=t.labelPosition,f=this.state.editing,h=o&&!f||a;return s.createElement(l.default,{customClass:"text-area-field",label:n,tooltip:c,buttons:this.renderButtons(),info:d,labelPosition:p,width:u},s.createElement("textarea",{placeholder:r,value:this.getValue(),disabled:h,readOnly:i,ref:this.inputRef,onChange:function(t){return e.onChange(t)},onFocus:function(t){return e.focus(t)},onBlur:function(t){return e.blur(t)}}))},t}(s.PureComponent);t.default=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(11),s=n(529),u=function(e){function t(t){var n=e.call(this,t)||this;return n.transparentBg='url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center',n.state={pickerOpen:!1},n.picker=a.createRef(),n.clickOutsideHandler=function(e){return n.handleClickOutside(e)},n}return o(t,e),t.prototype.togglePicker=function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=!this.state.pickerOpen;this.setState({pickerOpen:n},(function(){t.state.pickerOpen?document.addEventListener("click",t.clickOutsideHandler):document.removeEventListener("click",t.clickOutsideHandler)}))},t.prototype.handleClickOutside=function(e){var t=e.target,n=this.picker.current;do{if(t===n)return;t=t.parentNode}while(t);document.removeEventListener("click",this.clickOutsideHandler),this.setState({pickerOpen:!1})},t.prototype.handleChangeComplete=function(e,t){return this.props.onChange(e)},t.prototype.render=function(){var e,t=this,n=this.props,r=n.label,o=(n.placeholder,n.width),u=(n.readOnly,n.buttons),l=n.tooltip,c=n.value,d=n.enableAlpha,p=n.presetColors,f=n.info,h=n.labelPosition,m=!d,_=n.pickerPosition||"left",y=this.state.pickerOpen?a.createElement(s.SketchPicker,{color:c,disableAlpha:m,presetColors:p,onChangeComplete:function(e,n){return t.handleChangeComplete(e,n)}}):null;return e="transparent"===c?{background:this.transparentBg,border:"1px solid #1d1d1d",boxSizing:"border-box"}:{backgroundColor:c},a.createElement(i.default,{customClass:"color-field",label:r,tooltip:l,buttons:u,info:f,labelPosition:h,width:o},a.createElement("div",{className:"swatch",style:e,onClick:function(e){return t.togglePicker(e)}}),a.createElement("div",{className:"picker picker-"+_,ref:this.picker},y))},t}(a.PureComponent);t.default=u},function(e,t,n){var r=n(102),o=n(379);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){(function(e){var r=n(14),o=n(375),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(this,n(42)(e))},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(101),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(this,n(42)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(107)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(44),o=n(390),a=n(391),i=n(392),s=n(393),u=n(394);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(19)(n(14),"Map");e.exports=r},function(e,t,n){var r=n(399),o=n(406),a=n(408),i=n(409),s=n(410);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(421),o=n(118),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},function(e,t,n){var r=n(12),o=n(79),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(18),o=n(15);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(103),o=n(450),a=n(43);e.exports=function(e){return a(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(114);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAssetTagToList=t.getAssetTagList=void 0;var r={GET:"assetTags/GET",ADD:"assetTags/ADD"};t.getAssetTagList=function(e,t){return function(n){return new Promise((function(o,a){e.getAssetTags(t).then((function(e){n({type:r.GET,assetTags:e}),o()})).catch((function(e){console.error("Failed to get tag list",e),a()}))}))}};t.addAssetTagToList=function(e){return{type:r.ADD,freshTags:e}},t.default=r},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(477),i=n(61);t.default=function(e){var t=r(i.useDrop({accept:[a.NativeTypes.FILE],drop:function(t,n){e.onDrop&&e.onDrop(e,n)},collect:function(e){return{isOver:e.isOver,canDrop:e.canDrop}}}),2),n=t[0],s=(n.canDrop,n.isOver,t[1]);return o.createElement("div",{className:e.className||"",ref:e.disable?void 0:s},e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(24),a=n(7),i=n(4),s=r.memo((function(e){var t={color:o.ASSET_COLORS[e.type]};switch(e.type){case"filter":return r.createElement("span",null,i.ICON_FILTER);case"all":return r.createElement("span",{title:a.assets.iconTypes.all},i.ICON_TIMES);case o.ASSET_TYPES.VIDEO:return r.createElement("span",{title:a.assets.iconTypes.video,style:t},i.ICON_VIDEO);case o.ASSET_TYPES.AUDIO:return r.createElement("span",{title:a.assets.iconTypes.audio,style:t},i.ICON_AUDIO_TYPE);case o.ASSET_TYPES.IMAGE:return r.createElement("span",{title:a.assets.iconTypes.image,style:t},i.ICON_IMAGE);case o.ASSET_TYPES.IMAGE_SEQUENCE:return r.createElement("span",{title:a.assets.iconTypes.image_sequence,style:t},i.ICON_IMAGE_SEQ_TYPE);case o.ASSET_TYPES.TEMPLATE:return r.createElement("span",{title:a.assets.iconTypes.template,style:t},i.ICON_FILE_ARCHIVE);case o.ASSET_TYPES.VIDEO_COMPOSITION:return r.createElement("span",{title:a.assets.iconTypes.video_composition,style:t},i.ICON_LAYER_GROUP);case o.ASSET_TYPES.LUT:return r.createElement("span",{title:a.assets.iconTypes.lut},i.ICON_CUBE);case o.ASSET_TYPES.FONT:return r.createElement("span",{title:a.assets.iconTypes.font},i.ICON_FONT);case o.ASSET_TYPES.STATIC_COMPOSITION:return r.createElement("span",{title:a.assets.iconTypes.static_composition},i.ICON_FILE_CODE);default:return null}}));t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(24),s=n(53),u=n(8),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={fontError:!1,fontLoaded:!1},n.innerTextRef=a.createRef(),n}return o(t,e),t.prototype.componentDidMount=function(){this.loadFont()},t.prototype.componentDidUpdate=function(e){var t=this.state.fontLoaded,n=this.props.options,r=n.font,o=n.custom_font_id,a=n.content;e.options.font===r&&e.options.custom_font_id===o||this.loadFont(),e.options.content!==a&&t&&this.fitText()},t.prototype.fitElement=function(e,t,n){for(var r=window.getComputedStyle(e,null),o=parseFloat(r.getPropertyValue("font-size")),a=parseFloat(r.getPropertyValue("letter-spacing")),i=parseFloat(r.getPropertyValue("line-height")),s=parseFloat(r.getPropertyValue("word-spacing")),u=a/o,l=i/o,c=s/o,d=e.offsetWidth,p=e.offsetHeight;d>t||p>n;)o--,a=Math.round(o*u),i=Math.round(o*l),s=Math.round(o*c),e.style.fontSize=o+"px",e.style.letterSpacing=a+"px",e.style.wordSpacing=s+"px",e.style.lineHeight=i+"px",d=e.offsetWidth,p=e.offsetHeight},t.prototype.loadFont=function(){var e=this,t=this.props.options,n=t.font,r=t.font_size,o=t.font_type,a=t.custom_font_url;if(o===s.FONT_TYPES.CUSTOM&&r&&a){var l=u.s3Url(a,i.ASSET_DISTRO,i.ASSET_ORIGIN),c=!1;try{c=document.fonts.check(r+"px "+n)}catch(e){this.errorLoadingFont()}c?this.fontReady():this.setState({fontLoaded:!1},(function(){var t=new FontFace(n,"url("+l+")",{style:"normal",weight:"normal"});t.load().then((function(n){document.fonts.add(t),e.fontReady()})).catch((function(t){e.errorLoadingFont()}))}))}else o===s.FONT_TYPES.STANDARD&&this.fontReady()},t.prototype.formatContent=function(){var e=this.props,t=e.options.content,n=e.inventory,r=t||"";if(n)for(var o in n)if(n.hasOwnProperty(o)){var i=new RegExp("{{"+o+"}}","g"),s=n[o];s&&(s=s.toString(),r=r.replace(i,s))}for(var u=r.split("\n"),l=[],c=0;c<u.length;c++)l.push(a.createElement("span",{key:"s-"+c},u[c])),u[c+1]&&l.push(a.createElement("br",{key:"b-"+c}));return l},t.prototype.fitText=function(){if(this.props.options.text_fit){var e=this.innerTextRef.current;e&&this.fitElement(e,this.props.options.width,this.props.options.height)}},t.prototype.errorLoadingFont=function(){var e=this;this.setState({fontError:!0},(function(){e.fontReady()}))},t.prototype.fontReady=function(){var e=this;this.setState({fontLoaded:!0},(function(){e.fitText(),e.props.onReady&&e.props.onReady()}))},t.prototype.getFlexStart=function(e){switch(e){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end"}},t.prototype.render=function(){var e=this.props.options,t=e.color,n=e.background_color,r=e.line_height,o=e.word_spacing,i=e.letter_spacing,s=e.font_size,u=e.font_weight,l=e.font,c=e.horizontal_alignment,d=e.vertical_alignment,p={color:t,lineHeight:r?r+"px":"normal",wordSpacing:o?o+"px":"normal",letterSpacing:i?i+"px":"normal",fontSize:s?s+"px":"0px",fontWeight:u||400,whiteSpace:e.text_wrap?"normal":"nowrap",fontFamily:this.state.fontError?"Arial, helvetica, sans-serif":l},f={display:"flex",textAlign:c,justifyContent:this.getFlexStart(c),alignItems:d,backgroundColor:n};return a.createElement("div",{className:"composition-text-layer",style:f},a.createElement("div",{className:"inner-text",style:p,ref:this.innerTextRef},this.formatContent()))},t}(a.PureComponent);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(35);t.default=function(e){var t=e.children,n=e.id,a=document.getElementById(n),i=document.createElement("div");return r.useEffect((function(){return a.appendChild(i),function(){a.removeChild(i)}}),[i,a]),o.createPortal(t,i)}},function(e,t,n){"use strict";(function(e){var r=n(56),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.a.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();t.a=s}).call(this,n(82)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssetsTableTypeCell=t.AssetsTableTypeFilter=t.AssetsTableSelectCell=t.AssetsTableSelectFilter=t.AssetsTablePreviewCell=t.AssetsTableDropzone=t.AssetsTableDateCell=t.AssetsTypeIcon=t.ImageSequencePlayer=t.ImagePreview=t.VideoPreview=t.AudioPlayer=t.VideoPlayer=t.ImagePlayer=t.AssetDetails=t.Portal=t.ShortcutMenu=t.StoryPreviewer=t.LogViewer=t.ServiceIcon=t.NoAccess=t.Spinner=t.DeterminateLoader=t.Section=t.SliderField=t.ToastService=t.TextAreaField=t.TextField=t.Tag=t.Tabs=t.ColorField=t.SelectField=t.NumberField=t.Modal=t.ListField=t.HRule=t.FieldWrapper=t.DataTablePaginator=t.DataTable=t.ControlledList=t.CheckboxField=t.Card=t.ButtonMenuItem=t.ButtonMenu=t.ButtonGroupField=t.Button=t.ImposiumDropdown=t.ImposiumHeader=t.AuthGate=t.AppWrapper=void 0,t.LegacyAPI=t.API=t.SessionService=t.AuthService=t.assetActions=t.assetTags=t.addAssetTagToList=t.getAssetTagList=t.selectedAssets=t.assetUploads=t.assetList=t.assetFilters=t.resetSelection=t.deselectAsset=t.selectAsset=t.uploadAssets=t.toggleAutoTag=t.doAssetTableHydration=t.updateAssetData=t.updateAssetName=t.deleteAssetTag=t.addAssetTag=t.deleteAssets=t.getAssets=t.updateFilters=t.storyDeleted=t.orgNameMutated=t.storyNameMutated=t.storyAdded=t.clearCachedAccessList=t.cacheAccessData=t.access=t.clearCachedAuth=t.login=t.auth=t.StaticCompositionRenderer=t.StaticCompositionEditor=t.PreviewNotAvailable=t.DroppableAssetRenderer=t.FontAssetPreview=t.AssetsUploadMenu=t.AssetField=t.AssetsTableComplexTagCell=t.AssetsTableTagsPivot=t.AssetsTableTagsFilter=t.AssetsTableTagsCell=t.AssetsTableDurationCell=t.AssetsTableNameCell=t.AssetsTableNameFilter=t.AssetsTableStatusCell=void 0,t.PublishStatusIndicator=t.getStoryPublishStatus=t.clearStoryPublishStatus=t.publishVersion=t.publish=t.PublishWizard=t.ASSET_TYPES=t.CompositionRendererLayer=t.TextLayer=t.formatDateDefault=t.padStart=t.toFixed=t.validateAssetMimetype=t.mimetypeConformsToOverlay=t.filterHotkeys=t.formattedTime=t.fitToContainer=t.scrapeEmail=t.parameterizeServiceUrl=t.string2HexCode=t.getFirstStoryInOrg=t.validateAccessLevel=t.Timer=t.StorageService=void 0;var r=n(276);t.AppWrapper=r.default;var o=n(344);t.AuthGate=o.default;var a=n(91);t.ImposiumHeader=a.default;var i=n(59);t.ImposiumDropdown=i.default;var s=n(5);t.Button=s.default;var u=n(96);t.ButtonMenu=u.default;var l=n(97);t.ButtonMenuItem=l.default;var c=n(98);t.Card=c.default;var d=n(99);t.ControlledList=d.default;var p=n(352);t.DataTable=p.default;var f=n(357);t.DataTablePaginator=f.default;var h=n(358);t.Modal=h.default;var m=n(359);t.Tabs=m.default;var _=n(11);t.FieldWrapper=_.default;var y=n(30);t.CheckboxField=y.default;var g=n(360);t.ListField=g.default;var v=n(63);t.ButtonGroupField=v.default;var b=n(41);t.NumberField=b.default;var w=n(29);t.SelectField=w.default;var M=n(13);t.TextField=M.default;var L=n(64);t.TextAreaField=L.default;var T=n(362);t.ToastService=T.default;var k=n(366);t.SliderField=k.default;var x=n(65);t.ColorField=x.default;var E=n(51);t.Tag=E.default;var S=n(16);t.HRule=S.default;var D=n(473);t.Section=D.default;var O=n(21);t.Spinner=O.default;var Y=n(90);t.NoAccess=Y.default;var C=n(92);t.ServiceIcon=C.default;var A=n(126);t.DeterminateLoader=A.default;var j=n(474);t.AssetsTableDateCell=j.default;var P=n(475);t.AssetsTablePreviewCell=P.default;var H=n(476);t.AssetsTableDurationCell=H.default;var I=n(127);t.AssetField=I.default;var N=n(84);t.AssetsTableDropzone=N.default;var R=n(479);t.AssetsTableNameCell=R.default;var F=n(480);t.AssetsTableNameFilter=F.default;var z=n(481);t.AssetsTableSelectCell=z.default;var U=n(482);t.AssetsTableSelectFilter=U.default;var W=n(483);t.AssetsTableTagsCell=W.default;var B=n(484);t.AssetsTableTagsFilter=B.default;var V=n(485);t.AssetsTableTagsPivot=V.default;var q=n(486);t.AssetsTableComplexTagCell=q.default;var G=n(487);t.AssetsTableTypeCell=G.default;var J=n(488);t.AssetsTableStatusCell=J.default;var K=n(489);t.AssetsTableTypeFilter=K.default;var $=n(85);t.AssetsTypeIcon=$.default;var X=n(490);t.FontAssetPreview=X.default;var Z=n(491);t.AssetsUploadMenu=Z.default;var Q=n(492);Object.defineProperty(t,"PreviewNotAvailable",{enumerable:!0,get:function(){return Q.PreviewNotAvailable}});var ee=n(128);t.DroppableAssetRenderer=ee.default;var te=n(129);t.ImagePlayer=te.default;var ne=n(25);t.VideoPlayer=ne.default;var re=n(493);t.AudioPlayer=re.default;var oe=n(494);t.VideoPreview=oe.default;var ae=n(495);t.ImagePreview=ae.default;var ie=n(496);t.ImageSequencePlayer=ie.default;var se=n(130);t.LogViewer=se.default;var ue=n(498);t.StoryPreviewer=ue.default;var le=n(501);t.StaticCompositionEditor=le.default;var ce=n(133);t.StaticCompositionRenderer=ce.default;var de=n(505);t.ShortcutMenu=de.default;var pe=n(86);t.TextLayer=pe.default;var fe=n(24);Object.defineProperty(t,"ASSET_TYPES",{enumerable:!0,get:function(){return fe.ASSET_TYPES}});var he=n(87);t.Portal=he.default;var me=n(506);t.AssetDetails=me.default;var _e=n(54);t.PublishWizard=_e.default;var ye=n(516);t.auth=ye.default;var ge=n(39);Object.defineProperty(t,"login",{enumerable:!0,get:function(){return ge.login}}),Object.defineProperty(t,"clearCachedAuth",{enumerable:!0,get:function(){return ge.clearCachedAuth}});var ve=n(517);t.access=ve.default;var be=n(518);t.publish=be.default;var we=n(55);Object.defineProperty(t,"publishVersion",{enumerable:!0,get:function(){return we.publishVersion}}),Object.defineProperty(t,"clearStoryPublishStatus",{enumerable:!0,get:function(){return we.clearStoryPublishStatus}}),Object.defineProperty(t,"getStoryPublishStatus",{enumerable:!0,get:function(){return we.getStoryPublishStatus}});var Me=n(40);Object.defineProperty(t,"cacheAccessData",{enumerable:!0,get:function(){return Me.cacheAccessData}}),Object.defineProperty(t,"clearCachedAccessList",{enumerable:!0,get:function(){return Me.clearCachedAccessList}}),Object.defineProperty(t,"storyAdded",{enumerable:!0,get:function(){return Me.storyAdded}}),Object.defineProperty(t,"storyNameMutated",{enumerable:!0,get:function(){return Me.storyNameMutated}}),Object.defineProperty(t,"orgNameMutated",{enumerable:!0,get:function(){return Me.orgNameMutated}}),Object.defineProperty(t,"storyDeleted",{enumerable:!0,get:function(){return Me.storyDeleted}});var Le=n(23);Object.defineProperty(t,"updateFilters",{enumerable:!0,get:function(){return Le.updateFilters}});var Te=n(17);Object.defineProperty(t,"getAssets",{enumerable:!0,get:function(){return Te.getAssets}}),Object.defineProperty(t,"deleteAssets",{enumerable:!0,get:function(){return Te.deleteAssets}}),Object.defineProperty(t,"addAssetTag",{enumerable:!0,get:function(){return Te.addAssetTag}}),Object.defineProperty(t,"deleteAssetTag",{enumerable:!0,get:function(){return Te.deleteAssetTag}}),Object.defineProperty(t,"updateAssetName",{enumerable:!0,get:function(){return Te.updateAssetName}}),Object.defineProperty(t,"updateAssetData",{enumerable:!0,get:function(){return Te.updateAssetData}}),Object.defineProperty(t,"doAssetTableHydration",{enumerable:!0,get:function(){return Te.doAssetTableHydration}});var ke=n(83);Object.defineProperty(t,"getAssetTagList",{enumerable:!0,get:function(){return ke.getAssetTagList}}),Object.defineProperty(t,"addAssetTagToList",{enumerable:!0,get:function(){return ke.addAssetTagToList}});var xe=n(52);Object.defineProperty(t,"toggleAutoTag",{enumerable:!0,get:function(){return xe.toggleAutoTag}}),Object.defineProperty(t,"uploadAssets",{enumerable:!0,get:function(){return xe.uploadAssets}});var Ee=n(33);Object.defineProperty(t,"selectAsset",{enumerable:!0,get:function(){return Ee.selectAsset}}),Object.defineProperty(t,"deselectAsset",{enumerable:!0,get:function(){return Ee.deselectAsset}}),Object.defineProperty(t,"resetSelection",{enumerable:!0,get:function(){return Ee.resetSelection}});var Se=n(519);t.assetFilters=Se.default;var De=n(520);t.assetList=De.default;var Oe=n(521);t.assetTags=Oe.default;var Ye=n(522);t.assetUploads=Ye.default;var Ce=n(523);t.selectedAssets=Ce.default;var Ae=n(17);t.assetActions=Ae.default;var je=n(28);t.AuthService=je.default;var Pe=n(26);t.SessionService=Pe.default;var He=n(524);t.API=He.default;var Ie=n(526);t.LegacyAPI=Ie.default;var Ne=n(527);t.StorageService=Ne.default;var Re=n(132);t.Timer=Re.default;var Fe=n(8);Object.defineProperty(t,"getFirstStoryInOrg",{enumerable:!0,get:function(){return Fe.getFirstStoryInOrg}}),Object.defineProperty(t,"string2HexCode",{enumerable:!0,get:function(){return Fe.string2HexCode}}),Object.defineProperty(t,"toFixed",{enumerable:!0,get:function(){return Fe.toFixed}}),Object.defineProperty(t,"padStart",{enumerable:!0,get:function(){return Fe.padStart}}),Object.defineProperty(t,"parameterizeServiceUrl",{enumerable:!0,get:function(){return Fe.parameterizeServiceUrl}}),Object.defineProperty(t,"scrapeEmail",{enumerable:!0,get:function(){return Fe.scrapeEmail}}),Object.defineProperty(t,"fitToContainer",{enumerable:!0,get:function(){return Fe.fitToContainer}}),Object.defineProperty(t,"filterHotkeys",{enumerable:!0,get:function(){return Fe.filterHotkeys}}),Object.defineProperty(t,"mimetypeConformsToOverlay",{enumerable:!0,get:function(){return Fe.mimetypeConformsToOverlay}}),Object.defineProperty(t,"validateAssetMimetype",{enumerable:!0,get:function(){return Fe.validateAssetMimetype}}),Object.defineProperty(t,"formatDateDefault",{enumerable:!0,get:function(){return Fe.formatDateDefault}}),Object.defineProperty(t,"validateAccessLevel",{enumerable:!0,get:function(){return Fe.validateAccessLevel}}),Object.defineProperty(t,"formattedTime",{enumerable:!0,get:function(){return Fe.formattedTime}});var ze=n(134);t.CompositionRendererLayer=ze.default;var Ue=n(271);t.PublishStatusIndicator=Ue.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(37),a=n(57),i=n(58);t.default=function(e){if(!e.type)throw new Error("NoAccess requires a type of either: request or restrict");var t="request"===e.type;return r.createElement("div",{className:"no-access"},t?r.createElement(o.FontAwesomeIcon,{icon:a.faUserLock,size:"6x"}):r.createElement(o.FontAwesomeIcon,{icon:i.faExclamationTriangle,size:"6x"}),r.createElement("div",{className:"no-access-copy"},r.createElement("h1",{className:"no-access-heading"},t?"You don't have access to Imposium yet":"Service not found"),t&&r.createElement("a",{href:"mailto:info@imposium.com?subject=My access to Imposium is restricted"},"Request Access")))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(59),s=n(92),u=n(8),l=n(4),c=function(e){function t(n){var r=e.call(this,n)||this;return r.serviceToggleRef=null,r.storyToggleRef=null,r.orgsToggleRef=null,r.componentDidMount=function(){var e=r.props,t=e.accessData,n=e.activeOrganization;t&&r.parseAccessData(t,n)},r.componentDidUpdate=function(e){var n=r.props,o=n.accessData,a=n.activeOrganization,i=e.accessData,s=e.activeOrganization;o&&o!==i&&r.parseAccessData(o,a),"string"==typeof a&&a.length===t.UUID_LENGTH&&a!==s&&r.parseAccessData(o,a)},r.parseAccessData=function(e,n){var o=e.organizations,a=e.services,i=n?e.organizations.find((function(e){return e.id===n})):void 0,s=o.length>1?o.filter((function(e){return e.id!==n})):[],l=a&&i?a.filter((function(e){return i.services.includes(e.id)})):[],c=l.length>1?a.find((function(e){return window.location.href.includes(e.url)})):void 0,d=t.DEFAULT_ACCOUNT_TOGGLE_COLOR,p="";i&&i.hasOwnProperty("name")&&(d=u.string2HexCode(i.name),p=r.pullFirstChar(i.name)),r.setState({servicesByOrganization:l,activeServiceBlob:c,inactiveOrganizations:s,activeOrganizationBlob:i,dropdownToggleColor:d,activeFirstChar:p})},r.changeStory=function(e){var t=r.props.onStoryChange;"function"==typeof t&&(t(e),r.setState({showStoriesDropdown:!1}))},r.toggleAccountDropdown=function(e,t){void 0===t&&(t="");var n=r.props.onOrganizationChange;e?r.setState({showAccountDropdown:!0}):(r.setState({showAccountDropdown:!1}),t&&n&&n(t),t&&!n&&window.location.replace(r.getHomeUrl()+"?organization_id="+t))},r.getHomeUrl=function(){var e=window.location,t=e.hostname,n=e.host;return"localhost"===t?"http://localhost:3036":n.includes(".staging.")?"https://launchpad.staging.imposium.com":"https://launchpad.imposium.com"},r.doLogout=function(){r.setState({showAccountDropdown:!1}),r.props.logout()},r.pullFirstChar=function(e){return e?e.substring(0,1):""},r.renderDropdownChevron=function(e){return e?t.UP:t.DOWN},r.renderServiceAnchor=function(e,t,n){return a.createElement("div",{className:"anchor-wrapper",key:e.id},a.createElement("a",{href:u.parameterizeServiceUrl(t,n,e.url,e.id)},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:e.icon,color:"#"+e.color})),e.name))},r.state={inactiveOrganizations:[],servicesByOrganization:[],activeServiceBlob:void 0,activeOrganizationBlob:void 0,showAccountDropdown:!1,showStoriesDropdown:!1,showServiceDropdown:!1,dropdownToggleColor:t.DEFAULT_ACCOUNT_TOGGLE_COLOR,activeFirstChar:""},r.serviceToggleRef=a.createRef(),r.storyToggleRef=a.createRef(),r.orgsToggleRef=a.createRef(),r}return o(t,e),t.prototype.render=function(){var e,n,r,o,c,d,p,f,h,m,_,y,g=this,v=this.props,b=v.email,w=v.accessData,M=v.activeOrganization,L=v.activeStory,T=v.hideStoryPicker,k=this.state,x=k.showAccountDropdown,E=k.servicesByOrganization,S=k.activeServiceBlob,D=k.showStoriesDropdown,O=k.inactiveOrganizations,Y=k.activeOrganizationBlob,C=k.activeFirstChar,A=k.dropdownToggleColor,j=k.showServiceDropdown,P={};return w&&((r=E.find((function(e){return window.location.href.includes(e.url)})))&&(P={color:"#"+r.color},n={borderBottom:"4px solid #"+r.color}),o=E.filter((function(e){return!e.private&&-1===t.PRIVATE_IDS.indexOf(e.id)})).map((function(e){return g.renderServiceAnchor(e,M,L)})),c=E.filter((function(e){return!e.private&&t.PRIVATE_IDS.indexOf(e.id)>-1})).map((function(e){return g.renderServiceAnchor(e,M,L)})),y=a.createElement("div",{className:"service-menu"},a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.SERVICE_MESH_ALIAS),a.createElement("div",{className:"service-menu-anchors"},o)),c.length>0&&a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.PRIVATE_HEADER),a.createElement("div",{className:"service-menu-anchors"},c)),a.createElement("section",{className:"service-menu-section"},a.createElement("div",{className:"service-menu-heading"},t.DOCS_HEADER),a.createElement("div",{className:"service-menu-anchors"},a.createElement("div",{className:"anchor-wrapper doc"},a.createElement("a",{target:"__blank",href:t.API_DOCS_LINK},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:"FaCogs"})),t.API_DOCS_LINK_COPY)),a.createElement("div",{className:"anchor-wrapper doc"},a.createElement("a",{target:"__blank",href:t.SDK_DOCS_LINK},a.createElement("div",{className:"icon-fixed"},a.createElement(s.default,{iconName:"FaJsSquare"})),t.SDK_DOCS_LINK_COPY))))),_=a.createElement("button",{id:"btn-toggle-services",className:"btn-toggle-services",style:P,ref:this.serviceToggleRef,onClick:function(){return g.setState({showServiceDropdown:!g.state.showServiceDropdown})}},a.createElement("span",null,S?S.name:t.SERVICE_MESH_ALIAS),this.renderDropdownChevron(j)),d=a.createElement("button",{id:"btn-toggle-orgs",className:"btn-toggle-orgs",ref:this.orgsToggleRef,style:{backgroundColor:A},onClick:function(){return g.toggleAccountDropdown(!x)}},C)),w&&Y&&(p=a.createElement("div",{className:"orgs-menu-active-org"},a.createElement("div",{className:"active-first-char",style:{backgroundColor:A}},this.pullFirstChar(Y.name)),a.createElement("div",null,Y.name))),w&&Y&&!T&&(e=Y.stories.find((function(e){return e.id===L})),f=a.createElement("button",{id:"btn-toggle-story",className:"btn-toggle-story",ref:this.storyToggleRef,onClick:function(){g.setState({showStoriesDropdown:!g.state.showStoriesDropdown})}},a.createElement("div",{className:"story-name"},e?e.name:t.DEFAULT_SERVICE_TOGGLE_COPY),this.renderDropdownChevron(D)),m=0===Y.stories.length?a.createElement("div",{className:"no-stories-dialog"},t.NO_STORIES_COPY):Y.stories.map((function(e){return a.createElement("button",{key:e.id,className:"btn-change-story",onClick:function(){return g.changeStory(e)}},e.name)}))),x&&(h=a.createElement("div",{className:"orgs-menu-org-picker"},O.map((function(e){return a.createElement("button",{key:e.name,className:"menu-item inactive-org-button",onClick:function(){return g.toggleAccountDropdown(!1,e.id)}},a.createElement("div",{className:"inactive-first-char",style:{backgroundColor:u.string2HexCode(e.name)}},g.pullFirstChar(e.name)),e.name)})))),a.createElement("nav",{id:"imposium-header",className:"imposium-header",style:n},a.createElement("div",{className:"inner-content"},a.createElement("span",{className:"inner-left"},a.createElement("a",{className:"title",href:u.parameterizeServiceUrl(M,L,this.getHomeUrl())},a.createElement("div",{className:"logo"}),a.createElement("h1",{className:"heading"},t.DEFAULT_TITLE)),_),a.createElement("span",{className:"inner-right"},f,d,a.createElement("a",{href:"https://support.imposium.com",target:"_blank"},a.createElement("div",{className:"btn-help"},l.ICON_HELP)))),a.createElement(i.default,{key:"services-dropdown",position:"bottomleft",show:j,toggleRef:this.serviceToggleRef,onOutsideClick:function(){return g.setState({showServiceDropdown:!1})}},y),a.createElement(i.default,{key:"stories-dropdown",position:"bottomright",show:D,toggleRef:this.storyToggleRef,onOutsideClick:function(){return g.setState({showStoriesDropdown:!1})}},a.createElement("div",{className:"stories-menu"},m)),a.createElement(i.default,{key:"org-dropdown",position:"bottomright",show:x,toggleRef:this.orgsToggleRef,onOutsideClick:function(){return g.toggleAccountDropdown(!1)}},a.createElement("div",{className:"orgs-menu"},p,h,a.createElement("div",{className:"orgs-menu-footer"},a.createElement("div",{className:"email"},b),a.createElement("button",{className:"btn-logout",onClick:function(){return g.doLogout()}},t.LOGOUT_COPY)))))},t.DEFAULT_TITLE="imposium",t.SERVICE_MESH_ALIAS="services",t.DOCS_HEADER="documentation",t.PRIVATE_HEADER="admin",t.API_DOCS_LINK_COPY="REST API",t.SDK_DOCS_LINK_COPY="Javascript SDK",t.API_DOCS_LINK="https://docs.imposium.com",t.SDK_DOCS_LINK="https://docs.imposium.com/js-sdk/",t.DEFAULT_SERVICE_TOGGLE_COPY="stories",t.DEFAULT_ACCOUNT_TOGGLE_COLOR="royalblue",t.NO_STORIES_COPY="No stories were found",t.LOGOUT_COPY="logout",t.UUID_LENGTH=36,t.UP=l.ICON_CHEVRON_UP,t.DOWN=l.ICON_CHEVRON_DOWN,t.PRIVATE_IDS=[9,10,11,12],t}(a.PureComponent);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(37),a=n(277),i=n(278),s=n(279),u=n(280),l=n(93),c=n(94),d=n(281),p=n(282),f=n(283),h=n(284),m=n(57),_=n(285),y=n(286),g=n(287);t.default=function(e){switch(e.iconName){case"FaFilm":return r.createElement(o.FontAwesomeIcon,{icon:i.faFilm,color:e.color});case"FaRegFileVideo":return r.createElement(o.FontAwesomeIcon,{icon:l.faFileVideo,color:e.color});case"FaChartBar":return r.createElement(o.FontAwesomeIcon,{icon:d.faChartBar,color:e.color});case"FaGavel":return r.createElement(o.FontAwesomeIcon,{icon:s.faGavel,color:e.color});case"FaDatabase":return r.createElement(o.FontAwesomeIcon,{icon:u.faDatabase,color:e.color});case"FaVideo":return r.createElement(o.FontAwesomeIcon,{icon:c.faVideo,color:e.color});case"FaUsersCog":return r.createElement(o.FontAwesomeIcon,{icon:p.faUsersCog,color:e.color});case"FaPlayCircle":return r.createElement(o.FontAwesomeIcon,{icon:h.faPlayCircle,color:e.color});case"FaUserLock":return r.createElement(o.FontAwesomeIcon,{icon:m.faUserLock,color:e.color});case"FaSiteMap":return r.createElement(o.FontAwesomeIcon,{icon:_.faSitemap,color:e.color});case"FaFileAlt":return r.createElement(o.FontAwesomeIcon,{icon:g.faFileAlt,color:e.color});case"FaChartArea":return r.createElement(o.FontAwesomeIcon,{icon:y.faChartArea,color:e.color});case"FaCogs":return r.createElement(o.FontAwesomeIcon,{icon:f.faCogs});case"FaJsSquare":return r.createElement(o.FontAwesomeIcon,{icon:a.faJsSquare});default:return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z";t.definition={prefix:"fas",iconName:"file-video",icon:[384,512,r,"f1c8",o]},t.faFileVideo=t.definition,t.prefix="fas",t.iconName="file-video",t.width=384,t.height=512,t.ligatures=r,t.unicode="f1c8",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z";t.definition={prefix:"fas",iconName:"video",icon:[576,512,r,"f03d",o]},t.faVideo=t.definition,t.prefix="fas",t.iconName="video",t.width=576,t.height=512,t.ligatures=r,t.unicode="f03d",t.svgPathData=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=[],o="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z";t.definition={prefix:"fas",iconName:"info-circle",icon:[512,512,r,"f05a",o]},t.faInfoCircle=t.definition,t.prefix="fas",t.iconName="info-circle",t.width=512,t.height=512,t.ligatures=r,t.unicode="f05a",t.svgPathData=o},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={open:n.props.isOpen||!1},n.evtHandlers={toggleMenu:function(e){return n.toggleMenu(e)},clickOutside:function(e){return n.handleClickOutside(e)}},n.toggleRef=i.createRef(),n}return o(t,e),t.prototype.handleClickOutside=function(e){!!(this.toggleRef&&this.toggleRef.current&&this.toggleRef.current.contains(e.target))||(document.removeEventListener("click",this.evtHandlers.clickOutside),this.setState({open:!1}))},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.evtHandlers.clickOutside)},t.prototype.toggleMenu=function(e){var t=this,n=!this.state.open;this.setState({open:n},(function(){t.state.open?document.addEventListener("click",t.evtHandlers.clickOutside):document.removeEventListener("click",t.evtHandlers.clickOutside)}))},t.prototype.renderItems=function(){var e,t,n=this,r=this.props.items,o=[],s=function(e){var t=i.cloneElement(e,{onClick:function(t){t.preventDefault(),t.stopPropagation(),document.removeEventListener("click",n.evtHandlers.clickOutside),n.setState({open:!1},(function(){e.props.onClick(t)}))}});o.push(t)};try{for(var u=a(r),l=u.next();!l.done;l=u.next()){s(l.value)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return o},t.prototype.renderMenu=function(){var e=this.props.position;if(this.state.open)return i.createElement("div",{className:"menu "+e},this.renderItems())},t.prototype.render=function(){var e=this.props.button,t=this.state.open,n=i.cloneElement(e,{buttonRef:this.toggleRef,onClick:this.evtHandlers.toggleMenu,active:t});return i.createElement("div",{className:"button-menu"},n,this.renderMenu())},t}(i.PureComponent);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.label,r=t.active;return a.createElement("div",{className:"button-menu-item "+(r?"active":null)+" ",onClick:function(t){return e.props.onClick(t)}},n)},t}(a.Component);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={open:t.open},n.evtHandlers={toggleOpen:function(e){return n.toggleOpen(e)}},n}return o(t,e),t.prototype.toggleOpen=function(e){var t=this;e.persist(),e.preventDefault();var n=this.props,r=n.collapsable,o=n.onOpen,a=n.onClose;r&&("function"==typeof this.props.onToggle&&this.props.onToggle(!this.state.open),this.setState({open:!this.state.open},(function(){t.state.open&&o?o(e):!t.state.open&&a&&a(e)})))},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.open;t.collapsable;e.open!==n&&this.setState({open:n})},t.prototype.renderTitle=function(e){var t=this.props.title;return"small"===e?a.createElement("p",null,t):"large"===e?a.createElement("h1",null,t):a.createElement("h2",null,t)},t.prototype.renderContent=function(){if(this.state.open)return a.createElement("div",{className:"card-content"},this.props.children)},t.prototype.render=function(){var e=this.props,t=e.collapsable,n=(e.title,e.style),r=t?"collapsable":"",o=!this.state.open&&t?"closed":"",i=n||"default";return a.createElement("div",{className:"card "+o+" "+r+" "+i},a.createElement("div",{className:"card-header",onClick:this.evtHandlers.toggleOpen},this.renderTitle(i),this.renderButtons()),this.renderContent())},t.prototype.renderButtons=function(){var e=this.props.collapsable,t=this.state.open?s.ICON_CARET_UP:s.ICON_CARET_DOWN;if(e)return a.createElement("div",{className:"header-buttons"},a.createElement(i.default,{style:"subtle",onClick:this.evtHandlers.toggleOpen},t))},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(5),s=n(4),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderRemoveButton=function(e){var t=this;if(this.props.removable)return a.createElement("div",{className:"buttons"},a.createElement(i.default,{style:"subtle",color:"danger",onClick:function(){return t.props.onRemove(e)}},s.ICON_TIMES))},t.prototype.render=function(){var e,t=this,n=this.props.items;return n&&(e=n.map((function(e,n){return a.createElement("div",{className:"item",key:"item-"+n},e,t.renderRemoveButton(n))}))),a.createElement("div",{className:"controlled-list"},e)},t}(a.PureComponent);t.default=u},function(e,t){e.exports=u},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(38))},function(e,t,n){var r=n(371),o=n(32);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(373),o=n(104),a=n(12),i=n(67),s=n(105),u=n(106),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&o(e),d=!n&&!c&&i(e),p=!n&&!c&&!d&&u(e),f=n||c||d||p,h=f?r(e.length,String):[],m=h.length;for(var _ in e)!t&&!l.call(e,_)||f&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||h.push(_);return h}},function(e,t,n){var r=n(374),o=n(15),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(376),o=n(69),a=n(70),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(18),o=n(22);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(411),o=n(15);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},function(e,t,n){var r=n(412),o=n(415),a=n(416);e.exports=function(e,t,n,i,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var p=u.get(e),f=u.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,_=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var y=e[h],g=t[h];if(i)var v=l?i(g,y,h,t,e,u):i(y,g,h,e,t,u);if(void 0!==v){if(v)continue;m=!1;break}if(_){if(!o(t,(function(e,t){if(!a(_,t)&&(y===e||s(y,e,n,i,u)))return _.push(t)}))){m=!1;break}}else if(y!==g&&!s(y,g,n,i,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},function(e,t,n){var r=n(14).Uint8Array;e.exports=r},function(e,t,n){var r=n(116),o=n(77),a=n(32);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(117),o=n(12);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(22);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(122),o=n(49);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(12),o=n(78),a=n(429),i=n(432);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t,n){var r=n(124),o=n(74),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(447);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(117),o=n(72),a=n(77),i=n(118),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=e.progress?"scaleX("+e.progress/100+")":"scaleX(0)";return r.createElement("div",{className:"determinate-loader"},r.createElement("div",{className:"progress-bg",style:{transform:t}}),r.createElement("div",{className:"progress-copy"},Math.round(e.progress)+"%"))}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(7),s=n(5),u=n(13),l=n(84),c=n(128),d=n(8),p=n(23),f=n(52),h=n(9),m=n(10),_=n(4),y=function(e){function t(t){var n=e.call(this,t)||this;return n.onFileDrop=function(e,t){var r=n.props,o=r.accepts,a=r.storyId,i=r.api;if(t){var s=t.getItem().files;d.mimetypeConformsToOverlay(o,s[0])&&(n.setState({assetUploading:!0}),n.props.uploadAssets(i,[s[0]],a,(function(e){n.setState({assetName:e.name,error:!1},(function(){n.setState({assetUploading:!1}),n.props.onChange(e)}))})))}},n.state={assetName:"",error:!1,assetUploading:!1},n}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.assetId;e.api;t&&!this.state.assetName&&this.loadAsset()},t.prototype.componentDidUpdate=function(e,t){var n=this.props.assetId;n&&n!==e.assetId?this.loadAsset():n||this.setState({error:!1,assetName:""})},t.prototype.loadAsset=function(){var e=this,t=this.props,n=t.assetId;t.api.getAssetItem(n).then((function(t){e.setState({error:!1,assetName:t.name})})).catch((function(t){e.setState({error:!0,assetName:"Could not find asset: "+n})}))},t.prototype.setFilter=function(e){var t=this.props.accepts;this.props.updateFilters({type:t||"",page:1})},t.prototype.onAssetDrop=function(e,t){var n=this,r=e.rowData,o=e.rowData,a=o.name,s=(o.id,o.type),u=this.props.accepts;s===u?this.setState({assetName:a,error:!1},(function(){n.props.onChange(r)})):this.props.onError&&this.props.onError(i.assets.field.fieldMismatchError.replace("[accepts]",u))},t.prototype.clearAsset=function(e){var t=this;this.setState({assetName:"",error:!1},(function(){t.props.onChange(null)}))},t.prototype.render=function(){var e=this,t=this.props,n=t.assetId,r=t.label,o=t.width,d=t.tooltip,p=t.labelPosition,f=this.state,h=f.assetName,m=f.assetUploading,y=f.error?"error":"",g=n?"":i.assets.field.dragPrompt,v={width:o||"100%"},b=[];return b.push(a.createElement(s.default,{key:"btn-filter",onClick:function(t){return e.setFilter(t)},style:"subtle",tooltip:i.assets.field.tooltipFilter,color:"primary"},_.ICON_FILTER)),n&&!m&&b.unshift(a.createElement(s.default,{key:"btn-clear-asset",tooltip:i.assets.field.tooltipClear,onClick:function(t){return e.clearAsset(t)},style:"subtle"},_.ICON_TIMES)),a.createElement("div",{style:v,className:"asset-field "+y},a.createElement(l.default,{onDrop:function(t,n){return e.onFileDrop(t,n)},disable:m},a.createElement(c.default,{onDrop:function(t,n){return e.onAssetDrop(t,n)}},a.createElement(u.default,{readOnly:!0,label:r,tooltip:d,loading:m,placeholder:g,buttons:b,labelPosition:p,value:h}))))},t}(a.PureComponent);t.default=h.connect(null,(function(e){return m.bindActionCreators({updateFilters:p.updateFilters,uploadAssets:f.uploadAssets},e)}))(y)},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),a=n(61),i=n(478);t.default=function(e){var t=r(a.useDrop({accept:i.ASSET_DND_TYPES.ASSET_NAME,drop:e.onDrop,collect:function(e){return{isOver:e.isOver(),canDrop:e.canDrop()}}}),2),n=t[0],s=n.canDrop,u=n.isOver,l=t[1],c=s&&u?"1px solid royalblue":"";return o.createElement("div",{ref:l,className:"asset-target",style:{border:c}},e.children)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(34),s=n(25),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={imageHeight:1080,imageWidth:1920},n.imgNode=a.createRef(),n}return o(t,e),t.prototype.getImageStyle=function(){var e=this.state,t=e.imageHeight,n=e.imageWidth,r=this.props,o=r.padding,a=r.width,u=r.height,l=void 0!==o?o:i.DEFAULT_PADDING;return t&&n?s.getPlayerStyle(a,u,n,t,l,n,t):{}},t.prototype.metadataLoaded=function(e){this.setState({imageWidth:e.target.naturalWidth,imageHeight:e.target.naturalHeight})},t.prototype.render=function(){var e=this,t=this.props,n=t.url;return!1!==t.active?a.createElement("div",{className:"media-player"},a.createElement("div",{className:"inner-viewer",style:this.getImageStyle()},a.createElement("img",{onLoad:function(t){return e.metadataLoaded(t)},src:n,ref:this.imgNode}))):null},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),i=n(497),s=n(7),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={loading:!0,log:""},n.ansi_up=new i.default,n.ansi_up.use_classes=!0,n}return o(t,e),t.prototype.getJobLogs=function(){var e=this,t=this.props,n=t.api,r=t.onError,o=t.jobId;n.getJobLogUrl(this.props.jobId).then((function(t){var a=t.signed_url;n.getJobLog(a).then((function(t){e.setState({loading:!1,log:t})})).catch((function(t){r&&r(s.previewer.logDownloadError.replace("[jobId]",o)),e.setState({loading:!1,log:""})}))})).catch((function(t){r&&r(s.previewer.logURLError.replace("[jobId]",e.props.jobId)),e.setState({loading:!1,log:""})}))},t.prototype.componentDidMount=function(){this.props.jobId&&this.getJobLogs()},t.prototype.componentDidUpdate=function(e){e.jobId!==this.props.jobId&&this.props.jobId&&this.getJobLogs()},t.prototype.render=function(){var e=this.ansi_up.ansi_to_html(this.state.log);return a.createElement("div",{className:"log-viewer"},a.createElement("div",{className:"log-html",dangerouslySetInnerHTML:{__html:e}}))},t}(a.PureComponent);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BOOLEAN_DEFAULT_OPTIONS=t.VARIABLE_TYPES=void 0,t.VARIABLE_TYPES={TEXT:"text",NUMBER:"number",BOOLEAN:"boolean",ENUM:"enum",IMAGE:"image",VIDEO:"video",AUDIO:"audio"},t.BOOLEAN_DEFAULT_OPTIONS=[{value:!0,label:"True"},{value:!1,label:"False"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.config=e}return e.prototype.stop=function(){this.running=!1,clearInterval(this.timeInterval)},e.prototype.start=function(){var e=this;this.running=!0,clearInterval(this.timeInterval),this.startTime=Date.now(),this.timeInterval=setInterval((function(){return e.updateTimeElapsed()}),this.config.interval)},e.prototype.updateTimeElapsed=function(){var e=Date.now()-this.startTime;this.config.onUpdate(e)},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),l=n(134),c=function(e){function t(t){var n=e.call(this,t)||this;return n.bgRef=u.createRef(),n}return o(t,e),t.prototype.renderLayers=function(){var e=this,t=this.props,n=t.composition.layers,r=t.inventory,o=t.selectedLayer,a=function(t){e.props.onSelectLayer(t)},s=[],c=[];return n?(n.map((function(t,n){var i,d=t.id&&t.id===o;c.push(new Promise((function(e,t){i=e,t}))),s.push(u.createElement(l.default,{onUpdate:function(t){return e.updateLayer(n,t)},onReady:i,onClick:a,selected:d,layer:t,inventory:r,key:t.id||n}))})),Promise.all(c).then((function(t){i(t,1)[0];e.props.onReady&&e.props.onReady()})),s):null},t.prototype.updateLayer=function(e,t){var n=a({},this.props.composition),r=s([],i(n.layers));r[e]=t,n.layers=r,this.props.onUpdate(n)},t.prototype.resetSelected=function(e){e.preventDefault(),e.stopPropagation();var t=this.bgRef.current;!t||e.target},t.prototype.render=function(){var e=this,t=this.props.composition,n=t.width,r=t.height,o=t.background_color,a={width:n+"px",height:r+"px"};return o&&(a.backgroundColor=o),u.createElement("div",{ref:this.bgRef,className:"static-composition-renderer",style:a,onClick:function(t){return e.resetSelected(t)}},this.renderLayers())},t}(u.PureComponent);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(504),u=n(62),l=n(86),c=function(e){function t(t){var n=e.call(this,t)||this;return n.layerRefMount=function(e){return n.onRefMount(e)},n.evtHandlers={onDrag:function(e){return n.handleDrag(e)},onResize:function(e){return n.handleResize(e)},onRotate:function(e){return n.handleRotate(e)},onClick:function(e){return n.layerClicked(e)},onShift:function(e){return n.onShift(e)},onLeft:function(e){return n.move(e,-1,0)},onRight:function(e){return n.move(e,1,0)},onUp:function(e){return n.move(e,0,-1)},onDown:function(e){return n.move(e,0,1)}},n.moveable=i.createRef(),n.state={lockRatio:!1},n}return o(t,e),t.prototype.move=function(e,t,n){if(this.props.selected){var r=e.shiftKey?10*t:t,o=e.shiftKey?10*n:n,i=a({},this.props.layer);i.x=i.x+r,i.y=i.y+o,this.props.onUpdate(i)}},t.prototype.onShift=function(e){if("Shift"===e.key&&16===e.keyCode&&this.props.selected){var t="keydown"===e.type;this.setState({lockRatio:t})}},t.prototype.componentDidUpdate=function(){var e=this.moveable.current;e&&e.updateRect()},t.prototype.componentDidMount=function(){u.default("*",{keyup:!0},this.evtHandlers.onShift),u.default("left, shift+left",this.evtHandlers.onLeft),u.default("right, shift+right",this.evtHandlers.onRight),u.default("up, shift+up",this.evtHandlers.onUp),u.default("down, shift+down",this.evtHandlers.onDown)},t.prototype.componentWillUnmount=function(){u.default.unbind("*",this.evtHandlers.onShift),u.default.unbind("left, shift+left",this.evtHandlers.onLeft),u.default.unbind("right, shift+right",this.evtHandlers.onRight),u.default.unbind("up, shift+up",this.evtHandlers.onUp),u.default.unbind("down, shift+down",this.evtHandlers.onDown)},t.prototype.handleDrag=function(e){var t=a({},this.props.layer);t.x=Math.round(e.left),t.y=Math.round(e.top),this.props.onUpdate(t)},t.prototype.handleResize=function(e){var t=e.drag.beforeDelta,n=e.width,r=e.height,o=a({},this.props.layer);o.width=Math.round(n),o.height=Math.round(r),o.x=Math.round(o.x+t[0]),o.y=Math.round(o.y+t[1]),this.props.onUpdate(o)},t.prototype.handleRotate=function(e){var t=a({},this.props.layer);t.rotation=Math.round(e.beforeDelta+t.rotation),this.props.onUpdate(t)},t.prototype.layerClicked=function(e){e.preventDefault(),e.stopPropagation(),this.props.onClick(this.props.layer.id)},t.prototype.onRefMount=function(e){this.layerRef=e,this.forceUpdate()},t.prototype.renderLayerContent=function(){var e=this.props,t=e.layer,n=e.inventory;return i.createElement(l.default,{onReady:this.props.onReady,inventory:n,options:t})},t.prototype.render=function(){var e=this.props,t=e.selected,n=e.layer,r=this.state.lockRatio,o="comp-layer-"+n.id,a={top:n.y+"px",left:n.x+"px",width:n.width+"px",height:n.height+"px",transform:"rotate("+n.rotation+"deg)"},u=t?i.createElement(s.default,{ref:this.moveable,target:document.querySelector("."+o),onDrag:this.evtHandlers.onDrag,onDragEnd:this.evtHandlers.onDragEnd,onResize:this.evtHandlers.onResize,onResizeEnd:this.evtHandlers.onResizeEnd,onRotate:this.evtHandlers.onRotate,onRotateEnd:this.evtHandlers.onRotateEnd,keepRatio:r,resizable:!0,rotatable:!0,origin:!1,draggable:!0}):null;return i.createElement(i.Fragment,null,u,i.createElement("div",{ref:this.layerRefMount,className:"composition-renderer-layer "+o,onClick:this.evtHandlers.onClick,style:a},this.renderLayerContent()))},t}(i.PureComponent);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.documentationLinks=void 0;var a=n(0),i=n(7),s=n(54),u=n(4),l=n(509),c=n(511),d=n(16);t.documentationLinks=[{key:"js-sdk-link",label:a.createElement("span",null,u.ICON_JS," ",i.integration.js),link:i.integration.jsSdkLink},{key:"rest-link",label:a.createElement("span",null,u.ICON_PROJECT_DIAGRAM," ",i.integration.rest),link:i.integration.restLink}];var p=function(e){function n(t){var n=e.call(this,t)||this;return n.downloadSampleWebPage=function(){var e,t,r=n.props,o=r.story,a=r.compositionId,s=r.accessKey,u=n.getFirstAct(o);o.id&&o.name&&void 0!==u&&u.hasOwnProperty("inventory")&&(e=o.name+i.integration.sdkArchiveSuffix,t={storyId:o.id,compositionId:a,storyName:o.name,accessToken:s,inventory:u.inventory},l.downloadSDKArchive(e,t))},n.getFirstAct=function(e){for(var t in e.acts)if(e.acts.hasOwnProperty(t))return e.acts[t]},n}return o(n,e),n.prototype.linkToDemoPage=function(){var e=this.props,t=e.accessKey,n=e.compositionId,r=e.story.id;if(t){var o=c.getDemoURL()+"/"+t+"/"+r+"/"+n;window.open(o,"_blank")}},n.prototype.render=function(){var e=this,n=[{label:a.createElement("span",null,u.ICON_GLOBE," ",i.publish.webPageHosted),onClick:function(){return e.linkToDemoPage()}},{label:a.createElement("span",null,u.ICON_DOWNLOAD," ",i.publish.sampleWebpage),onClick:function(){return e.downloadSampleWebPage()}}];return a.createElement("div",null,a.createElement("h2",null,i.publish.webpageTitle),a.createElement(d.default,null),a.createElement("p",null,i.publish.webpageDesc),a.createElement(d.default,null),a.createElement("div",{className:"link-wrapper"},null==n?void 0:n.map((function(e,t){return a.createElement(s.BigButton,{key:t,label:e.label,onClick:function(){return e.onClick()}})}))),a.createElement("br",null),a.createElement("br",null),a.createElement("h2",null,i.integration.documentation),a.createElement(d.default,null),a.createElement("p",null,i.integration.docParagraph),a.createElement("div",{className:"link-wrapper"},null===t.documentationLinks||void 0===t.documentationLinks?void 0:t.documentationLinks.map((function(e){return a.createElement(s.BigLink,{key:e.key,label:e.label,link:e.link})}))))},n}(a.PureComponent);t.default=p},function(e,t,n){!function(e){"use strict";
|
|
4
4
|
//! moment.js locale configuration
|
|
5
5
|
e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";
|
|
6
6
|
//! moment.js locale configuration
|